skip to navigation
skip to content

Not Logged In

lambdaJSON 0.1.5

Serialize python standard types (tuple, bytes, dict with number keys, byte keys or tuple keys, and etc) with json

Package Documentation

Latest Version: 0.4.1

Serialize python standard types (tuple, bytes, dict with number keys, byte keys or tuple keys, and etc) with json. lambdaJSON lets you serialize python standard library objects with json. Typical usage:

#!/usr/bin/env python

>>> import lambdaJSON
>>> myComplexData = {True: (3-5j), (3+5j): b'json', (1, 2, 3): {b'lambda': [1, 2, 3, (3, 4, 5)]}}
>>> mySerializedData = lambdaJSON.serialize(myComplexData)
>>> myComplexData  == lambdaJSON.deserialize(mySerializedData)
True

>>>

Currently Supported Types

This types are covered in this version:

  1. Bytes
  2. Tuples
  3. Complex
  4. Dicts (With Number, Tuple, String, Bool and Byte keys)
  5. other json supported types

Changes from previous

Security fix. Using ast.literal_eval as eval.

Project Info

Github project page: https://github.com/pooya-eghbali/lambdaJSON Mail me at: persian.writer [at] Gmail.com

 
File Type Py Version Uploaded on Size
lambdaJSON-0.1.5.zip (md5) Source 2013-08-29 6KB
  • Downloads (All Versions):
  • 24 downloads in the last day
  • 601 downloads in the last week
  • 2611 downloads in the last month