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.27.tar.gz (12.5 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.27-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.27.tar.gz
  • Upload date:
  • Size: 12.5 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.27.tar.gz
Algorithm Hash digest
SHA256 8fee3928d5d7e8effebc18fd6a5be11ba563f090c58261242292fad80100aeea
MD5 cb0241a7a1463a5a2f64c4d498e33341
BLAKE2b-256 052d2c22c8577c42ae8c227724929a984adcb7682eaa92efc95daca0e18343d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.27-py3-none-any.whl
  • Upload date:
  • Size: 9.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.27-py3-none-any.whl
Algorithm Hash digest
SHA256 61d9c83f6bbd7fc0f12f5bae67c2406a9a43a776fde784a9b7d1e8aa32d14fa3
MD5 ad9fcb64437180d63f5636871cc9831a
BLAKE2b-256 1927b161135b63e0d5f07476060c081e2f028bb83279edf8716103288a9fda78

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