classical
Convenience tools for working with Python classes.
Simplified subclassing:
class MyClass:
def __init__(self, *args, **kwargs):
pass # do whatever
# subclass with presets
MySubClass = argumented_subclass(MyClass, 'MySubClass', arg1='value', arg2=4)
Various descriptors:
class Thing:
Red = ArgumentedSubclass(color='red')
book = AutoProperty(has='pages')
def __init__(self, color=None, has=None):
self.color = color
self.has = has
Thing.Red # is a subclass of Thing and is 'red'
Thing.Red.book # is an instance of Thing (and Thing.Red), is 'red' and has 'pages'
See the full documentation at http://classical.readthedocs.io/en/latest/
Installation
pip install classical
Testing
make test
You may need to install [fielded,testing] extras to run tests
Generating docs
make docs
You may need to install [fielded,docs] extras to generate docs
Metadata
Release files for classical 2.1.2
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 |
|---|---|---|---|---|
| classical-2.1.2.tar.gz | 10.9 kB | Without provenance | Details for classical-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| classical-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for classical-2.1.2-py3-none-any.whl |
Total release size: 24.0 kB
Release files / classical-2.1.2.tar.gz
| Download URL | classical-2.1.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64341c97bcb1f5034af066a8519a0edf2ffc24197e23d70875642434f3153995
|
|
BLAKE2b-256 checksum How to use checksums |
3ad33907a3caa33f066d8272255d80cc5d78574664838ce081eed6314952932a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.5.10
|
Release files / classical-2.1.2-py3-none-any.whl
| Download URL | classical-2.1.2-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09f9f1aea8dc6f7a2d958cab5885d15562cfa067710363a15c960800e58e30c9
|
|
BLAKE2b-256 checksum How to use checksums |
670f079b28b6ab43e297791b432dd46b5f1e38a22ba9c4df231f3f69597de0c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.5.10
|
Security for classical 2.1.2
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.