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.

Files for sugar.py, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size sugar.py-0.1.1-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sugar.py-0.1.1.tar.gz (14.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page