Skip to main content

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


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.28.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zyk-0.2.28-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file zyk-0.2.28.tar.gz.

File metadata

  • Download URL: zyk-0.2.28.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for zyk-0.2.28.tar.gz
Algorithm Hash digest
SHA256 d6d2190e505c2214775af73b06d22eeaca9908cb0866219ca95721c4af6d82cb
MD5 e0d907d63b9950bee5cddda4f7e61e31
BLAKE2b-256 89a8f11d1428dbffc6669d60d1e6f92c397e450fa3c019ec34521de5e66f70eb

See more details on using hashes here.

File details

Details for the file zyk-0.2.28-py3-none-any.whl.

File metadata

  • Download URL: zyk-0.2.28-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for zyk-0.2.28-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fcb3bb31464fe4ab3d538745fa962a4ea126c040b2e3b65072ba3fd773c657
MD5 6e3c184050d8ef2206f15e9251f366ca
BLAKE2b-256 10a40251bf28891408454d6285e41e842eb316f69ef3a56cc312fbb2e4911b10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page