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.44.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.44-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.44.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.44.tar.gz
Algorithm Hash digest
SHA256 8cf9e4d3bc9aa8f51c8996f3d235764d9c1253193a6eda4fdcecd595b6908fdd
MD5 5dc6f501aef68ce7ce20d10538279a3b
BLAKE2b-256 dd836682f28f1187a206e644854b13827e32b28abcb3f19aec6c5d8844fbdaf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.44-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.44-py3-none-any.whl
Algorithm Hash digest
SHA256 5ee4485a748069c9519807fb354366c8b2cb591db6e2a584bc4a34c6e53ee124
MD5 9a612517af523cadfe6de3ecb9d54c34
BLAKE2b-256 4480eebee6cccc2f8b632d1411294e4e0e37c9a6aa26bedb22d05a4ec81e0a5f

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