Python utility library. Based on sugar Javascript Library.
Project description
Python utility library. Based on sugar Javascript Library.
Links
Documentation: http://sugarpy.readthedocs.io
TravisCI: https://travis-ci.org/bharadwajyarlagadda/sugar.py
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file sugar.py-0.1.1.tar.gz
.
File metadata
- Download URL: sugar.py-0.1.1.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c27f74559f161c3119f3a45a32a295545b311c041d584f51c07276b5bb057f41 |
|
MD5 | 593f7fa6d95f0b4f3b49ed33cc5852e5 |
|
BLAKE2b-256 | 43335c7300aa13f489e4fcfa91019472123a9c270f37ad96214d7de154d34f28 |
File details
Details for the file sugar.py-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: sugar.py-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8fbdcce98dd1cd196aaf0bac03e8d2e5acf6f49fa542d3b89bc64e5f9f89406 |
|
MD5 | b9c47758307161065d9fbd63dddb4d73 |
|
BLAKE2b-256 | aa23fb664fbad0f2aee49ee5023603e895e975509d8a1133f2fad4c257554a56 |