Skip to main content

Python utility library. Based on sugar Javascript Library.

Project description

version travis coveralls license

Python utility library. Based on sugar Javascript Library.

Features

  • Supported on Python 2.7 and Python 3.3+.

Quickstart

Install using pip:

pip install sugar.py
>>> import sugar

>>> float(sugar.average([1, 2, 3]))
2.0

>>> sugar.construct(4, lambda x: x * 2)
[0, 2, 4, 6]

>>> sugar.count([1, 2, 3, 3], 3)
2

>>> sugar.subtract([1, 2, 3], 2)
[1, 3]
>>> sugar.subtract ([1, 2, 3], [1, 3])
[2]
>>> sugar.subtract([1, 2, 3], 4)
[1, 2, 3]

Changelog

v0.1.1 (2016-10-10)

  • FIX: Added description for the package in setup.py.

  • FIX: Added keywords in setup.py.

v0.1.0 (2016-10-10)

  • First release.

  • Add average().

  • Add construct().

  • Add count().

  • Add subtract().

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sugar.py-0.1.1.tar.gz (14.3 kB view hashes)

Uploaded Source

Built Distribution

sugar.py-0.1.1-py2.py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page