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.0.tar.gz (98.4 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.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vybthon-0.1.0.tar.gz
  • Upload date:
  • Size: 98.4 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.0.tar.gz
Algorithm Hash digest
SHA256 4aa413a822220b44d950bd35281254c112e252e7b94c1b0534d74066a5bd2d79
MD5 2fcdba163655c49989005d61931c466f
BLAKE2b-256 54ae347ce5921798b6d2e46ed8b6d4a525c0f44d7eea9fbae132358233003b47

See more details on using hashes here.

Provenance

The following attestation bundles were made for vybthon-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: vybthon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fcc427ca536b3d29b718f7cc08a3152803e60ad60b0bd9557e355ee17b3f53a
MD5 548043c3d6afb07164999a7a0306953a
BLAKE2b-256 ac65cc5de18185c94f4e1241d772d20bd4e9053cdbf94a76e9e427d1e07b5843

See more details on using hashes here.

Provenance

The following attestation bundles were made for vybthon-0.1.0-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