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.33.tar.gz
(21.5 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.33-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file zyk-0.2.33.tar.gz.
File metadata
- Download URL: zyk-0.2.33.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10361415c1d25ec6132c91c5ead98d4602faec2a785b184063cb28095a727284
|
|
| MD5 |
626e3e48e0ff91a85a28d8c5cb2315a8
|
|
| BLAKE2b-256 |
7f9113bdaf275299683a07d7b26895f1855fb73bc284e7d6cd015ba40f2320f6
|
File details
Details for the file zyk-0.2.33-py3-none-any.whl.
File metadata
- Download URL: zyk-0.2.33-py3-none-any.whl
- Upload date:
- Size: 24.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 |
9ff3cd486a0fceef4afcc74e58eb2b61fc53781100fb226f011be50740d31048
|
|
| MD5 |
991318413a979faa4488bf3e4f0b8942
|
|
| BLAKE2b-256 |
cbdb52b3df217c636e0095706ce5f5cc1cd22701d41e5f8350d73a107d2ad0ed
|