Examples¶
The examples in this section are intended to give in depth overviews of how to accomplish specific tasks with MongoDB and PyMongo.
Unless otherwise noted, all examples assume that a MongoDB instance is running on the default host and port. Assuming you have downloaded and installed MongoDB, you can start it like so:
$ mongod
- Aggregation Examples
- Authentication Examples
- Collations
- Copying a Database
- Custom Type Example
- Bulk Write Operations
- Client Bulk Write Operations
- Datetimes and Timezones
- Geospatial Indexing Example
- Gevent
- GridFS Example
- High Availability and PyMongo
- Logging
- PyMongo and mod_wsgi
- Network Compression
- Server Selector Example
- Tailable Cursors
- Client Side Operation Timeout
- TLS/SSL and PyMongo
- Type Hints
- In-Use Encryption
- Handling UUID Data