strictdataclass
Sections:
Purpose
This package contains the necessary base class structure for strict, auto-casting dataclasses for use in an inheritence architecture. The inheritable base class has custom double-underscore (dunder), convenience, and property methods.
Contents
This package contains two modules written in pure Python (3.7 or newer) with the following code blocks accessible from the root module:
StrictDataclass: Inheritable base class for automatic type casting on instantiationObjectTypeNotCastableError: Error raised when type casting fails
Installation
This package is distributed to PyPi, and can be installed with either of the following commands:
pip install strictdataclasspip3 install strictdataclass
Usage
Inherit the base class StrictDataclass in a dataclass-decorated
class definition to inherit the type casting properties.
Declaration
@dataclass
class Foo(StrictDataclass):
bar: bool
foo: int = 5
Issues/Limitations
Although there are currently no known cast failing cases or performance issues, this package is in its infancy and has been marked as:
Beta
Author
Braden Toone is the sole author and maintainer of this code, and can be contacted via email at braden@toonetown.com
License
This package is licensed under the OSI Approved MIT License for free commercial and personal use as stated in the LICENSE file.
Metadata
Release files for strictdataclass 0.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 |
|---|---|---|---|---|
| strictdataclass-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for strictdataclass-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strictdataclass-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for strictdataclass-0.1.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / strictdataclass-0.1.0.tar.gz
| Download URL | strictdataclass-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e7c7047e80310ec33c52c4449103bb0ab242afcb682022959fcf2f66f2f263e
|
|
BLAKE2b-256 checksum How to use checksums |
9fcb2d2188b05a7813518280cc1b9a80e8fc10dfbe1a123892a6f4e9d7f86e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / strictdataclass-0.1.0-py3-none-any.whl
| Download URL | strictdataclass-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
732e3fa006e084cc70783b5a45ae676014d89088558d05782dab5d54ea4ba5c1
|
|
BLAKE2b-256 checksum How to use checksums |
dac26801c054ee86ff7835f414d2e11fb55c4f907283edd116050f955f0b913b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for strictdataclass 0.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.