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
- Clone the repository:
git clone https://github.com/villadora/feather-df-cli.git
cd feather-df-cli
- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
- 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:
- Make sure you have installed development dependencies:
pip install -r requirements.txt
- Run the tests:
pytest
Test options are configured in pytest.ini:
- Tests are located in the
testsdirectory - 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.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a0072879554a4305ba242d2be984318d433f60f10779d54797277fb0c4142e
|
|
| MD5 |
26143b92913ca197c30c7c3593f50dff
|
|
| BLAKE2b-256 |
89243dc28c4760c7ea27b42ca04d349f7946b09260d804cfddfadd889d6e9b94
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a9efc35f2efb46846bbf38c30b3a7ee33a255023150418ed389128d2e7bb9b
|
|
| MD5 |
4643fb039910bfefaa53bc223dc80717
|
|
| BLAKE2b-256 |
d5c953647a372c4025d2ec1c0394c59610e5c3e5c2ec6435575d6c0e3d8018b3
|