Skip to main content

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.

Files for CSVtoSQLite, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size CSVtoSQLite-0.2.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page