Package: pymongo-amplidata
Info:Seethe mongo sitefor more information. Seegithubfor the latest source.Author:Mike DirolfMaintainer:Bernie Hackett <bernie@mongodb.com>AboutThe PyMongo distribution contains tools for interacting with MongoDB
database from Python.  Thebsonpackage is an implementation of
theBSON formatfor Python. Thepymongopackage is a native Python driver for MongoDB. Thegridfspackage
is agridfsimplementation on top ofpymongo.PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, and 3.6.Support / FeedbackFor issues with, questions about, or feedback for PyMongo, please look into
oursupport channels. Please
do not email any of the PyMongo developers directly with issues or
questions - you’re more likely to get an answer on themongodb-userlist on Google Groups.Bugs / Feature RequestsThink you’ve found a bug? Want to see a new feature in PyMongo? Please open a
case in our issue management tool, JIRA:Create an account and login.Navigate tothe PYTHON project.ClickCreate Issue- Please provide as much information as possible about the issue type and how to reproduce it.Bug reports in JIRA for all driver projects (i.e. PYTHON, CSHARP, JAVA) and the
Core Server (i.e. SERVER) project arepublic.How To Ask For HelpPlease include all of the following information when opening an issue:Detailed steps to reproduce the problem, including full traceback, if possible.The exact python version used, with patch level:$ python -c "import sys; print(sys.version)"The exact version of PyMongo used, with patch level:$ python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"The operating system and version (e.g. Windows 7, OSX 10.8, …)Web framework or asynchronous network library used, if any, with version (e.g.
Django 1.7, mod_wsgi 4.3.0, gevent 1.0.1, Tornado 4.0.2, …)Security VulnerabilitiesIf you’ve identified a security vulnerability in a driver or any other
MongoDB project, please report it according to theinstructions here.InstallationPyMongo can be installed withpip:$ python -m pip install pymongoOreasy_installfromsetuptools:$ python -m easy_install pymongoYou can also download the project source and do:$ python setup.py installDonotinstall the “bson” package. PyMongo comes with its own bson package;
doing “easy_install bson” installs a third-party package that is incompatible
with PyMongo.DependenciesPyMongo supports CPython 2.6, 2.7, 3.4+, PyPy, and PyPy3.Optional dependencies:GSSAPI authentication requirespykerberoson Unix orWinKerberoson Windows. The correct
dependency can be installed automatically along with PyMongo:$ python -m pip install pymongo[gssapi]Support for mongodb+srv:// URIs requiresdnspython:$ python -m pip install pymongo[srv]TLS / SSL support may requireipaddressandcertifiorwincertstoredepending on the Python
version in use. The necessary dependencies can be installed along with
PyMongo:$ python -m pip install pymongo[tls]You can install all dependencies automatically with the following
command:$ python -m pip install pymongo[gssapi,srv,tls]Other optional packages:backports.pbkdf2,
improves authentication performance with SCRAM-SHA-1, the default
authentication mechanism for MongoDB 3.0+. It especially improves
performance on Python older than 2.7.8, or on Python 3 before Python 3.4.monotonicadds support for
a monotonic clock, which improves reliability in environments
where clock adjustments are frequent. Not needed in Python 3.3+.Additional dependencies are:(to generate documentation)sphinx(to run the tests under Python 2.6)unittest2ExamplesHere’s a basic example (for more see theexamplessection of the docs):>>>importpymongo>>>client=pymongo.MongoClient("localhost",27017)>>>db=client.test>>>db.nameu'test'>>>db.my_collectionCollection(Database(MongoClient('localhost',27017),u'test'),u'my_collection')>>>db.my_collection.insert_one({"x":10}).inserted_idObjectId('4aba15ebe23f6b53b0000000')>>>db.my_collection.insert_one({"x":8}).inserted_idObjectId('4aba160ee23f6b543e000000')>>>db.my_collection.insert_one({"x":11}).inserted_idObjectId('4aba160ee23f6b543e000002')>>>db.my_collection.find_one(){u'x':10,u'_id':ObjectId('4aba15ebe23f6b53b0000000')}>>>foritemindb.my_collection.find():...print(item["x"])...10811>>>db.my_collection.create_index("x")u'x_1'>>>foritemindb.my_collection.find().sort("x",pymongo.ASCENDING):...print(item["x"])...81011>>>[item["x"]foritemindb.my_collection.find().limit(2).skip(1)][8,11]DocumentationYou will needsphinxinstalled to generate the
documentation. Documentation can be generated by runningpython
setup.py doc. Generated documentation can be found in thedoc/build/html/directory.TestingThe easiest way to run the tests is to runpython setup.py testin
the root of the distribution. Note that you will needunittest2to
run the tests under Python 2.6.To verify that PyMongo works with Gevent’s monkey-patching:$ python green_framework_test.py geventOr with Eventlet’s:$ python green_framework_test.py eventlet