Skip to main content

MongoDB Change Streams tracker

Project description

mongoct

License PyPI version

MongoDB Change Streams tracker. Using mongoct allows you to pipe the MongoDB collection changes to another program or file.

Installation

To install mongoct, simply run:

$ pip install mongoct

Quickstart

Before executing the command line tool you'll need a MongoDB URI connection in your environment (MONGODB_URI)¹.

Tracking changes in a certain collection is as easy as running the following command:

$ mongoct company posts

Changes will start flowing as JSON at the same time they're applied to the post collection in the company database.

You can now pipe the data to another program like jq or save it to a file for latter processing.

¹ It's also possible to specify the MongoDB URI as an option (mongoct company posts -u "mongodb://user:pass@host/db")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mongoct, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size mongoct-0.1.2-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size mongoct-0.1.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page