A script that processes the input CSV files and copies them into a SQLite database.
Project description
csv-to-sqlite
This is a simple, datatype-guessing 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)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file csv_to_sqlite-2.1.3-py3-none-any.whl
.
File metadata
- Download URL: csv_to_sqlite-2.1.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3f9fcd857f58beefce711beba8dad51ef151ff82876858ee9da9cbd4463613f |
|
MD5 | b55583a502c228f151e91c86ef7b481b |
|
BLAKE2b-256 | a87f2f1f9740df3d37ce358fbdfa50db068ed6b087d28a4f2a426f119c042487 |