Skip to content

Library that allows you to ingest data from mongo database into an s3 bucket.

License

Notifications You must be signed in to change notification settings

MihailButnaru/MongoIngestorS3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Ingestor Mongo -> S3

Library that allows you to ingest data from mongo database into an s3 bucket.

codebeat badge

The problem

You want to send all the collections from mongo database into S3 without touching your own implementation. As part of this goal, MongoIngestorS3 allows you to ingest data from mongo to s3 by specifying the format of file.

This solution

MongoIngestorS3 is a very lightweight solution allowing you to send data to s3 from mongo, and stored in either csv or json files.

Installation

Start by building a development environment

  1. Install the dependencies of project
$ pip install -r requirements.txt
  1. An example of the credentials is provided, run the credentials
$ source credentials.sh

Samples

A short sample how to use the library

from src.ingestor import Ingestor

data_ingesting = Ingestor()
data_ingesting.start_ingesting('csv')