Skip to main content

A script that processes the input CSV files and copies them into a SQLite database.

Project description

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

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


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

csv_to_sqlite-2.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file csv_to_sqlite-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: csv_to_sqlite-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for csv_to_sqlite-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d67d2f3d41ee9ae1841e40ad6a853855083626f9ae2b10fda50c5927f7803bae
MD5 bb98a4775702ce82471fa4fd0ccd39d8
BLAKE2b-256 0d2aad4eead0aa5d2e650fd72b5dd14bed7d30d086b8b3f3709781ac8259ed74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page