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.32.tar.gz (21.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.32-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.32.tar.gz
  • Upload date:
  • Size: 21.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.32.tar.gz
Algorithm Hash digest
SHA256 613d178484ee7095dd3879695d1c6396ddd3635238ec74f69ff54643185dffe5
MD5 c6053dfbcc767bb0be8e3f9561347bc7
BLAKE2b-256 1b1beaf33f500c71a1a96d16d25ed14bd8845a4f49b00b9592fb1003cf56f145

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.32-py3-none-any.whl
  • Upload date:
  • Size: 24.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.32-py3-none-any.whl
Algorithm Hash digest
SHA256 a4a6a70166c508e592a888c91b20c3b3eb727598731c1c1e28033fca642f0f9f
MD5 4e8242b3fe71842e287c52cd01d8f37d
BLAKE2b-256 e889bf11a195aa1b3a6ec1896ea0b7ddb73a50a59ea60dd2d8580faab93609c3

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