marshmallow-meta
decorator syntax for marshmallow meta attributes (with inheritance)
Decorators communicate that the behavior of a class is being modified and are more concise when only a few meta attributes are needed. Making inheritance the default further reduces the boilerplate needed to make minor changes to a subclass.
Install
pip install marshmallow-meta
from marshmallow_meta import meta
API
@meta(*kwargs)
Build a meta class that inherits attributes from the base schema's meta class.
@meta(unknown=INCLUDE)
class Test(Schema):
foo = fields.String()
@meta.new(*kwargs)
Build a new meta class without inherited attributes.
@meta.new(fields=('bar', 'baz'))
class Fresh(Test):
pass
@meta.use(*classes, **kwargs)
Build a meta class that inherits attributes from certain meta classes.
@meta.use(Test.Meta)
class CopyCat(Schema):
buzz = fields.String()
Metadata
Release files for marshmallow-meta 0.0.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 | |
|---|---|---|---|---|
| marshmallow-meta-0.0.1.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| marshmallow_meta-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / marshmallow-meta-0.0.1.tar.gz
| Download URL | marshmallow-meta-0.0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b658764256ef6882657e1393a384c1856edac47c2a9474e56426bbba1133578
|
|
BLAKE2b-256 checksum How to use checksums |
ea70d2d911bd62e47c3f6048c3b6c63016fa4f5adaed0a56de44e0913680a0b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Release files / marshmallow_meta-0.0.1-py3-none-any.whl
| Download URL | marshmallow_meta-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0edf2b12d7a087d6a4f72a5dd93f9eb5c951d8370db9e36d4dceb01e428aa6af
|
|
BLAKE2b-256 checksum How to use checksums |
1f8fa6af060597b5e47c5f0bd9af964719068842e3c5f84f6e0e2f0d575e35b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Security for marshmallow-meta 0.0.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.