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.41.tar.gz (22.2 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.41-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.41.tar.gz
  • Upload date:
  • Size: 22.2 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.41.tar.gz
Algorithm Hash digest
SHA256 98fd8388ae325acbe3368df86e913f5e924ccb68f0df54cc3fef58f85220ca08
MD5 00ab0b32ab075ecd2b3e9f31ebc592f9
BLAKE2b-256 5462b9b57a8a2e218d508feb4b3d89cdacfdb65339286b1f71f42e381ddf873f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.41-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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.41-py3-none-any.whl
Algorithm Hash digest
SHA256 bda0c6a8adb12e6aaa4759c18d164fc18264985bad81abbb3827f7eeffbb16cf
MD5 4f8d6140bbfa2b446dfabf96ffd5324b
BLAKE2b-256 68fa1a2a1e530b5ddfcebf8a7a03d637c9d7f237b7602709ae2a4e9d17cda352

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