Skip to main content

A reusable CLI tool for dataset operations — filter, transform, validate, and migrate data with simple commands.

Project description

Dataset CLI Tool

A powerful command-line tool for dataset operations — filter, transform, validate, and migrate data across CSV, JSON, Excel, and databases with simple commands.

Features

  • Filter — Filter dataset rows based on conditions (equals, contains, greater than, etc.)
  • Transform — Apply transformations to columns (rename, map values, type conversion)
  • Validate — Validate data against rules and schemas
  • Migrate — Migrate data between formats (CSV ↔ JSON ↔ Excel ↔ Database)
  • Container — Merge, split, and combine datasets

Installation

pip install dataset-cli-tool

Usage

cli-tool --help

Filter Command

Filter rows based on conditions:

cli-tool filter input.csv --column age --gt 18 --output filtered.csv

Transform Command

Transform columns:

cli-tool transform input.csv --rename "name:full_name" --output transformed.csv

Validate Command

Validate data:

cli-tool validate input.csv --rules rules.json

Migrate Command

Convert between formats:

cli-tool migrate input.csv --to json --output data.json

Container Command

Merge multiple datasets:

cli-tool container merge file1.csv file2.csv --output merged.csv

Supported Formats

  • CSV
  • JSON
  • Excel (.xlsx, .xls)
  • Database (SQLite, PostgreSQL, MySQL)

Requirements

  • Python 3.10+
  • pandas
  • openpyxl
  • typer

License

MIT

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

dataset_cli_tool-0.1.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

dataset_cli_tool-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file dataset_cli_tool-0.1.1.tar.gz.

File metadata

  • Download URL: dataset_cli_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for dataset_cli_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 73d347899d2b69c938067087ed4481f611d80228867b587467ecc4baaa467db9
MD5 4d73db64d3ccbd0cb1d54577ace1dd5e
BLAKE2b-256 75105a29c2623850759f024796e002603ad0c647a76b60cbda4921fa0f4b0bd1

See more details on using hashes here.

File details

Details for the file dataset_cli_tool-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dataset_cli_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7beafe9f2bb8ab5ed257977b947c128c785d26f62f13931de566d203f6618f1c
MD5 8d263b58a46195d1d9c071377739ed1d
BLAKE2b-256 20127f49dd04b17ae35a0c385aefc548da06c4387c326779a5aaaa8c2f8ea2e1

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