Add your description here
Project description
Sucrose
Inspired by fructose https://github.com/bananaml/fructose, but uses the ollama python client. Supports pydantic models.
pip install sucrose_ollama
from sucrose import Sucrose
ai = Sucrose()
@ai
def describe(animals: list[str]) -> str:
"""
Given a list of animals, use one word that'd describe them all.
"""
...
description = describe(["dog", "cat", "parrot", "goldfish"])
print(description) # -> "pets" type: str
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sucrose_ollama-0.1.1.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sucrose_ollama-0.1.1.tar.gz.
File metadata
- Download URL: sucrose_ollama-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a016d63949a31756c578ddf7d47ecb0f6b9348070a28c406075691478ceb5efc
|
|
| MD5 |
506d7b34991f6d28b5b0fdea6d250b88
|
|
| BLAKE2b-256 |
5e752f92af6d90da3cfd2a97275cc459f09f0863cc50bc9af7586b210a733e09
|
File details
Details for the file sucrose_ollama-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sucrose_ollama-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3840feda43162fccecfb4a9bbb2b301c6afaecb21e5e17e63ca38decf6c70a5
|
|
| MD5 |
1dee07f6ff4498bbfd1fd3184aeeb601
|
|
| BLAKE2b-256 |
3263ab0d672ab33a43408ab910b30c3695f23560336a55079d3faa3675ee6eab
|