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
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CSVtoSQLite-0.2.1.tar.gz
(2.5 kB
view hashes)