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 Distribution

csv-to-sqlite-2.1.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

csv_to_sqlite-2.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file csv-to-sqlite-2.1.1.tar.gz.

File metadata

  • Download URL: csv-to-sqlite-2.1.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for csv-to-sqlite-2.1.1.tar.gz
Algorithm Hash digest
SHA256 bf13c75503cc335f1b7fe21dcaaeb11eb0438b8bb69bb255b76312002b2b5168
MD5 5981344ba0e1612b9f0f567e85c0f793
BLAKE2b-256 e1f492faa4ec744917877f20a87cc1a52b6aa56c0e197abddc77fb23d630382b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for csv_to_sqlite-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af01023e92af5c7ce65472ce8e5951b00be5b82274dfeb6a36cc998d55161476
MD5 e5d0256c2c12e519ceb34404857da4ce
BLAKE2b-256 139ce3f6b6d161f212592bbf5d3ca2474ddbf4de89dc8f805e6aa44ef7b1ce9c

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