csv-to-sqlite
This is a simple script that takes CSV files as input and copies their contents into a SQLite database. . (Column names are taken from the headers (first row) in the csv file.) Intended for Python 3. (I know it did run on Py2 as some people tried, but I haven't tested it.)
Links
- Source on GitHub
- PyPI page
- Introductory blog post with basic intro + a how-to
- Other related blog posts
Overview
Installs via
pip install csv-to-sqlite
To find out more, run
csv-to-sqlite --help
If you've installed the package as a dependency for your own script, you can use it like this:
import csv_to_sqlite
# all the usual options are supported
options = csv_to_sqlite.CsvOptions(typing_style="full", encoding="windows-1250")
input_files = ["abilities.csv", "moves.csv"] # pass in a list of CSV files
csv_to_sqlite.write_csv(input_files, "output.sqlite", options)
Metadata
Release files for csv-to-sqlite 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csv_to_sqlite-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / csv_to_sqlite-2.1.0-py3-none-any.whl
| Download URL | csv_to_sqlite-2.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d67d2f3d41ee9ae1841e40ad6a853855083626f9ae2b10fda50c5927f7803bae
|
|
BLAKE2b-256 checksum How to use checksums |
0d2aad4eead0aa5d2e650fd72b5dd14bed7d30d086b8b3f3709781ac8259ed74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|