Skip to main content

A CLI tool for reading and displaying Feather data format files

Project description

Feather DataFrame CLI

A command-line interface tool for reading and displaying Feather data format files. This tool provides easy access to view and analyze data stored in the Feather format, which is a fast and efficient file format for storing DataFrames.

Features

  • Display file metadata (number of rows, columns, etc.)
  • View schema information
  • Count total records
  • View data with customizable output formats (table, markdown, csv)
  • Support for viewing both head and tail of the data

Installation

You can install the package using pip:

pip install feather-df-cli

Usage

After installation, you can use the feather_cli command to interact with Feather files:

Display Metadata

feather_cli <input_file>

View Schema

feather_cli <input_file> --schema

Count Records

feather_cli <input_file> --count

View First N Rows

feather_cli <input_file> --head N --format [table|markdown|csv]

View Last N Rows

feather_cli <input_file> --tail N --format [table|markdown|csv]

Development

Prerequisites

  • Python 3.6 or higher
  • pip

Setting up Development Environment

  1. Clone the repository:
git clone https://github.com/villadora/feather-df-cli.git
cd feather-df-cli
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows, use `.venv\Scripts\activate`
  1. Install development dependencies:
pip install -r requirements.txt

Building from Source

To build the package:

python setup.py build

To install in development mode:

pip install -e .

License

This project is licensed under the MIT License.

Running Tests

The project uses pytest for testing. To run the tests:

  1. Make sure you have installed development dependencies:
pip install -r requirements.txt
  1. Run the tests:
pytest

Test options are configured in pytest.ini:

  • Tests are located in the tests directory
  • Test files must match test_*.py
  • Test classes must match Test*
  • Test functions must match test_*
  • Verbose output and short traceback are enabled by default

To run specific tests:

pytest tests/test_cli.py  # Run tests in a specific file
pytest tests/test_cli.py::test_view_schema  # Run a specific test function

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

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

feather_df_cli-0.1.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

feather_df_cli-0.1.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file feather_df_cli-0.1.2.tar.gz.

File metadata

  • Download URL: feather_df_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for feather_df_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b90079cb48d4f1661be7a11a5b2c5deeeccc59266b21ad89f1af3c50b81db9bf
MD5 2191fd09586a39f2b0c8815e7bce7b51
BLAKE2b-256 1e4b15aa857bfa1fe7246066b6fcf58d5fd58af1627d433fd686d4ce1dc1e973

See more details on using hashes here.

File details

Details for the file feather_df_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: feather_df_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for feather_df_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1608bf2c7577cface946166d67475ff233eb74fe58b25dc81623e089a5bb67f0
MD5 6805f8f4f2f8a7cf716299c8d5cfc350
BLAKE2b-256 19b7bc1359c55b05fe430fe198954ecac985259e46ddf01c61ba11d5ec921e07

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