Python application template
A set of patches for the excellent attrs library
| For | See |
|---|---|
| Documentation | https://psa-exe.gitlab.io/python-attrs-patch |
| Issue tracker | https://gitlab.com/psa-exe/python-attrs-patch/issues |
| Repository contents | MANIFEST |
| History of changes | CHANGELOG |
| Contribution/development guide | CONTRIBUTING |
| Copy of MIT License | LICENSE |
Installation
pip install pedroasad-attrs-patch
This library contains optional support for Numpy arrays in attrs frozen classes.
It may be installed by passing the [numpy] option when installing.
Usage
It acts as a drop-in replacement to attrs. The example below shows how to use it, including all currently existing improvements.
from attrs_patch import attr
@attr.autodoc
@attr.s(frozen=True)
class SomeClass:
a = attr.ib(metadata={"help": "An immutable numpy array."},
converter=attr.frozen_numpy_array,
hash=False)
b = attr.ib(metadata={"help": "A positive integer."},
converter=int,
validator=attr.validators.positive)
c = attr.ib(metadata={"help": "A non-zero integer."},
converter=int,
validator=attr.validators.nonzero)
— Powered by GitLab CI
— Created by Pedro Asad <pasad@lcg.ufrj.br> using cookiecutter and @pedroasad.com/templates/python/python-app-1.0
Metadata
Release files for pedroasad-attrs-patch 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| pedroasad-attrs-patch-0.2.1.tar.gz | 7.0 kB | Without provenance | Details for pedroasad-attrs-patch-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pedroasad_attrs_patch-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pedroasad_attrs_patch-0.2.1-py3-none-any.whl |
Total release size: 14.3 kB
Release files / pedroasad-attrs-patch-0.2.1.tar.gz
| Download URL | pedroasad-attrs-patch-0.2.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c802cd37aa1848d4f995df8c24d12a98a0a574eab9401598549dbc347a0b0c6
|
|
BLAKE2b-256 checksum How to use checksums |
59f0871f38a5ac50d3df47fe2b206afffce971315aa81e0ff773ddb3b68140e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / pedroasad_attrs_patch-0.2.1-py3-none-any.whl
| Download URL | pedroasad_attrs_patch-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef4806db5893c7ecd761a07879401b7922c2ba840d1ae81c736336e5556ef0ce
|
|
BLAKE2b-256 checksum How to use checksums |
cb2d513957425ed174d764e50094efe8eb3721637bf31f16fda4224f9503cbe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for pedroasad-attrs-patch 0.2.1
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.