Skip to main content

Export data from a SQLite database to CSV files.

Project description

sqlite2csv

PyPI version build License

Export data from a SQLite database to CSV files.

Installation

You can install this library using PyPI:

pip install sqlite2csv

Usage

Retrieve all tables

from sqlite2csv import SqliteToCSV

database = "sqlite:///db/test.db"
dest_dir = ".output"

app = SqliteToCSV(database=database, dest_dir=dest_dir)
app.export()

Retrieve an arbitrary tables

from sqlite2csv import SqliteToCSV

database = "sqlite:///db/test.db"
dest_dir = ".output"
table_names = ["users", "projects"]

app = SqliteToCSV(database=database, dest_dir=dest_dir, table_names=table_names)
app.export()

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

sqlite2csv-0.2.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

sqlite2csv-0.2.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file sqlite2csv-0.2.0.tar.gz.

File metadata

  • Download URL: sqlite2csv-0.2.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for sqlite2csv-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cf7faf1e6af54541746a70713daa4a4627fb81bed11484d9fab267e3db6e1f69
MD5 601c1080379f7220266044ab82772d33
BLAKE2b-256 ac651f575ea0a15f1fea86bdc8f64bb80e1a5bd6f255394a48522c8c5e1fe3eb

See more details on using hashes here.

File details

Details for the file sqlite2csv-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sqlite2csv-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for sqlite2csv-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10a1a76a396bf0cee4e0857c73b9d1f29f227a76eadb992a478abba412bc0791
MD5 63fa2663ad5eb0cd0a7896fa528da4f4
BLAKE2b-256 f6df612ec2f6562bf842612575e392d7855aec9f208619e5cf1a2c627cf7e7b6

See more details on using hashes here.

Supported by

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