New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

feather-df-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feather-df-cli

A CLI tool for reading and displaying Feather data format files

0.1.3
PyPI
Maintainers
1

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 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.

  • Fork the repository
  • Create your feature branch
  • Commit your changes
  • Push to the branch
  • Create a new Pull Request

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts