Skip to main content

bson

https://img.shields.io/pypi/v/bson.svg https://img.shields.io/travis/py-bson/bson.svg https://img.shields.io/pypi/pyversions/bson.svg

Independent BSON codec for Python that doesn’t depend on MongoDB. The bson ObjectId implementation is forked from the PyMongo project, licensed under the Version 2.0 Apache License.

Installation

~ $ python setup.py install

or can use pip

~ $ pip install bson

Quick start

>>> 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'}]}

Sending and receiving BSON objects to and from network sockets.

>>> from gevent import monkey, socket
>>> monkey.patch_all()
>>>
>>> import bson
>>> bson.patch_socket()
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect(("127.0.0.1", 12345))
>>> s.sendobj({u"message" : "hello!"})

Metadata

Release files for bson-senao 0.5.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bson-senao 0.5.10
File Size Uploaded Provenance Actions
bson_senao-0.5.10.tar.gz 25.3 kB Without provenance Details for bson_senao-0.5.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bson-senao 0.5.10
File Interpreter ABI Platform Actions
bson_senao-0.5.10-py3-none-any.whl Python 3 none any Details for bson_senao-0.5.10-py3-none-any.whl

Total release size: 43.4 kB

Release files / bson_senao-0.5.10.tar.gz

Download URL bson_senao-0.5.10.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d546981430a0db98b59a354739cc677253d5ed44c26a4975a7ccb32e39899362
BLAKE2b-256 checksum
How to use checksums
e25b7bb0ed9329938ba3d40c80b3f08f2ec53c7c1f01565a0fd3b300f9674d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / bson_senao-0.5.10-py3-none-any.whl

Download URL bson_senao-0.5.10-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbee3092a4d1263a172f3800d3eeab0d696678c08ec3c494a31070950a4c5deb
BLAKE2b-256 checksum
How to use checksums
8248b551e8987a41a8ccf23a3ce477f4dd5c4f09881bec0b775ceb3327ade4c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for bson-senao 0.5.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page