vibefunc 💤
Vibefunc is a Python decorator that lets you write only the function signature & docstring. When you call the function, it automatically asks an AI to fill in the body — and then runs it.
💻 Installation
pip install lazyfunc
🎮 Usage
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY=your_openai_api_key
Then, you can use the vibefunc decorator to create functions that will be filled in by AI:
from vibefunc import vibefunc
@vibefunc()
def sort(a: list):
"""Sort the list in ascending order and print the sorted list."""
...
sort([1, 222, 3333, 4, 45634, 1314235, 233])
Result:
[1, 4, 222, 3333, 45634, 1314235]
⚠️ Warnings
- Don’t run this in production unless you like surprises (and bugs).
Happy(Damn) vibing! ✨
Parameters
model: The OpenAI model to use (default: "gpt-4.1-mini").base_url: The base URL for the OpenAI SDK (default: "https://api.openai.com/v1").save_money: IfTrue, stores the same function body in a file instead of calling the OpenAI API (default:True).mode:seriousorchaotic, just for fun (default:serious).
Metadata
Release files for vibefunc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vibefunc-0.1.0.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vibefunc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / vibefunc-0.1.0.tar.gz
| Download URL | vibefunc-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35d27cb12621a5c469fbc07098768c109ba77067c9506a89e083f324e6bccd70
|
|
BLAKE2b-256 checksum How to use checksums |
45fa4336f738e1c9ab0c80a1bbc2f63e0c2577196134813a7acabaaba9858d79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Release files / vibefunc-0.1.0-py3-none-any.whl
| Download URL | vibefunc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac9b44df806e2dc560f0c6f348f1a98458f939f5220715d2476881ead0b909f7
|
|
BLAKE2b-256 checksum How to use checksums |
c54631c2c5a419178df90ce501628aaeb9d759e048436b05ef9bd2187609fd46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Security for vibefunc 0.1.0
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.