tool for creating catalog from .csv tables in duckdb/sqlite storage
Project description
Catalog
Catalog made for wrangling CSV files and shoving them into a database. Makes the tedious task of managing CSV data a breeze. No more manual scripts, no more headaches
What's this? 🤔
Tired of messing around with CSVs and databases separately? Me too. That's why I built Catalog. It's a simple, no-nonsense tool that lets you:
- Import CSV files into a single SQLite database
- Manage your data with a set of easy-to-use commands
- Export your data back to CSV whenever you need it
Features 🔥
- Interactive CLI: A user-friendly interface that feels like you're chatting with a buddy
- CSV Parsing: Automatically handles CSV files, with options to customize the separator and headers
- Database Storage: Uses SQLite to store your data, so it's all in one place
- Data Management: A rich set of commands to manage your tables
- Data Export: Easily export your tables back to CSV files, with the ability to select specific columns and a limited number of rows
Getting Started 🚀
- Install
pip install csvcatalog
- Run the cli
csvcatalog
2.1 You can also specify a custom database file if you want:
csvcatalog --db /path/to/your/database.db
Commands 🕹️
Here's a quick rundown of the commands you'll be using
Commands
Standart list of commands
help: Shows you all the available commandsclear: Clears the screenexit: Quits the applicationsystem <command>: Lets you run any shell command without leaving the CLIextract <file.csv>: Setup and process extraction data from csv table to database
The storage Module
storage.help: Shows you the commands of thestoragemodulestorage.db <path_to_db>: Switches to a different database filestorage.reload: Reloads the database connectionstorage.tables: Lists all the tables in your databasestorage.del.table <table_name>: Deletes a tablestorage.purge: Wipes the entire database cleanstorage.sql <stmt>: Executes a pure SQL statement on the databasestorage.export <table_name>: Exports a table to a CSV filestorage.search <value> <optional: table_name>: Search a value in table(s)
Contributing are welcome 🤝
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 csvcatalog-1.4.tar.gz.
File metadata
- Download URL: csvcatalog-1.4.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bdd773124bc3e36ec06191e6915969faeb597e8d9894e104a8a85a6828164ca
|
|
| MD5 |
b35eacdaac8f86caa681da697f769f3b
|
|
| BLAKE2b-256 |
00ab2ccccb2d850bcb88a480e83071f7f17d88c917917833f05f850be2658e75
|
File details
Details for the file csvcatalog-1.4-py3-none-any.whl.
File metadata
- Download URL: csvcatalog-1.4-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41c3b2944390dbc041c2a72e067c13699976694ad3465143c47872f5355d519e
|
|
| MD5 |
5036c5f35dd9be06cee9de9a1a0e28b5
|
|
| BLAKE2b-256 |
278ace3d6addc0e08b2b606fa93f4c821967c6aafe338f5433cf08b62248d918
|