Nxpy Past
You can install the library with pip:
pip install nxpy-past
Nxpy Past provides ways to express conditions on the current Python version to help handling version differences:
import nxpy.core.past
if nxpy.core.past.V_2_6.at_least():
import abc
else:
class abc(object):
class ABCMeta(type):
def __new__(mcs, name, bases, dict):
return type.__new__(mcs, name, bases, dict)
It is also possible to express assertions on the current version to better document why some code fails:
import nxpy.core.past nxpy.core.past.enforce_at_least(nxpy.core.past.V_2_6)
The library’s documentation is available on ReadTheDocs.
Metadata
Release files for nxpy-past 1.0.4
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 |
|---|---|---|---|---|
| nxpy_past-1.0.4.tar.gz | 4.2 kB | Without provenance | Details for nxpy_past-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nxpy_past-1.0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for nxpy_past-1.0.4-py2.py3-none-any.whl |
Total release size: 9.4 kB
Release files / nxpy_past-1.0.4.tar.gz
| Download URL | nxpy_past-1.0.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fc901e149405f351f943c7bcad23956fdcb6d7b36068fa83127c4e1d68b46d1
|
|
BLAKE2b-256 checksum How to use checksums |
9b861d3a536ccbe5e82d7311e3d1d91cca5621138ac44b232a94ef8c8597c70c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / nxpy_past-1.0.4-py2.py3-none-any.whl
| Download URL | nxpy_past-1.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a5c4df4a2bb986e087227f59819ac9add626cedd615377b670c47422a695d17d
|
|
BLAKE2b-256 checksum How to use checksums |
e7665a6508d4dd7fa036126524d5bb446d4b23aa347b2eb9bb94eaeacf0d3f09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for nxpy-past 1.0.4
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.