Skip to main content

LLM-powered CLI tool for daily tasks

Project description

Hermano (LLM-powered Assistant for Operations)

A powerful CLI tool that leverages large language models to automate daily tasks.

Features

  • EPUB token counter: Calculate how many tokens an EPUB file would use when sent to an LLM
  • More features coming soon!

Installation

Using pip

pip install hermano

Using Homebrew

brew tap manohar/hermano
brew install hermano

Configuration

Hermano requires API keys for various LLM services. You can set these as environment variables:

export OPENAI_API_KEY="your-api-key"
export DEEPSEEK_API_KEY="your-api-key"
export GEMINI_API_KEY="your-api-key"

Alternatively, you can create a .env file in your home directory:

OPENAI_API_KEY=your-api-key
DEEPSEEK_API_KEY=your-api-key
GEMINI_API_KEY=your-api-key

Usage

EPUB Token Counter

hermano epub tokens path/to/your/book.epub

Options:

  • --model: Specify the model to calculate tokens for (default: "gpt-4")
  • --format: Output format (text, json) (default: "text")

Development

Setup with uv (recommended)

uv is a fast Python package installer and resolver that we recommend for development:

# Install uv
pip install uv

# Clone the repository
git clone https://github.com/manohar/hermano.git
cd hermano

# Create and activate a virtual environment 
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install the package in development mode
uv pip install -e .

# Install development dependencies
uv pip install -r requirements-dev.txt

Traditional Setup

git clone https://github.com/manohar/hermano.git
cd hermano
pip install -e ".[dev]"

Testing

pytest

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

hermano-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

hermano-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hermano-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for hermano-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5b1fb96757a1115680396d380e11024ee90702b3eebaa72ccbe374463441d762
MD5 8bce4e41b9252ef377d5c3655e838c1a
BLAKE2b-256 ff455c7e9d37c48d3ee37627048c301ac35d85847f8266660be49e7cd258086a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hermano-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for hermano-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e223d5b5081a02b9c87b19f1d40e4d851a8b03c72f185d1d2c6a04b5a8223bf
MD5 4110bf791da3b87da7f73ac57bac98d1
BLAKE2b-256 e45f3bca373c21a8dff6211bff0da3de08e1e232b397d1ccb3b8b8c869ddb914

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