three.py
A package dedicated to the love of 3.
This is silly personal project inspired by the equally silly JavaScript library five.js by Jack Clark.
How to install
pip install love-three
Usage examples
Begin by importing the three module into your code.
>>> import three
The module can be used to perform:
arithmetic
>>> three.three() + three.three()
6
>>> three.squared()
9
>>> three.cubed()
27
boolean expressions
>>> a = 2
>>> if three.is_three(a):
... print("a equals three :)")
... else:
... print("a does not equal three :(")
...
a does not equal three :(
filter, map, and reduce
>>> values = [1, None, 3, "beans", False, 3]
>>> three.filter(values)
[3, 3]
>>> three.map(values)
[3, 3, 3, 3, 3, 3]
>>> three.reduce(values)
3
novelty and humor
>>> three.leches()
['Condensed', 'Evaporated', 'Heavy cream']
>>> three.stooges()
['Larry', 'Curly', 'Moe']
Development setup
All the code needed is contained within:
three.py
How to contribute
Contributions are encouraged and welcomed!
- Fork the repo
- Create a branch for your new feature (
git checkout -b feature/my-cool-feature) - Commit your changes (
git commit -am feature/my-cool-feature) - Push to the branch (
git push origin feature/my-cool-feature) - Create a new Pull Request
Meta
Distributed under the MIT license. See LICENSE.txt for more information.
Metadata
Release files for love-three 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| love-three-1.1.0.tar.gz | 4.5 kB | Without provenance | Details for love-three-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| love_three-1.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for love_three-1.1.0-py2.py3-none-any.whl |
Total release size: 8.3 kB
Release files / love-three-1.1.0.tar.gz
| Download URL | love-three-1.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc8f2169a42b61ec1f9cf4b4917367805fe8decf108034b022e896df2c25ef6e
|
|
BLAKE2b-256 checksum How to use checksums |
a6c43c0d06e973d3d1bd9478deab0e51f4eeebe68f369f3a5f62095fa3aa4959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7
|
Release files / love_three-1.1.0-py2.py3-none-any.whl
| Download URL | love_three-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
80b0ca9b2fa12634c61ff453ab5e375908bd2280ffd44fc1ba9b9a8f5eb0ad80
|
|
BLAKE2b-256 checksum How to use checksums |
14f1fca2c3da40ec66d41de794dafbfa400d5c9cac881da06eb06e1fc2b14c71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7
|
Security for love-three 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.