pymore
pymore is a collection of useful utilities for Python.
This includes
- EqualsTester: a helper for testing the equality contract in Python (originally developed for Cirq)
import pymore
tester = pymore.EqualsTester()
# This tests that the added elements all satisfy the equals contract
# between themselves.
tester.add_equality_group(MyObject("a"), MyObject("a"))
# Each new addition of an equality group also tests that the elements
# in this new group are not equal to those in the previously added group.
# So, for example, this would raise an `AssertionError` if it was
# true that `MyObject("a")` was equal to `MyObject("b")`.
tester.add_equality_group(MyObject("b"), MyObject("b"))
- first: Return the first element that matches a predicate, or a default.
import pymore
is_even = lambda x: x % 2 == 0
# Returns the first element that is even.
first = pymore.first([1, 3, 6, 7], is_even)
assert first == 6
License
This package is licensed under an Apache 2.0 license. This code is derived from work in other frameworks. See LICENSE and NOTICES for details.
Metadata
Release files for pymore 0.1.5
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 |
|---|---|---|---|---|
| pymore-0.1.5.tar.gz | 12.3 kB | Without provenance | Details for pymore-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymore-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for pymore-0.1.5-py3-none-any.whl |
Total release size: 25.5 kB
Release files / pymore-0.1.5.tar.gz
| Download URL | pymore-0.1.5.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39b99376c62f2ca02f5f6600d69f0f3d3f2103101514ef711fccfabcdb64a1a5
|
|
BLAKE2b-256 checksum How to use checksums |
de7f228d379452ff94ce3ecc1880e595008e633387d4e9847c07c6ebe8dd145a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / pymore-0.1.5-py3-none-any.whl
| Download URL | pymore-0.1.5-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81d492d4d8af14c7df9974a620e09a40861d30541039dd0fcb3ee6805a88b0ab
|
|
BLAKE2b-256 checksum How to use checksums |
a9a30e88676a834d2d145f237f34048104a2ae3a1f32fbecb55122524a282abb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for pymore 0.1.5
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.