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.23.tar.gz
(103.1 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.23-py3-none-any.whl
(23.2 kB
view details)
File details
Details for the file zyk-0.2.23.tar.gz.
File metadata
- Download URL: zyk-0.2.23.tar.gz
- Upload date:
- Size: 103.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
011ca6ef37950a80198f3cdef0ed18676e6cd70827d24714df9ff1218d700256
|
|
| MD5 |
87140aaafc317554a9c7e4e3d4d6f30d
|
|
| BLAKE2b-256 |
3bbf386610ce1456c948488f47f34fdb9ad01c191d6a146499878f0fd29898a7
|
File details
Details for the file zyk-0.2.23-py3-none-any.whl.
File metadata
- Download URL: zyk-0.2.23-py3-none-any.whl
- Upload date:
- Size: 23.2 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 |
9ff4a745dd434a48da436a4d46dce63ce8f40ee0fce1e6f4ffd76199ca2da852
|
|
| MD5 |
ea4aa144e7c13cffb4a158ea27a4501b
|
|
| BLAKE2b-256 |
8b78ef0a5d6286dd44dc3247f5b5a88983ea2be29c591bcf209a40144c95edef
|