plur: 🔢 simple universal word pluralizer 🔢
Tired of seeing 1 branch(es) deleted?
Sick of
es = '' if len(branches) == 1 else 'es'
print(f'{len(branches) branch{es} created')
or even worse?
Try plur for your tiny pluralization needs:
import plur
print(plur('branch', '-es'), branches), 'created)
- No dictionary file!
- No dependencies!
- No salesperson will call!
Examples:
import plur
dogs = ['fido', 'rover']
print(plur('dog', dogs)) # prints: 2 dogs
dogs.pop()
print(plur('dog', dogs)) # prints: 1 dog
dogs.pop()
print(plur('dog', dogs)) # prints: 0 dogs
# Great for f-strings
dogs = 'fido', 'rover'
print(f'Today we have {plur("dog", dogs)}')
For words you use a lot, you can defer operation:
dog = plur('dog')
cat = plur('cat')
ox = plur('ox', '-en')
print(dog(dogs), 'live in my house with', ox(ox_list))
Metadata
Release files for plur 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 |
|---|---|---|---|---|
| plur-1.1.0.tar.gz | 1.8 kB | Without provenance | Details for plur-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plur-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for plur-1.1.0-py3-none-any.whl |
Total release size: 4.1 kB
Release files / plur-1.1.0.tar.gz
| Download URL | plur-1.1.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e28eaaef0cac8211b2b729bb27d30431adfd0a9c86b84d0d498fd365a78cfc29
|
|
BLAKE2b-256 checksum How to use checksums |
9f8f4fa944a6481e1f394057c00ff63a03ac24108c49a30c76dac9d183cfb563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / plur-1.1.0-py3-none-any.whl
| Download URL | plur-1.1.0-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
283fee5ca6097fb77018649246ad15f15e2be92fe048db1c40ef43bf024a80fe
|
|
BLAKE2b-256 checksum How to use checksums |
073886cff9dbbc850a235633c9b2e93e6d5125c08e16d5afa65f7525ddebf237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for plur 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.