Python driver for MongoDB <http://www.mongodb.org>
Project description
- Info:
See the mongo site for more information. See github for the latest source.
- Maintainer:
Bernie Hackett <bernie@10gen.com>
About
The PyMongo distribution contains tools for interacting with MongoDB database from Python. The bson package is an implementation of the BSON format for Python. The pymongo package is a native Python driver for MongoDB. The gridfs package is a gridfs implementation on top of pymongo.
Issues / Questions / Feedback
Any issues with, questions about, or feedback for PyMongo should be sent to the mongodb-user list on Google Groups. For confirmed issues or feature requests, open a case on jira. Please do not e-mail any of the PyMongo developers directly with issues or questions - you’re more likely to get an answer on the list.
Installation
If you have distribute installed you should be able to do easy_install pymongo to install PyMongo. Otherwise you can download the project source and do python setup.py install to install.
Dependencies
The PyMongo distribution is supported and tested on Python 2.x (where x >= 4) and Python 3.x (where x >= 1). PyMongo versions <= 1.3 also supported Python 2.3, but that is no longer supported.
Additional dependencies are:
Examples
Here’s a basic example (for more see the examples section of the docs):
>>> import pymongo
>>> client = pymongo.MongoClient("localhost", 27017)
>>> db = client.test
>>> db.name
u'test'
>>> db.my_collection
Collection(Database(MongoClient('localhost', 27017), u'test'), u'my_collection')
>>> db.my_collection.save({"x": 10})
ObjectId('4aba15ebe23f6b53b0000000')
>>> db.my_collection.save({"x": 8})
ObjectId('4aba160ee23f6b543e000000')
>>> db.my_collection.save({"x": 11})
ObjectId('4aba160ee23f6b543e000002')
>>> db.my_collection.find_one()
{u'x': 10, u'_id': ObjectId('4aba15ebe23f6b53b0000000')}
>>> for item in db.my_collection.find():
... print item["x"]
...
10
8
11
>>> db.my_collection.create_index("x")
u'x_1'
>>> for item in db.my_collection.find().sort("x", pymongo.ASCENDING):
... print item["x"]
...
8
10
11
>>> [item["x"] for item in db.my_collection.find().limit(2).skip(1)]
[8, 11]
Documentation
You will need sphinx installed to generate the documentation. Documentation can be generated by running python setup.py doc. Generated documentation can be found in the doc/build/html/ directory.
Testing
The easiest way to run the tests is to install nose (easy_install nose) and run nosetests or python setup.py test in the root of the distribution. Tests are located in the test/ directory.
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
Built Distributions
File details
Details for the file pymongo-2.6.2.tar.gz
.
File metadata
- Download URL: pymongo-2.6.2.tar.gz
- Upload date:
- Size: 322.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091d584f7b5d8de60bf6152d9269ec9a29ae7fa34415862b2f092af393233c4e |
|
MD5 | f05a2bae2e49e3303fc4435fb4ee9677 |
|
BLAKE2b-256 | af27c32d74e8f768487b661ed0b0b07f73c579a2088ffcee7e558c6d8a22997a |
File details
Details for the file pymongo-2.6.2.win-amd64-py3.3.exe
.
File metadata
- Download URL: pymongo-2.6.2.win-amd64-py3.3.exe
- Upload date:
- Size: 404.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84fc03cbd6b5239adb5629c8028907bc54acf7d628978be84083e0c484e02937 |
|
MD5 | faeea50d8d53a8961ff23d392ccb1c72 |
|
BLAKE2b-256 | 75cb75f6a523e7357a15dabf245f0589b2399bb50823925db5d4e89c00afcef3 |
File details
Details for the file pymongo-2.6.2.win-amd64-py3.2.exe
.
File metadata
- Download URL: pymongo-2.6.2.win-amd64-py3.2.exe
- Upload date:
- Size: 406.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02518ba349e82f1e37eb2f342dfebbefd384a2fccbc1a1c7aa0c5473b1cb28b7 |
|
MD5 | afe65402cd8ac5aa16db602c297eae56 |
|
BLAKE2b-256 | d12e7e47657c5bccd9acd84ad361269c25073b480bfac7ad3fb64cfa5cc2d796 |
File details
Details for the file pymongo-2.6.2.win-amd64-py2.7.exe
.
File metadata
- Download URL: pymongo-2.6.2.win-amd64-py2.7.exe
- Upload date:
- Size: 405.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58514f21b66fa389bb18b883abdf01b935ca8c80e7f14140efca8e235d06d129 |
|
MD5 | 1d7a92c966c3252709d01db7f78b4c24 |
|
BLAKE2b-256 | af9ed041a73a055f42a3136205d7c7409efb748191750f09a661f7acae969d04 |
File details
Details for the file pymongo-2.6.2.win-amd64-py2.6.exe
.
File metadata
- Download URL: pymongo-2.6.2.win-amd64-py2.6.exe
- Upload date:
- Size: 405.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f882441de4e2fdf6c8b04e0cfdd7f1df6939e2f0409161f485047a459f601883 |
|
MD5 | d25ce61f991f723cd5644dc853189713 |
|
BLAKE2b-256 | 30bdfa1da787fbf0196d459d747d24792d949c0c6ce7b32e23c93aa8fedbd125 |
File details
Details for the file pymongo-2.6.2.win32-py3.3.exe
.
File metadata
- Download URL: pymongo-2.6.2.win32-py3.3.exe
- Upload date:
- Size: 371.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8cef16cf6942ff81469bb0a2cc3715e89144bca18d8295b8d230e12ce439387 |
|
MD5 | 06c51d28496404471015ef66a0bf4be3 |
|
BLAKE2b-256 | a6dfd2477bde115551ad43ff52fb0cd3d7826aa534d916d257eb6c9c852d4318 |
File details
Details for the file pymongo-2.6.2.win32-py3.2.exe
.
File metadata
- Download URL: pymongo-2.6.2.win32-py3.2.exe
- Upload date:
- Size: 376.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb1be17d1709ba92da8afb19ebf9318190155d8a1838cdaf6c1759782aae7be0 |
|
MD5 | 5c8384a0f37508b6a43963805edd73d3 |
|
BLAKE2b-256 | 8cccbe3d291588a460a51f2dd153afb251c657020fd17f604557489fa3222cb8 |
File details
Details for the file pymongo-2.6.2.win32-py2.7.exe
.
File metadata
- Download URL: pymongo-2.6.2.win32-py2.7.exe
- Upload date:
- Size: 375.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e714cc67c160aac5c65149eed2da64503cf61a45c4a4f49ccdc3934e625f67 |
|
MD5 | d9caf4072c49d0eae56ed8af89cb7313 |
|
BLAKE2b-256 | 654db7b33829ed529d91e01e74ab9f84e22a66401b32c3c63ec53e34c4f7e9c3 |
File details
Details for the file pymongo-2.6.2.win32-py2.6.exe
.
File metadata
- Download URL: pymongo-2.6.2.win32-py2.6.exe
- Upload date:
- Size: 376.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 570a405a43508dd4be344c04419fee7f30bc6df32279634c2044e75cc38cd7ea |
|
MD5 | 74fb2e54703ccbc32d4b9bee440693fd |
|
BLAKE2b-256 | cda1c7ceea9846eb856f9e16518a79e226f7eb57aa114e2253d20ca2db0b6b5f |
File details
Details for the file pymongo-2.6.2.win32-py2.5.exe
.
File metadata
- Download URL: pymongo-2.6.2.win32-py2.5.exe
- Upload date:
- Size: 242.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97d16d3558dd5c88b4ba853b93033e20c9c0deb1b84615c291ea9e6e6b6e8b9 |
|
MD5 | f9b94e5d0040bd773810d83094bc9d78 |
|
BLAKE2b-256 | 497ca8c091f6f27575030559fad8656e6d2790ea1277d81e062f716bbb46a566 |
File details
Details for the file pymongo-2.6.2.win32-py2.4.exe
.
File metadata
- Download URL: pymongo-2.6.2.win32-py2.4.exe
- Upload date:
- Size: 242.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed82686f4378bbc2d713843358375426e631582a2d7d802ba684994e173dc710 |
|
MD5 | ee5964794963acf10127b1d0f288fc22 |
|
BLAKE2b-256 | f0588e27313c7cbfb8482dfad9631b09a3222f4ad9fe2f4ee70e2dd387344718 |
File details
Details for the file pymongo-2.6.2-py3.3-win-amd64.egg
.
File metadata
- Download URL: pymongo-2.6.2-py3.3-win-amd64.egg
- Upload date:
- Size: 363.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c34bd775fb830de2ed76f0343807fac971369e63452a4704bb7981374573e5a2 |
|
MD5 | bf03db1dfd6d5ec3ef2c1794db9e2726 |
|
BLAKE2b-256 | 0d15f3889e039049c95f9c6895249a64e209f91993dc4adeca62aaf3fb53afe1 |
File details
Details for the file pymongo-2.6.2-py3.3-win32.egg
.
File metadata
- Download URL: pymongo-2.6.2-py3.3-win32.egg
- Upload date:
- Size: 361.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e2d04fb4e8d0fc0ad5f3e9e2414abe935c78df146b410b9142d34b676386e4 |
|
MD5 | 88bb21778fa8681344cf1f2e928e6c81 |
|
BLAKE2b-256 | aeec29bf56916d4c0d61afc1536f55071b91f00b10061fc14ee874b823f569c1 |
File details
Details for the file pymongo-2.6.2-py3.3-macosx-10.6-intel.egg
.
File metadata
- Download URL: pymongo-2.6.2-py3.3-macosx-10.6-intel.egg
- Upload date:
- Size: 386.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f69909cbe48700f4faa8c03d863eb56bfc391a072ed71e715d7385a3db5fe2 |
|
MD5 | d8b28d742e0d35026263db43ed6caa74 |
|
BLAKE2b-256 | 303241bea4d35acf301696aac20daf86e8443a24bb9f6338a9b639b42ef2689d |
File details
Details for the file pymongo-2.6.2-py3.2-win-amd64.egg
.
File metadata
- Download URL: pymongo-2.6.2-py3.2-win-amd64.egg
- Upload date:
- Size: 357.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2922bccf6c43fc1ef5a2fcd63d581858ff49d7bcc6601b6fe6dbe08f02874917 |
|
MD5 | 7326df71cc2a9ea30f69509b4154449a |
|
BLAKE2b-256 | 610087ab8b74409ff4baf6f9ec7d994d5369e58d209fa13fe05042e638127046 |
File details
Details for the file pymongo-2.6.2-py3.2-win32.egg
.
File metadata
- Download URL: pymongo-2.6.2-py3.2-win32.egg
- Upload date:
- Size: 355.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a426d789312cb5221e584d70ff40b1e0d1ab41df59f29f461bbe88bc6fc4d212 |
|
MD5 | c8e561d40648f120b4b69056a8b02607 |
|
BLAKE2b-256 | 2e71bef4643e669d3553c9ebd65729debc7a88ba047fe1c4db9a0faf87b2cb71 |
File details
Details for the file pymongo-2.6.2-py3.2-macosx-10.6-intel.egg
.
File metadata
- Download URL: pymongo-2.6.2-py3.2-macosx-10.6-intel.egg
- Upload date:
- Size: 379.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f380cada7acdeaa5c87ff7af0389bc77e84356a0fd34dc63f789e253c875775 |
|
MD5 | 0eb860fe6dc8be3a893883d4a245fb33 |
|
BLAKE2b-256 | ec5eec97dcee5995a3a77bec517ea8d5e5553784b23a26d44efc92831765745d |
File details
Details for the file pymongo-2.6.2-py2.7-win-amd64.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.7-win-amd64.egg
- Upload date:
- Size: 351.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1365c5b9ecc1f5e74b7992064527dd995a37bbf9cb0ed3be6911acf84dfa230e |
|
MD5 | 2b0fc3dd5c404d89e0822ee17605f7a4 |
|
BLAKE2b-256 | 41da1fd28b0148ace1fdf9c3fd3992b35439063330e5410c9e151d2360d3996e |
File details
Details for the file pymongo-2.6.2-py2.7-win32.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.7-win32.egg
- Upload date:
- Size: 349.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37fbc69fa52cb3593cf7c1f240ac869ec5d09d2992f8c2f010b041ba43480cb3 |
|
MD5 | 78ab28057c4c149dfa46c270d2d3f29f |
|
BLAKE2b-256 | 197b03419c3e7b8459ba0dcf7bee60d6964e911c18966d5de824f856e5ebb42f |
File details
Details for the file pymongo-2.6.2-py2.7-macosx-10.8-intel.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.7-macosx-10.8-intel.egg
- Upload date:
- Size: 370.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70e0691c9c4cc04ba4d6a52663347d8ca320d7a6c3316cec7138c9da5ea2d2e4 |
|
MD5 | 035efa4132f95e2772a47051bba65035 |
|
BLAKE2b-256 | ea83bf9c54d248d2802c060acbbf186f0457fe3dbfabd03ee5a64735319ae9a7 |
File details
Details for the file pymongo-2.6.2-py2.7-macosx-10.7-intel.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.7-macosx-10.7-intel.egg
- Upload date:
- Size: 371.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc865319b22fe1e99c155b76a1c0402d0a45c5d804a7504cf116236a1dfb5c9a |
|
MD5 | 8a30920032d8bdb7380d77bb175a509d |
|
BLAKE2b-256 | 692932e88254b14822e787b63ff2717faa8badd0a75dc0b6a3290e9bfb106ec0 |
File details
Details for the file pymongo-2.6.2-py2.6-win-amd64.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.6-win-amd64.egg
- Upload date:
- Size: 352.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca422d7d2f6bf78020fa7f738b3f15343f8efcbf04ed4b49dca54eef8886e6a |
|
MD5 | a7fc98ee97bfc5ded880a0cf73148de5 |
|
BLAKE2b-256 | 2cd8e120767560550aea3b79a3457e06dd228a8f75dd4623a368f7e7c2646ea4 |
File details
Details for the file pymongo-2.6.2-py2.6-win32.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.6-win32.egg
- Upload date:
- Size: 351.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879aa46b091bd9450d5b55c50c99918cf10cf34a2a79d42eaf18115efcf2ddcc |
|
MD5 | 08362f4b458b4cae7fec771f47a1acbe |
|
BLAKE2b-256 | 8cf0d8fce8985108392568bc3403d24b5009f2c0bf30b5823542dd4d5a5756b6 |
File details
Details for the file pymongo-2.6.2-py2.6-macosx-10.8-intel.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.6-macosx-10.8-intel.egg
- Upload date:
- Size: 371.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d94cac7f4cf872ddc70b2e74690a237980f2fb71dcd77f2892af0acc081ea5d9 |
|
MD5 | 5d4921fa67dda60e1fb763e9407c3744 |
|
BLAKE2b-256 | 306bccf7ec75622ad0820a56f272cbe30976957984eec363de718ddf1eb5bd64 |
File details
Details for the file pymongo-2.6.2-py2.6-macosx-10.7-intel.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.6-macosx-10.7-intel.egg
- Upload date:
- Size: 371.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22596c6b4dc74f488b2cc53c6d3daae087596086a2292690c4d89ac9200f5d8f |
|
MD5 | cc28d65481e26154f437f8ce1f48def9 |
|
BLAKE2b-256 | 47e64fa429d8352dd5baee363b862f11e22a6b340e7ced90fdc3e017fa99d47e |
File details
Details for the file pymongo-2.6.2-py2.5-win32.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.5-win32.egg
- Upload date:
- Size: 351.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97495675cba53385ab124eaa9ba62cd35e7d9a4e9f10ccc1756a31d8a947db63 |
|
MD5 | 292136fd3cae3226befaba0f3876ff91 |
|
BLAKE2b-256 | 9c6e5384cd9372bb4991ffe885f24580c0f26046948f10efef2741440e7a8540 |
File details
Details for the file pymongo-2.6.2-py2.5-macosx-10.8-x86_64.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.5-macosx-10.8-x86_64.egg
- Upload date:
- Size: 350.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffc3e18ad6b5a8a784d438583f8383b91605b0399237da81b4c02785602ab566 |
|
MD5 | 14320bb24fe6f224c672d10d48cec7a4 |
|
BLAKE2b-256 | 14e7f833c376cef9ddef9b0d2ce9a0a7f558491275a3635ef5523132c33481f1 |
File details
Details for the file pymongo-2.6.2-py2.5-macosx-10.7-x86_64.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.5-macosx-10.7-x86_64.egg
- Upload date:
- Size: 350.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20d602842e95f082a24abdab02e3add90a0817149eeb466f0d52032e4a06203 |
|
MD5 | d3211364d3e68a57c50c7fa137bdcbfd |
|
BLAKE2b-256 | 597323f67292daa5b77d71db9d3b106fc1ed6656dc5ef27b12d4a4fcb6a4dbad |
File details
Details for the file pymongo-2.6.2-py2.4-win32.egg
.
File metadata
- Download URL: pymongo-2.6.2-py2.4-win32.egg
- Upload date:
- Size: 355.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23553020c70e96dfabd506e2e0c7337718e9fae5d97c363f5f79e0b69a8786c3 |
|
MD5 | e1aabbf12e6136a9e2a557cd5596a4db |
|
BLAKE2b-256 | 165816f1c63f891210293fa2264722301c9c6f6f0c5bc279583bce65c4a2ce2d |