sugar.py
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().
Metadata
Release files for sugar.py 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sugar.py-0.1.1.tar.gz | 14.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sugar.py-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / sugar.py-0.1.1.tar.gz
| Download URL | sugar.py-0.1.1.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c27f74559f161c3119f3a45a32a295545b311c041d584f51c07276b5bb057f41
|
|
BLAKE2b-256 checksum How to use checksums |
43335c7300aa13f489e4fcfa91019472123a9c270f37ad96214d7de154d34f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / sugar.py-0.1.1-py2.py3-none-any.whl
| Download URL | sugar.py-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f8fbdcce98dd1cd196aaf0bac03e8d2e5acf6f49fa542d3b89bc64e5f9f89406
|
|
BLAKE2b-256 checksum How to use checksums |
aa23fb664fbad0f2aee49ee5023603e895e975509d8a1133f2fad4c257554a56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |