Skip to content
/ bson Public

Independent BSON codec for Python that doesn't depend on MongoDB.

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE_APACHE
Notifications You must be signed in to change notification settings

py-bson/bson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TO USE:
Add bson.py to your project.

>> import bson
>>> a = bson.dumps({"A":[1,2,3,4,5,"6", u"7", {"C":u"DS"}]})
>>> b = bson.loads(a)
>>> b
{'A': [1, 2, 3, 4, 5, '6', u'7', {'C': u'DS'}]}

Currently, bson.dumps() and bson.loads() expects everything to be documents, or
dicts in Python-speak.

TODO:
1. Make dumps() and loads() accept types other than documents/dicts.
2. Add setup.py so it can be packaged to an egg.
3. Write doctests.

About

Independent BSON codec for Python that doesn't depend on MongoDB.

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE_APACHE

Stars

Watchers

Forks

Packages

No packages published