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
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.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for emw_serializer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d94f5aa11b730f4520f0b378188e86fb6b27b79dc765b18dfe9813631cf457a7 |
|
MD5 | f1867d86586e85f1f8b6e7ceac8fc078 |
|
BLAKE2b-256 | feacc0e6a64100efe5905f5995dc6137ca2ff57dba08b32caf0891fc62dfe177 |