Skip to content

404Wolf/everything

Repository files navigation

Literally everything!

The ultimate abstraction.

from everything import anything!

Real example:

from everything import sort_list, stylized_greeting

# Print a greeting for Wolf
print(stylized_greeting("Wolf", "Angry"))

# Sort a list
print(sort_list([3, 2, 1, 0, -5, 2.5]))
>> ANTHROPIC_API_KEY=...
>> python example.py
WHAT DO YOU WANT, WOLF?!
[-5, 0, 1, 2, 2.5, 3]

How's it work?

Using state-of-the-art technology, we can literally import anything from everything! Any function you can imagine, dynamically generated at runtime, accessible with a simple import.

When you import <anything> from everything, everything will use Python's AST library to scan your source code, and find all usages of <anything>. It then will merge a few lines of context on both sides of every function call, along with the call itself. Then, it will have claude generate a Python function, freshly plopped into your code at runtime.

How to use

First, set the ANTHROPIC_API_KEY to a valid API token. Then install the package with pip install everything (or uv, etc). Finally, import anything from everything!

Words of caution

You probably don't want to use this in production. everything provides no guarantees! This is my escape hatch after of 6 weeks of learning nix.

Packages

No packages published

Languages