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.3.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.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: feather_df_cli-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 74a0072879554a4305ba242d2be984318d433f60f10779d54797277fb0c4142e
MD5 26143b92913ca197c30c7c3593f50dff
BLAKE2b-256 89243dc28c4760c7ea27b42ca04d349f7946b09260d804cfddfadd889d6e9b94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: feather_df_cli-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 34a9efc35f2efb46846bbf38c30b3a7ee33a255023150418ed389128d2e7bb9b
MD5 4643fb039910bfefaa53bc223dc80717
BLAKE2b-256 d5c953647a372c4025d2ec1c0394c59610e5c3e5c2ec6435575d6c0e3d8018b3

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