Latest / AI & agents

Fructose

github.com · Open source · Quiet

Python package that calls LLMs as strongly typed functions

Visit github.com ↗Share

  • typed llm outputs
  • llm structured output python
  • python llm decorator
  • strongly typed llm
  • json mode python
Stars
744
Forks
12
Open issues
0
Last commit
Found
2 years ago

GitHub figures as of . They are context, not a ranking.

Fructose is a Python package that calls LLMs as functions with typed signatures, so the output matches the requested Python data type. It first shipped as a client library that calls GPT-4 in JSON mode, and the maker plans a formatting model of its own.

What it does

  • Calls LLMs as functions with type-annotated signatures
  • Returns typed outputs such as lists, dicts, dataclasses and Enums
  • Supports custom prompt templates and local function calling

Good for

  • Turn a typed Python function into an LLM call that returns structured data
  • Get a dataclass back from a model call instead of raw text

Suits: Python developers who want typed, structured LLM outputs.

Worth knowing: The maker has paused maintenance on the project.

What you can try

Read the README on GitHub and install from source.

Install

pip install fructose
pip3 install fructose

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Fructose on , when edunteman posted it to Show HN. GitHub listed no published releases for bananaml/fructose when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 218 points, 99 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 218 points, 99 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: bananaml/fructose
  2. Found: edunteman posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was Fructose released?
No dated release record is available. Kip found it on Show HN on 6 Mar 2024.
Is Fructose open source?
Its source is public on GitHub at bananaml/fructose under the Apache-2.0 licence.
What does Fructose run on?
Library.
Is Fructose free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Fructose still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorybananaml/fructose
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-39619053. Summary written by KipFound’s editor.

Share

Similar tools

More in AI & agents

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.