# prompt_llm
## Version
0.1.4
- Prompt LLMs via cli
## Installation
1. Clone the repo
2. Install
- Local:
- `pip install --editable .`
- PyPi:
- `pip install prompt_llm`
3. Install auto-completion:
- `prompt_llm --install-completion`
- `source ~/.bashrc`
## Config:
- Supported configs: `--api-key`, `--model`, `--system`, `--temperature`
### Set Config
- `prompt_llm config_add --api-key "<api_key>" --system "<system_messgae>" --temperature <temperature>`
### Save current config to a profile
- `prompt_llm config_save_to --profile="openai"`
### Load the config from a profile
- `prompt_llm config_load_from --profile="openai"`
### Remove Config key:
- `prompt_llm config-rm temperature`
### View Config:
- `prompt_llm config-ls`
- `prompt_llm config-ls --profile="openai"`
## Run cli
- `prompt_llm openai "Tell me something"`
## To contribute
### 1. Build project
`python -m build`
### 2. Upload
`python3 -m twine upload --repository pypi dist/* --verbose`
Raw data
{
"_id": null,
"home_page": null,
"name": "prompt-llm",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Reego Software <reego.software@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/91/1e/72224dbb8ba5c4f0306e8e4e2feeba41dc4a72d69e7ea0188d7290da1913/prompt_llm-0.1.4.tar.gz",
"platform": null,
"description": "# prompt_llm\n\n## Version\n0.1.4\n\n- Prompt LLMs via cli\n\n## Installation\n\n1. Clone the repo\n\n2. Install\n- Local:\n - `pip install --editable .`\n- PyPi:\n - `pip install prompt_llm`\n\n3. Install auto-completion:\n- `prompt_llm --install-completion`\n- `source ~/.bashrc`\n\n## Config:\n- Supported configs: `--api-key`, `--model`, `--system`, `--temperature`\n\n### Set Config\n- `prompt_llm config_add --api-key \"<api_key>\" --system \"<system_messgae>\" --temperature <temperature>`\n\n### Save current config to a profile\n- `prompt_llm config_save_to --profile=\"openai\"`\n\n### Load the config from a profile\n- `prompt_llm config_load_from --profile=\"openai\"`\n\n### Remove Config key:\n- `prompt_llm config-rm temperature`\n\n### View Config:\n- `prompt_llm config-ls`\n- `prompt_llm config-ls --profile=\"openai\"`\n\n## Run cli\n- `prompt_llm openai \"Tell me something\"`\n\n\n## To contribute\n\n### 1. Build project\n`python -m build`\n\n###\u00a02. Upload\n`python3 -m twine upload --repository pypi dist/* --verbose`",
"bugtrack_url": null,
"license": null,
"summary": "A CLI tool to prompt LLMs by reego.software",
"version": "0.1.4",
"project_urls": {
"Homepage": "https://github.com/reego-software/prompt_llm",
"Issues": "https://github.com/reego-software/prompt_llm/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "245905cf4386ae1ff0b78a3a25d6afd044d01d7dc2229574bd21186d99e6274a",
"md5": "d7bfcf0b48cd0a0c5c727d56d24ce15e",
"sha256": "4e8f9a570292e94756e24fe1b30ef6de0c19a7988c3359f9f09c761ed1bf7f4a"
},
"downloads": -1,
"filename": "prompt_llm-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d7bfcf0b48cd0a0c5c727d56d24ce15e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6788,
"upload_time": "2024-12-17T15:37:02",
"upload_time_iso_8601": "2024-12-17T15:37:02.408487Z",
"url": "https://files.pythonhosted.org/packages/24/59/05cf4386ae1ff0b78a3a25d6afd044d01d7dc2229574bd21186d99e6274a/prompt_llm-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "911e72224dbb8ba5c4f0306e8e4e2feeba41dc4a72d69e7ea0188d7290da1913",
"md5": "a5e1dde3ad34b54742a5be1de81003a2",
"sha256": "8014cf83c36efbdaf6f6e54f218a03772c652691e619fea252fa3c308c2c6ddd"
},
"downloads": -1,
"filename": "prompt_llm-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "a5e1dde3ad34b54742a5be1de81003a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6097,
"upload_time": "2024-12-17T15:37:03",
"upload_time_iso_8601": "2024-12-17T15:37:03.666260Z",
"url": "https://files.pythonhosted.org/packages/91/1e/72224dbb8ba5c4f0306e8e4e2feeba41dc4a72d69e7ea0188d7290da1913/prompt_llm-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-17 15:37:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "reego-software",
"github_project": "prompt_llm",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "aiohappyeyeballs",
"specs": [
[
"==",
"2.4.4"
]
]
},
{
"name": "aiohttp",
"specs": [
[
"==",
"3.11.10"
]
]
},
{
"name": "aiosignal",
"specs": [
[
"==",
"1.3.1"
]
]
},
{
"name": "annotated-types",
"specs": [
[
"==",
"0.7.0"
]
]
},
{
"name": "anyio",
"specs": [
[
"==",
"4.7.0"
]
]
},
{
"name": "attrs",
"specs": [
[
"==",
"24.2.0"
]
]
},
{
"name": "build",
"specs": [
[
"==",
"1.2.2.post1"
]
]
},
{
"name": "cachetools",
"specs": [
[
"==",
"5.5.0"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2024.8.30"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.4.0"
]
]
},
{
"name": "click",
"specs": [
[
"==",
"8.1.7"
]
]
},
{
"name": "cohere",
"specs": [
[
"==",
"5.13.3"
]
]
},
{
"name": "dataclasses-json",
"specs": [
[
"==",
"0.6.7"
]
]
},
{
"name": "distro",
"specs": [
[
"==",
"1.9.0"
]
]
},
{
"name": "docstring_parser",
"specs": [
[
"==",
"0.16"
]
]
},
{
"name": "docutils",
"specs": [
[
"==",
"0.21.2"
]
]
},
{
"name": "fastavro",
"specs": [
[
"==",
"1.9.7"
]
]
},
{
"name": "filelock",
"specs": [
[
"==",
"3.16.1"
]
]
},
{
"name": "fireworks-ai",
"specs": [
[
"==",
"0.15.10"
]
]
},
{
"name": "frozenlist",
"specs": [
[
"==",
"1.5.0"
]
]
},
{
"name": "fsspec",
"specs": [
[
"==",
"2024.10.0"
]
]
},
{
"name": "google-api-core",
"specs": [
[
"==",
"2.23.0"
]
]
},
{
"name": "google-auth",
"specs": [
[
"==",
"2.36.0"
]
]
},
{
"name": "google-cloud-aiplatform",
"specs": [
[
"==",
"1.74.0"
]
]
},
{
"name": "google-cloud-bigquery",
"specs": [
[
"==",
"3.27.0"
]
]
},
{
"name": "google-cloud-core",
"specs": [
[
"==",
"2.4.1"
]
]
},
{
"name": "google-cloud-resource-manager",
"specs": [
[
"==",
"1.13.1"
]
]
},
{
"name": "google-cloud-storage",
"specs": [
[
"==",
"2.19.0"
]
]
},
{
"name": "google-crc32c",
"specs": [
[
"==",
"1.6.0"
]
]
},
{
"name": "google-resumable-media",
"specs": [
[
"==",
"2.7.2"
]
]
},
{
"name": "googleapis-common-protos",
"specs": [
[
"==",
"1.66.0"
]
]
},
{
"name": "groq",
"specs": [
[
"==",
"0.13.0"
]
]
},
{
"name": "grpc-google-iam-v1",
"specs": [
[
"==",
"0.13.1"
]
]
},
{
"name": "grpcio",
"specs": [
[
"==",
"1.68.1"
]
]
},
{
"name": "grpcio-status",
"specs": [
[
"==",
"1.68.1"
]
]
},
{
"name": "h11",
"specs": [
[
"==",
"0.14.0"
]
]
},
{
"name": "httpcore",
"specs": [
[
"==",
"1.0.7"
]
]
},
{
"name": "httpx",
"specs": [
[
"==",
"0.27.2"
]
]
},
{
"name": "httpx-sse",
"specs": [
[
"==",
"0.4.0"
]
]
},
{
"name": "httpx-ws",
"specs": [
[
"==",
"0.6.2"
]
]
},
{
"name": "huggingface-hub",
"specs": [
[
"==",
"0.26.5"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.10"
]
]
},
{
"name": "jaraco.classes",
"specs": [
[
"==",
"3.4.0"
]
]
},
{
"name": "jaraco.context",
"specs": [
[
"==",
"6.0.1"
]
]
},
{
"name": "jaraco.functools",
"specs": [
[
"==",
"4.1.0"
]
]
},
{
"name": "jiter",
"specs": [
[
"==",
"0.8.0"
]
]
},
{
"name": "jsonpatch",
"specs": [
[
"==",
"1.33"
]
]
},
{
"name": "jsonpointer",
"specs": [
[
"==",
"3.0.0"
]
]
},
{
"name": "keyring",
"specs": [
[
"==",
"25.5.0"
]
]
},
{
"name": "langchain",
"specs": [
[
"==",
"0.3.10"
]
]
},
{
"name": "langchain-cohere",
"specs": [
[
"==",
"0.3.3"
]
]
},
{
"name": "langchain-community",
"specs": [
[
"==",
"0.3.10"
]
]
},
{
"name": "langchain-core",
"specs": [
[
"==",
"0.3.22"
]
]
},
{
"name": "langchain-experimental",
"specs": [
[
"==",
"0.3.3"
]
]
},
{
"name": "langchain-fireworks",
"specs": [
[
"==",
"0.2.5"
]
]
},
{
"name": "langchain-google-vertexai",
"specs": [
[
"==",
"2.0.8"
]
]
},
{
"name": "langchain-groq",
"specs": [
[
"==",
"0.2.1"
]
]
},
{
"name": "langchain-mistralai",
"specs": [
[
"==",
"0.2.3"
]
]
},
{
"name": "langchain-nvidia-ai-endpoints",
"specs": [
[
"==",
"0.3.5"
]
]
},
{
"name": "langchain-openai",
"specs": [
[
"==",
"0.2.11"
]
]
},
{
"name": "langchain-text-splitters",
"specs": [
[
"==",
"0.3.2"
]
]
},
{
"name": "langsmith",
"specs": [
[
"==",
"0.1.147"
]
]
},
{
"name": "markdown-it-py",
"specs": [
[
"==",
"3.0.0"
]
]
},
{
"name": "marshmallow",
"specs": [
[
"==",
"3.23.1"
]
]
},
{
"name": "mdurl",
"specs": [
[
"==",
"0.1.2"
]
]
},
{
"name": "more-itertools",
"specs": [
[
"==",
"10.5.0"
]
]
},
{
"name": "multidict",
"specs": [
[
"==",
"6.1.0"
]
]
},
{
"name": "mypy-extensions",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "nh3",
"specs": [
[
"==",
"0.2.19"
]
]
},
{
"name": "numpy",
"specs": [
[
"==",
"1.26.4"
]
]
},
{
"name": "openai",
"specs": [
[
"==",
"1.57.0"
]
]
},
{
"name": "orjson",
"specs": [
[
"==",
"3.10.12"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"24.2"
]
]
},
{
"name": "pandas",
"specs": [
[
"==",
"2.2.3"
]
]
},
{
"name": "parameterized",
"specs": [
[
"==",
"0.9.0"
]
]
},
{
"name": "pillow",
"specs": [
[
"==",
"10.4.0"
]
]
},
{
"name": "pkginfo",
"specs": [
[
"==",
"1.12.0"
]
]
},
{
"name": "prompt_llm",
"specs": []
},
{
"name": "propcache",
"specs": [
[
"==",
"0.2.1"
]
]
},
{
"name": "proto-plus",
"specs": [
[
"==",
"1.25.0"
]
]
},
{
"name": "protobuf",
"specs": [
[
"==",
"5.29.1"
]
]
},
{
"name": "pyasn1",
"specs": [
[
"==",
"0.6.1"
]
]
},
{
"name": "pyasn1_modules",
"specs": [
[
"==",
"0.4.1"
]
]
},
{
"name": "pydantic",
"specs": [
[
"==",
"2.9.2"
]
]
},
{
"name": "pydantic-settings",
"specs": [
[
"==",
"2.6.1"
]
]
},
{
"name": "pydantic_core",
"specs": [
[
"==",
"2.23.4"
]
]
},
{
"name": "Pygments",
"specs": [
[
"==",
"2.18.0"
]
]
},
{
"name": "pyproject_hooks",
"specs": [
[
"==",
"1.2.0"
]
]
},
{
"name": "python-dateutil",
"specs": [
[
"==",
"2.9.0.post0"
]
]
},
{
"name": "python-dotenv",
"specs": [
[
"==",
"1.0.1"
]
]
},
{
"name": "pytz",
"specs": [
[
"==",
"2024.2"
]
]
},
{
"name": "PyYAML",
"specs": [
[
"==",
"6.0.2"
]
]
},
{
"name": "readme_renderer",
"specs": [
[
"==",
"44.0"
]
]
},
{
"name": "regex",
"specs": [
[
"==",
"2024.11.6"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
},
{
"name": "requests-toolbelt",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "rfc3986",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "rich",
"specs": [
[
"==",
"13.9.4"
]
]
},
{
"name": "rsa",
"specs": [
[
"==",
"4.9"
]
]
},
{
"name": "setuptools",
"specs": [
[
"==",
"75.1.0"
]
]
},
{
"name": "shapely",
"specs": [
[
"==",
"2.0.6"
]
]
},
{
"name": "shellingham",
"specs": [
[
"==",
"1.5.4"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.17.0"
]
]
},
{
"name": "sniffio",
"specs": [
[
"==",
"1.3.1"
]
]
},
{
"name": "SQLAlchemy",
"specs": [
[
"==",
"2.0.36"
]
]
},
{
"name": "tabulate",
"specs": [
[
"==",
"0.9.0"
]
]
},
{
"name": "tenacity",
"specs": [
[
"==",
"9.0.0"
]
]
},
{
"name": "tiktoken",
"specs": [
[
"==",
"0.8.0"
]
]
},
{
"name": "tokenizers",
"specs": [
[
"==",
"0.21.0"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.67.1"
]
]
},
{
"name": "twine",
"specs": [
[
"==",
"6.0.1"
]
]
},
{
"name": "typer",
"specs": [
[
"==",
"0.15.1"
]
]
},
{
"name": "types-requests",
"specs": [
[
"==",
"2.32.0.20241016"
]
]
},
{
"name": "typing-inspect",
"specs": [
[
"==",
"0.9.0"
]
]
},
{
"name": "typing_extensions",
"specs": [
[
"==",
"4.12.2"
]
]
},
{
"name": "tzdata",
"specs": [
[
"==",
"2024.2"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.2.3"
]
]
},
{
"name": "wheel",
"specs": [
[
"==",
"0.44.0"
]
]
},
{
"name": "wsproto",
"specs": [
[
"==",
"1.2.0"
]
]
},
{
"name": "yarl",
"specs": [
[
"==",
"1.18.3"
]
]
}
],
"lcname": "prompt-llm"
}