Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Loads a CSV file a creates a preloaded SQLite database

Project description

===========
CSVtoSQLiteDB
===========

This class accepts a csv file and puts the contents into an SQLite database table.
This pre--population is important in cases where you have to convert a csv file into an SQLite database and also
when there is the need to have a prepopulated SQLite DB to use as a resource in mobile development.


how to install
-------
$ pip install CSVtoSQLiteDB



usage
-----
#!/usr/bin/env python
from CSVtoSQLite import converter
loader = converter.csvSQLiteConvert('example-sqlite-database-name.db')
loader.loadCSVtoTable('path-to-csv', 'tableName')
loader.loadCSVtoTable('path-to-another-csv', 'tableName2')
loader.close()


license
-------
MIT

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
CSVtoSQLite-0.2.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Mar 14, 2016

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page