from pyseri import serializer
class A():
name = 'class a'
class B():
name = 'class b'
a = [A(), A(), A()]
serializer.dump(B(), mapper={'A': {'name'}, 'B':{'name', 'a'}})
#output
"""
{
'name': 'class b',
'a': [
{'name': 'class a'},
{'name': 'class a'},
{'name': 'class a'}
]
}
"""
from pyseri import serializer
class A():
getters = ['name']
#this key is important
name = 'class a'
class B():
getters = ['name', 'a']
#this key is important
name = 'class b'
a = [A(), A(), A()]
serializer.dump(B())
#output
"""
{
'a': [
{'name': 'class a'},
{'name': 'class a'},
{'name': 'class a'}
],
'name': 'class b'}
"""
Metadata
Release files for pyseri 1.1.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 |
|---|---|---|---|---|
| pyseri-1.1.1.tar.gz | 1.2 kB | Without provenance | Details for pyseri-1.1.1.tar.gz |
Release files / pyseri-1.1.1.tar.gz
| Download URL | pyseri-1.1.1.tar.gz |
|---|---|
| Size | 1.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07c7bfdb87394d23d5003d7427959ec9f158ea5cc43bc25a9ad9166d5f75404b
|
|
BLAKE2b-256 checksum How to use checksums |
54b00212df577223cad903d809251e93858aaa7968cb50919afa17679f9ee3ae
|
| 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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Security for pyseri 1.1.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.