This is the Python package py-llm-factory.
Project description
Welcome
llm-factory is a python package that can select and install LLM provider dynamically.
Usage
import py_llm_factory
# By default, it will use the LLM provider from the environment variables.
client = py_llm_factory.get_openai_compatible_client()
# You can also specify the LLM provider and API key.
client = py_llm_factory.get_openai_compatible_client(provider='openai', api_key='your_api_key')
# Let's say if you want to use the Groq provider, you can do this:
client = py_llm_factory.get_openai_compatible_client(provider='groq', api_key='your_api_key')
# Or AWS Bedrock provider, you can do this:
client = py_llm_factory.get_openai_compatible_client(provider='openai', api_key='your_api_key', base_url='https://bedrock-runtime.us-east-1.amazonaws.com/openai/v1')
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 py_llm_factory-0.2.0a1.tar.gz.
File metadata
- Download URL: py_llm_factory-0.2.0a1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcffcf29324650f7eefb82422994fead65bafd9a4af59c1e1e735f471e23afce
|
|
| MD5 |
c51403963094d94b6dbe02b408813925
|
|
| BLAKE2b-256 |
9b7b76fd0051cd1a90b04d801627cd73e2aa3213e5f1f351d628f9e353bdc53f
|
Provenance
The following attestation bundles were made for py_llm_factory-0.2.0a1.tar.gz:
Publisher:
deploy-to-pypi.yml on hktonylee/py-llm-factory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_llm_factory-0.2.0a1.tar.gz -
Subject digest:
dcffcf29324650f7eefb82422994fead65bafd9a4af59c1e1e735f471e23afce - Sigstore transparency entry: 819962631
- Sigstore integration time:
-
Permalink:
hktonylee/py-llm-factory@0d1a9ee67267ef777bd0d9783509df7bc5547e31 -
Branch / Tag:
refs/tags/v0.2.0-alpha.1 - Owner: https://github.com/hktonylee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-to-pypi.yml@0d1a9ee67267ef777bd0d9783509df7bc5547e31 -
Trigger Event:
release
-
Statement type:
File details
Details for the file py_llm_factory-0.2.0a1-py3-none-any.whl.
File metadata
- Download URL: py_llm_factory-0.2.0a1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1ab7b5c52a1a13b86eea54a62488866123d330abc07cab51ba52ea69fa4de30
|
|
| MD5 |
ddcfa89df825144278f7de1dfeb9a989
|
|
| BLAKE2b-256 |
b7ce32554b1a2ba231966e4b8c7211fcae5e147ea0419100f9c963c1b68f1ef1
|
Provenance
The following attestation bundles were made for py_llm_factory-0.2.0a1-py3-none-any.whl:
Publisher:
deploy-to-pypi.yml on hktonylee/py-llm-factory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_llm_factory-0.2.0a1-py3-none-any.whl -
Subject digest:
a1ab7b5c52a1a13b86eea54a62488866123d330abc07cab51ba52ea69fa4de30 - Sigstore transparency entry: 819962663
- Sigstore integration time:
-
Permalink:
hktonylee/py-llm-factory@0d1a9ee67267ef777bd0d9783509df7bc5547e31 -
Branch / Tag:
refs/tags/v0.2.0-alpha.1 - Owner: https://github.com/hktonylee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-to-pypi.yml@0d1a9ee67267ef777bd0d9783509df7bc5547e31 -
Trigger Event:
release
-
Statement type: