Skip to main content

Objects whose methods are written by an LLM the moment you call them

Project description

vybthon

Objects whose methods are written by an LLM the moment you call them. Call any method; if it doesn't exist, a model writes it from the name + arguments, runs it, and caches the source to ./.vibe_cache/ for instant reuse.

from vibe import Vibe

v = Vibe.openrouter("openrouter/meta-llama/llama-3.1-8b-instruct")  # set OPENROUTER_API_KEY
v.reverse_string("hello")   # -> "olleh"
v.nth_prime(10)             # cached after first call -> 29

Install

Needs Python ≥ 3.10 and an LLM provider (hosted, or a local Ollama).

pip install "git+https://github.com/bhivam/vybthon"   # or: uv add "git+..."

The distribution is vybthon; the import is vibe. On NixOS, run inside nix develop (litellm's wheels need libstdc++).

Security

Synthesized code runs via exec. LLM output is untrusted — treat every generated function as arbitrary code. This is a toy, not a sandbox.

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

vybthon-0.1.1.tar.gz (172.7 kB view details)

Uploaded Source

Built Distribution

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

vybthon-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file vybthon-0.1.1.tar.gz.

File metadata

  • Download URL: vybthon-0.1.1.tar.gz
  • Upload date:
  • Size: 172.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vybthon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7f45b2981312a8c7d854a5e3c21fef1b14e98dc16a9be7a80b9ec4a3e3a95c36
MD5 703eace1d5232cfbcf21cbd5586269d9
BLAKE2b-256 455da84536c4d01fe7da3dbfd8f955ea8452e9d0dd4c18de0153539daea8bbc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vybthon-0.1.1.tar.gz:

Publisher: publish.yml on bhivam/vybthon

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

File details

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

File metadata

  • Download URL: vybthon-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vybthon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7197d4355166aefee3d5f1cb2cd65406d539312ff728e9eb6b4934b11ce214a0
MD5 e66da0389635462ae0bef9c4dfcc8108
BLAKE2b-256 b0965639e317c7d740ee66d859d00c91985f86187e89bfe48ddcfb3705d5e9ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for vybthon-0.1.1-py3-none-any.whl:

Publisher: publish.yml on bhivam/vybthon

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