Skip to main content

Language Model Command Line Interface

Project description

Lang Model CLI

A command line interface for interacting with large language models.

Quick Start

Install with pip

pip install lang-model-cli

Export provider API keys

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-..."
...

Use the CLI

You can construct user messages in several ways.

Pass in a prompt directly,

lmc -p hello

Pipe input in,

cat <filename> | lmc

Or combine the two,

cat <filename> | lmc -p "Explain the following text: @pipe"

Here @pipe will be replaced with the contents of <filename>.

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

lang_model_cli-0.1.4.tar.gz (54.3 kB view details)

Uploaded Source

Built Distribution

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

lang_model_cli-0.1.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file lang_model_cli-0.1.4.tar.gz.

File metadata

  • Download URL: lang_model_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for lang_model_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 035df00377264a8d6000deede5dcd0331a0bbfd6bfd6ca6de2099896fc3e2026
MD5 042a7cbf967e653b1851e13bb53c866e
BLAKE2b-256 78c9559b76d781346f551249049520477982c2e1b4d8bea5df6a19354e810a87

See more details on using hashes here.

File details

Details for the file lang_model_cli-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for lang_model_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce5bb340058ef062e04952e8cfc6fd9461ecb511248528e845c469fc1c84ea4
MD5 2a1470334d50352c4e6b36464abbe7aa
BLAKE2b-256 187b0b020221526e6bfff6598e7ca3d982d20e76bdd970d40b9fafa253470a75

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