Simple LM api wrappers for production
Project description
jaZYK
Simple LM api wrappers for production
Supports:
- OpenAI
- Anthropic
- Gemini
- DeepSeek
- Together
Key Features:
- Structured Output logic (with retries)
- Caching (ephemeral in-memory and/or on-disk sqlite)
- Supports images for Anthropic and OpenAI
Add a PR if you want to add another provider!
Installation
uv add zyk
or
pip install zyk
Usage
from zyk import LM
lm = LM(model_name="gpt-4o-mini", temperature=0.0)
class HelpfulResponse(BaseModel):
greeting: str
name: str
print(lm.respond_sync(system_message="You are a helpful assistant", user_message="Hello, how are you?", response_model=HelpfulResponse))
Name
ZYK is short for "Z you know"
python -m build
twine check dist/*
twine upload dist/*
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
zyk-0.2.47.tar.gz
(22.2 kB
view details)
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
zyk-0.2.47-py3-none-any.whl
(25.5 kB
view details)
File details
Details for the file zyk-0.2.47.tar.gz.
File metadata
- Download URL: zyk-0.2.47.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edbc3ce1f4caf51765a8d470c880c26c8795cf6784bf50271a9886b1de3aafd2
|
|
| MD5 |
c46719c7523e646e5a1f8b19125cd925
|
|
| BLAKE2b-256 |
7b9269970a95877d509fa43882ae876304e5b903b30de81f942278eb881423de
|
File details
Details for the file zyk-0.2.47-py3-none-any.whl.
File metadata
- Download URL: zyk-0.2.47-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a02861bb72beb25782d562c70fb5785802496f05ba8f9b775f9813713cefeecd
|
|
| MD5 |
9b9e51d395f5515b434c50ae800f8e1c
|
|
| BLAKE2b-256 |
0a7b37de4a083a14d56a40adb2df6571f89d5a234d51848368c485be2bca8f07
|