Simple serializer
Project description
emw-serializer
- Basic serializer.
- Converts (nested) structures to
dict
or JSON string. - Useful for API work.
Usage
from emw_serializer import JsonSerializer
class Gakk:
def __init__(self):
self.a = 'a'
self.b = 5
serializer = JsonSerializer()
thing_to_serialize = Gakk()
json = serializer.serialize(thing_to_serialize)
print(json)
will print
{
"a": "a",
"b": 5
}
Capabilities
Caters for:
str
,int
,float
,bool
dict
,list
,set
Enum
- class properties
- object properties
@property
decoratorsproperty()
function
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emw_serializer-0.0.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for emw_serializer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 586629a9a34b3cb320bfc98cfcca02bf0ba47f406468d4c2ab338665b3cf2161 |
|
MD5 | 84d575cdc036169cd081fe999582b247 |
|
BLAKE2b-256 | 23ec815a073f6d407f459d61bd5f476ceba426bbbe8e425887f3ddf813f46ddf |