Skip to main content

README for loadcsv

loadcsv is a programa and a library to load CSV files to databases and for converting CSV files to SQL inserrt or update statements.

The utility gets the names of the columns from the first row of the CSV file.

I wrote this utility because I was tired of doing always small scripts for doing this kind os loads.

By now the utility suport MySQL, PostgresSQL and sqlite, but can be used with other SQL databases using the utility to generate the SQL statements and sending them to the database:

Usage: loadcsv [options] filename.csv
If no database provided, display SQL to stdout

Options::
  -h, --help            show this help message and exit
  -D DRIVER, --driver=DRIVER
                        database driver mysql, pgsql, sqlite
  -H HOSTNAME, --hostname=HOSTNAME
                        database server hostname,defaults to localhost
  -d DBNAME, --dbname=DBNAME
                        database name (filename on sqlite)
  -u USER, --user=USER  database username
  -p PASSWORD, --password=PASSWORD
                        database password
  -P PORT, --port=PORT  database port
  -t TABLE, --table=TABLE
                        database table to load
  --test                run text, do no commit to the database
  --delimiter=DELIMITER
                        CSV file field delimiter, by default semi-colon

he project code and bugtracker is hosted on Bitbucket.

Install

Using pip:

pip install loadcsv

Os download and use setup

python setup.py install

Metadata

Release files for loadcsv 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loadcsv 0.5
File Size Uploaded Provenance
loadcsv-0.5.tar.gz 4.8 kB Without provenance Details

Release files / loadcsv-0.5.tar.gz

Download URL loadcsv-0.5.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b944a6fefbefee53e2d48b41ab5dc0f6b34fe32629cf13a58d23413208aa87ba
BLAKE2b-256 checksum
How to use checksums
ad2b52067eb252ae1ffefb41ceb0058bb92a3fdeb782ad7af7335432406c92a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for loadcsv 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file No provenance

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page