Skip to main content

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

Release files for sucrose-ollama 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sucrose-ollama 0.1.1
File Size Uploaded
sucrose_ollama-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sucrose-ollama 0.1.1
File Interpreter ABI Platform
sucrose_ollama-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / sucrose_ollama-0.1.1.tar.gz

Download URL sucrose_ollama-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a016d63949a31756c578ddf7d47ecb0f6b9348070a28c406075691478ceb5efc
BLAKE2b-256 checksum
How to use checksums
5e752f92af6d90da3cfd2a97275cc459f09f0863cc50bc9af7586b210a733e09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / sucrose_ollama-0.1.1-py3-none-any.whl

Download URL sucrose_ollama-0.1.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3840feda43162fccecfb4a9bbb2b301c6afaecb21e5e17e63ca38decf6c70a5
BLAKE2b-256 checksum
How to use checksums
3263ab0d672ab33a43408ab910b30c3695f23560336a55079d3faa3675ee6eab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page