Skip to main content

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


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)

Uploaded Source

Built Distribution

sucrose_ollama-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for sucrose_ollama-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a016d63949a31756c578ddf7d47ecb0f6b9348070a28c406075691478ceb5efc
MD5 506d7b34991f6d28b5b0fdea6d250b88
BLAKE2b-256 5e752f92af6d90da3cfd2a97275cc459f09f0863cc50bc9af7586b210a733e09

See more details on using hashes here.

File details

Details for the file sucrose_ollama-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sucrose_ollama-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3840feda43162fccecfb4a9bbb2b301c6afaecb21e5e17e63ca38decf6c70a5
MD5 1dee07f6ff4498bbfd1fd3184aeeb601
BLAKE2b-256 3263ab0d672ab33a43408ab910b30c3695f23560336a55079d3faa3675ee6eab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page