Name | zyk JSON |
Version |
0.2.20
JSON |
| download |
home_page | None |
Summary | Simple LM api wrappers for production |
upload_time | 2024-11-19 06:11:50 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | MIT License Copyright (c) 2024 Josh Purtell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
zyk
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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/*
Raw data
{
"_id": null,
"home_page": null,
"name": "zyk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "zyk",
"author": null,
"author_email": "Josh Purtell <jmvpurtell@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/4a/d8/b88be9c912dc5fc55a7213ac0b19f38d0dae37c00bd07982ef3427de2462/zyk-0.2.20.tar.gz",
"platform": null,
"description": "# jaZYK\n\nSimple LM api wrappers for production\n\nSupports:\n- OpenAI\n- Anthropic\n- Gemini\n- DeepSeek\n- Together\n\nKey Features:\n- Structured Output logic (with retries)\n- Caching (ephemeral in-memory and/or on-disk sqlite)\n- Supports images for Anthropic and OpenAI\n\nAdd a PR if you want to add another provider!\n\n## Installation\n```\nuv add zyk\n```\nor\n```\npip install zyk\n```\n\n## Usage\n```\nfrom zyk import LM\nlm = LM(model_name=\"gpt-4o-mini\", temperature=0.0)\nclass HelpfulResponse(BaseModel):\n greeting: str\n name: str\nprint(lm.respond_sync(system_message=\"You are a helpful assistant\", user_message=\"Hello, how are you?\", response_model=HelpfulResponse))\n```\n\n## Name\n\nZYK is short for \"Z you know\"\n\npython -m build \ntwine check dist/*\ntwine upload dist/*",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Josh Purtell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Simple LM api wrappers for production",
"version": "0.2.20",
"project_urls": {
"Homepage": "https://github.com/JoshuaPurtell/jazyk"
},
"split_keywords": [
"zyk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "78d52e6670aa1ecbddad44cb1ac28285b1751498402e3ca57ef413ee4d4c06a9",
"md5": "d2e2c2e58937531619d76b1836db5e67",
"sha256": "d9a75446570cd8f8b8472a3086a4c2156bc41f2694a44e018bf13642b545da16"
},
"downloads": -1,
"filename": "zyk-0.2.20-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d2e2c2e58937531619d76b1836db5e67",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 22909,
"upload_time": "2024-11-19T06:11:46",
"upload_time_iso_8601": "2024-11-19T06:11:46.806327Z",
"url": "https://files.pythonhosted.org/packages/78/d5/2e6670aa1ecbddad44cb1ac28285b1751498402e3ca57ef413ee4d4c06a9/zyk-0.2.20-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4ad8b88be9c912dc5fc55a7213ac0b19f38d0dae37c00bd07982ef3427de2462",
"md5": "b000fd28660f7ea30d9fb1ed24caa700",
"sha256": "c515be48ff3ffc9e32c4cc0456c799603cffc4d728ff38268a6ae0dcd0298217"
},
"downloads": -1,
"filename": "zyk-0.2.20.tar.gz",
"has_sig": false,
"md5_digest": "b000fd28660f7ea30d9fb1ed24caa700",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 102922,
"upload_time": "2024-11-19T06:11:50",
"upload_time_iso_8601": "2024-11-19T06:11:50.512204Z",
"url": "https://files.pythonhosted.org/packages/4a/d8/b88be9c912dc5fc55a7213ac0b19f38d0dae37c00bd07982ef3427de2462/zyk-0.2.20.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 06:11:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JoshuaPurtell",
"github_project": "jazyk",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "zyk"
}