Library json_serializer and xml_serializer
This library serializes json and xml format files.
Installation
pip install Artur_serializer
Get Started
import math from Artur_serializer.serializer_zavod import zavod
def my_decor(meth): def inner(*args, **kwargs): print('I am in my_decor') return meth(*args, **kwargs)
return inner
class A: x = 10
@my_decor
def my_sin(self, c):
return math.sin(c * self.x)
@staticmethod
def stat():
return 145
def __str__(self):
return 'AAAAA'
def __repr__(self):
return 'AAAAA'
class B: def init(self, a, b): self.a = a self.b = b
@classmethod
def class_meth(cls):
return math.pi
@property
def prop(self):
return self.a * self.b
class C(A, B): pass
ser = zavod.create_zavod('json')
C_ser = ser.dumps(C) C_des = ser.loads(C_ser)
c = C(1, 2) c_ser = ser.dumps(c) c_des = ser.loads(c_ser)
print(c_des) print(c_des.x) print(c_des.my_sin(10)) print(c_des.prop) print(C_des.stat()) print(c_des.class_meth())
Metadata
Release files for Artur-serializer 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 | |
|---|---|---|---|---|
| Artur_serializer-0.1.0.tar.gz | 6.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Artur_serializer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / Artur_serializer-0.1.0.tar.gz
| Download URL | Artur_serializer-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54ab2a5628bc5d639de801a0f1e3482d24b1c9cf8cf5de6b54c4357defb069e0
|
|
BLAKE2b-256 checksum How to use checksums |
7e9e89dfabd0dfbe29be69ee169666552b087d98533c732fc8be78ea2c457d24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / Artur_serializer-0.1.0-py3-none-any.whl
| Download URL | Artur_serializer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ffc9f5b1218d38e7f4845729e92b3b3d99ae1083b4c1b5efe479616ed477207
|
|
BLAKE2b-256 checksum How to use checksums |
ead147b93ec9e5902fb25db7b0f2b5047b8eeedf487b58c0d0a6dea8e209380a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for Artur-serializer 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.