A library for importing CSV files into SQLite databases with optional GUI support
Project description
CSV to SQLite CSV to SQLite is a Python library for importing CSV files into SQLite databases with optional GUI support. It allows users to quickly convert CSV files into SQLite database tables with a simple graphical interface.
Features Import multiple CSV files into a single SQLite database. Automatically create SQLite tables based on CSV headers. Clean and validate column names for compatibility. Optional GUI for easy file selection and output configuration. Installation You can install csv-to-sqlite using pip:
pip install csv-to-sqlite Alternatively, you can clone the repository and install it manually:
git clone https://github.com/mmpdfcollection/csv-to-sqlite.git cd csv-to-sqlite python setup.py install Usage Command Line Interface (CLI) Run the following command to launch the GUI for the library:
csv-to-sqlite-gui Example Usage in Python If you want to use this library programmatically, here's an example:
from csv_to_sqlite import csv_to_db
Example of converting a single CSV file to an SQLite database
csv_to_db.import_csv_files(["example.csv"], "output.db") Requirements Python 3.6 or newer tkinter (included with most Python distributions) How It Works Select CSV Files: You can select multiple CSV files that you want to convert. Choose Output Folder: Specify where the SQLite database file should be saved. Click Import: The GUI or library handles creating tables and inserting data automatically. Contributing Contributions are welcome! If you'd like to contribute, please follow these steps:
Fork the repository. Create a new branch (git checkout -b feature-branch). Make your changes and commit them (git commit -m "Add new feature"). Push to your branch (git push origin feature-branch). Open a pull request. License This project is licensed under the MIT License. See the LICENSE file for details.
Author MMPDF Collection mmpdfcollection@gmail.com Acknowledgments Special thanks to all contributors and Python enthusiasts who made this project possible.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ulg_csvtosqlite-1.0.0.tar.gz.
File metadata
- Download URL: ulg_csvtosqlite-1.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7886a8363bbfc265fcfce9ecee17c6c5980571dffa3aa9dc721f98ff99bef667
|
|
| MD5 |
c19e0ab2024a1b4e686009e5c3aee3b6
|
|
| BLAKE2b-256 |
b640677dddbc8960c7725d22c2575c70e11f2a60d4487c2a335bde892ac235ef
|
File details
Details for the file ulg_csvtosqlite-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ulg_csvtosqlite-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c20a2b4b93dcd76cf6f737d29ad154a7b37d66e24d06e975a33aa93698713e62
|
|
| MD5 |
89a493cb626e01a531d550579c489e82
|
|
| BLAKE2b-256 |
8b2370d044d30b0a0d9c0852da72a1132e0c35b738cd0d8c580eef5fb3b90476
|