Skip to main content

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 🚀

  1. Install
pip install csvcatalog
  1. 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 commands
  • clear: Clears the screen
  • exit: Quits the application
  • system <command>: Lets you run any shell command without leaving the CLI
  • extract <file.csv>: Setup and process extraction data from csv table to database

The storage Module

  • storage.help: Shows you the commands of the storage module
  • storage.db <path_to_db>: Switches to a different database file
  • storage.reload: Reloads the database connection
  • storage.tables: Lists all the tables in your database
  • storage.del.table <table_name>: Deletes a table
  • storage.purge: Wipes the entire database clean
  • storage.sql <stmt>: Executes a pure SQL statement on the database
  • storage.export <table_name>: Exports a table to a CSV file
  • storage.search <value> <optional: table_name>: Search a value in table(s)

Contributing are welcome 🤝

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

csvcatalog-1.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csvcatalog-1.4-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for csvcatalog-1.4.tar.gz
Algorithm Hash digest
SHA256 4bdd773124bc3e36ec06191e6915969faeb597e8d9894e104a8a85a6828164ca
MD5 b35eacdaac8f86caa681da697f769f3b
BLAKE2b-256 00ab2ccccb2d850bcb88a480e83071f7f17d88c917917833f05f850be2658e75

See more details on using hashes here.

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

Hashes for csvcatalog-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 41c3b2944390dbc041c2a72e067c13699976694ad3465143c47872f5355d519e
MD5 5036c5f35dd9be06cee9de9a1a0e28b5
BLAKE2b-256 278ace3d6addc0e08b2b606fa93f4c821967c6aafe338f5433cf08b62248d918

See more details on using hashes here.

Supported by

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