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.53.tar.gz (22.4 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.53-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.53.tar.gz
  • Upload date:
  • Size: 22.4 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.53.tar.gz
Algorithm Hash digest
SHA256 b691a9542f94f2ee3660ad29d5e00a9d379a9ee80368e3e31bb707b6110f4f90
MD5 49f7f4dcb5a854ac90574af87eea7105
BLAKE2b-256 58469a53eaf01313cc0909ed325c700c06195ec465b9193ae7b258004d9c5209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.53-py3-none-any.whl
  • Upload date:
  • Size: 25.7 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.53-py3-none-any.whl
Algorithm Hash digest
SHA256 531c7e451e0a78c95659147b12ec8d04e0ec483af7f9d67fba2688863fd9a29d
MD5 c55a2c5220369823cae2e90d6aab93e8
BLAKE2b-256 6bef8393bdd685b83aedfcaa39f20724bab3f38e69cca4790eef37343d7e6efb

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