Exports a mongo collection as a variety of different file types.
- CSV
- XLSX
- JSON
Install with pip
pip install mongotocsv
Install directly from GitHub
pip install git+https://github.com/BlackIsBlack/mongotocsv
from mongotocsv import mongotocsv
# Get all documents from 'submissions' and add them to a CSV file.
me = mongotocsv.MongoExport("10.0.0.1","username","password")
me.create_csv("filename","submissions",{},"filename")
If you have any feedback, please submit an issue of GitHub