Skip to main content

ETL tool for transfering data from MongoDB to PostgreSQL

Project description


Purrito is an open source ETL tool which transfers collections from MongoDB to PostgreSQL.


  • quick setup
  • generate schema based on existing MongoDB collections or use a custom schema
  • keep syncing with MongoDB real-time
  • update the schema while syncing without stopping anything
  • handle connectivity issues
  • view collection transfer statistics


MongoDB 3.4

PostgreSQL 9.6


Check out an example or set things up on your own:

  • install Purrito by typing pip install purrito

  • start MongoDB as a replica set

  • create a source database in MongoDB and add a collection with a couple of documents

  • create a destination database in Postgres

  • generate the schema (collections.yml):

    purrito -m -mdb mongodb://localhost:27017 -n source_db

  • start Purrito:

    purrito -cf collections.yml -pg postgres://localhost:5432/destination_db -mdb mongodb://localhost:27017 -n source_db -t


For more details about Purrito check out our Documentation.


Want to help us and the community with perfecting Purrito? Take a look at our contribution Guidelines and submit a PR.

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 purrito, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size purrito-1.0.4-py3-none-any.whl (44.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size purrito-1.0.4.tar.gz (32.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page