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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zyk-0.2.52.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.52.tar.gz
Algorithm Hash digest
SHA256 3117d22a299a28cb7b86616399a248def507dd5e132cd08912c868a36e0cf1c9
MD5 6feb6bc8094178c4656ff9a2057516a1
BLAKE2b-256 bf327552c74370c61ffa18c70f638c35b9cc404cfa04dae6529b276fabca7ea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zyk-0.2.52-py3-none-any.whl
  • Upload date:
  • Size: 25.6 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.52-py3-none-any.whl
Algorithm Hash digest
SHA256 db416eb86393212b8a38358552d2dcacd90a32dd46304eb221cc5d59dbc8b3a1
MD5 5c40359397055e21cb52f78db8b9b216
BLAKE2b-256 93c3d1f9a139cc776cdb5c04f9903cf6e09fd92adb9d2b0e729432f8ff778df1

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