JsonWeb 0.8.2
pip install JsonWeb
Latest version
Released:
Quickly add json serialization and deserialization to your python classes.
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License (BSD)
- Author: Shawn Adams
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Add JSON (de)serialization to your python objects
>>> from jsonweb import decode, encode >>> @encode.to_object() ... @decode.from_object() ... class User(object): ... def __init__(self, nick, email): ... self.nick = nick ... self.email = email >>> json_str = encode.dumper(User("cool_user123", "cool_user123@example.com")) >>> print json_str {"nick": "cool_user123", "__type__": "User", "email": "cool_user123@example.com"} >>> user = decode.loader(json_str) >>> print user.nick cool_user123 >>> print user <User object at 0x10145e390>
See documentation
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License (BSD)
- Author: Shawn Adams
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file JsonWeb-0.8.2.tar.gz
.
File metadata
- Download URL: JsonWeb-0.8.2.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc70578c2ddc48e58a640ca23ed010c0fcd0e7d5ccc4b507ce996b3a393a662 |
|
MD5 | 8d81d6289c59f9ec57bc65d74492f348 |
|
BLAKE2b-256 | ca9212b3127e09b3141989a7e42f326a2f359514aae1e7e2fc4a568c97ef6cb9 |