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.39.tar.gz (22.0 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.39-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.39.tar.gz
  • Upload date:
  • Size: 22.0 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.39.tar.gz
Algorithm Hash digest
SHA256 c37dd63f7230f44de31fa1c7d47c55544c59189018833c001a44ee411a53e256
MD5 92bcfb8ced2e0699153c8ad8c748e4b0
BLAKE2b-256 9973a6c9eaaf55770e7d8bf4f75b69833e4fdf5fd8a39089b0b05502c9c60ba1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.39-py3-none-any.whl
  • Upload date:
  • Size: 25.1 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.39-py3-none-any.whl
Algorithm Hash digest
SHA256 ea457232bac39cf9fd09306ea82679f29f05ee7030d17b8aab8c39d6f6221dcc
MD5 c41414380d1ed56d2834aeec15397f70
BLAKE2b-256 9f463f18d4e97afe9545e4c26ac5e68c49581055fb9d851f317d36002cfa20dc

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