Skip to main content

Library for replacing function calls with LLM inference.

Project description

ChatGPT Image Aug 16, 2025, 07_57_39 PM

Static Badge GitHub license OpenAI API


Replace a function call with LLM inference. Sends the source code and arguments to an LLM, which then predicts what the output should be.

[!CAUTION] Please, for the love of all things good and holy, do not use this in any sort of production setting. This library should only be used for experimentation or prototyping.

📦 Installation

pip install git+https://github.com/dross20/llmify

💻 Quickstart

To use llmify, simply apply it as a decorator to a function like so:

from llmify import llmify

@llmify()
def add(a, b):
  return a + b

result = add(1, 2)
print(result) # Output: 3 (probably)

To change the model used for inference, pass in a value for the model keyword argument:

@llmify(model="gpt-5")
def add(a, b):
  ...

You can also use llmify on function stubs, so long as they have docstrings or comments:

@llmify()
def greet_user(name):
  """Greet the user in a friendly manner."""
  ...

greeting = greet_user("Mortimer")
print(greeting) # Output: "Hello, Mortimer!"

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

llmify_decorator-0.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llmify_decorator-0.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file llmify_decorator-0.0.2.tar.gz.

File metadata

  • Download URL: llmify_decorator-0.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llmify_decorator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1f08f74e0706da6deac845a761282ab60721b5275548f9cec8e760636b47e2ee
MD5 27ae51d6feecacc5dca517098a7d9079
BLAKE2b-256 4d07a5164e328bc079184036eaeee95b6cacddb9c75cf0e1d4e2a8cd9a852485

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmify_decorator-0.0.2.tar.gz:

Publisher: publish-to-pypi.yml on dross20/llmify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llmify_decorator-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llmify_decorator-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 738ecacb4af3cf3ed199d467c2ee631b773b29809363d6898d8c123e75c43ac7
MD5 7037798a490951a4ab0897eed990044f
BLAKE2b-256 9425010639ad99dd859929b841288d3a579b355285df9c2fa8b8b3d92a543493

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmify_decorator-0.0.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on dross20/llmify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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