Skip to main content

close_enough

A cursed Python decorator that generates function implementations using LLMs.

Installation

uv add close_enough

Usage

import close_enough

@close_enough
def calculate_fibonacci(n: int) -> int:
    """Calculate the nth Fibonacci number."""
    ...

result = calculate_fibonacci(10)  # 55

The decorator generates a function implementation based on the signature and docstring. The implementation is generated from a LLM's output lazily on first call and cached for subsequent calls.

Do not use in production code.

Configuration

The default model is github_copilot/gpt-4. To use a different model:

import close_enough
close_enough.MODEL_NAME = "your-model-name"

License

MIT

Metadata

Release files for close-enough 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 close-enough 0.1.1
File Size Uploaded Provenance Actions
close_enough-0.1.1.tar.gz 2.6 kB Without provenance Details for close_enough-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for close-enough 0.1.1
File Interpreter ABI Platform Actions
close_enough-0.1.1-py3-none-any.whl Python 3 none any Details for close_enough-0.1.1-py3-none-any.whl

Total release size: 6.2 kB

Release files / close_enough-0.1.1.tar.gz

Download URL close_enough-0.1.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
69fedc22f74cb908ae4da66bd35b670d8463fe2bceb41a8078e563688ac8c8fb
BLAKE2b-256 checksum
How to use checksums
15d8f44d3325b9c5c1f92d5f78ca8ab84e5de491a247d408e9c8c2add58c5675
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL close_enough-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2f658689d4513af7b687a4612d93e9cfa8243b82eaccfd35002554a13801bc4
BLAKE2b-256 checksum
How to use checksums
3367d209dfcfc8b5a455509b8a826c00cdb20bff61e91905d488c41bd4a0a42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for close-enough 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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