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.43.tar.gz (22.1 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.43-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.43.tar.gz
  • Upload date:
  • Size: 22.1 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.43.tar.gz
Algorithm Hash digest
SHA256 e653573d36006da27d59ac9d64d2db9310ab44f3b1304a4c93a3626c9c97e8bb
MD5 6f5b03de3c7d353aecc1632591170ffc
BLAKE2b-256 f96f43a3f8730abf6d5c00742eaedb57500733d76655df44e4c41a1e0fd88b79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.43-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.43-py3-none-any.whl
Algorithm Hash digest
SHA256 ad27f7b3390142ee6db0282e84994b821e5c085028d25bd31fe6595bb41cd9e9
MD5 c60130fa6829ba2c0d0903f74cbee045
BLAKE2b-256 abf4a19be15da7bf3a03888ea2fe3aff1d60952dcfdbeb2e75cf0f17831de23b

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