Skip to main content

Read from multiple databases and formats easily from python

Project description


This project is useful in any scenario where you need to read some data in a useable manner quickly and easily.

It can be used to read from:

  • csv
  • sqlite
  • mysql
  • redis
  • mongo
  • postgres
  • aerospike

Look at to write to them. This library was written with the intention to be useful without data-writers but they work very well together.



pip install data-readers


Import DataReader

from datareaders.datareader import DataReader


list_of_dicts = DataReader(reader=’csv’, database=’data.csv’).read()


list_of_dicts = DataReader(reader=’sqlite’, database=’data.sqlite’, table=’DataTable’).read()


list_of_dicts = DataReader(reader=’mysql’, database=’data’, user=’root’, table=’DataTable’).read()


list_of_dicts = DataReader(reader=’redis’, database=’1’).read()


list_of_dicts = DataReader(reader=’mongo’, database=’data’, table=’DataTable’).read()


list_of_dicts = DataReader(reader=’postgres’, database=’data’, table=’DataTable’).read()


list_of_dicts = DataReader(reader=’aerospike’, namespace=’data’, set=’DataTable’).read()

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 data-readers, version 0.5.3
Filename, size File type Python version Upload date Hashes
Filename, size (12.2 kB) File type Source Python version None Upload date Hashes View

Supported by

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