Skip to main content

from everything import anything

Project description

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]))
>> OPENAI_API_TOKEN=...
>> python example.py
WHAT DO YOU WANT, WOLF?!
[-5, 0, 1, 2, 2.5, 3]

How's it work?

Using OpenAI's's state-of-the-art AI 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, dothething 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 use OpenAI's gpt-4o model to generate a Python function, which you can then use in your code.

How to use

First, set the OPENAI_API_TOKEN to a valid API token. Then install the package with pip install dothething. Finally, import anything from everything!

Words of caution

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

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

everything-0.1.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

everything-0.1.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file everything-0.1.2.tar.gz.

File metadata

  • Download URL: everything-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.12.12

File hashes

Hashes for everything-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a7e8b00f8ca4ac17bbbb3ae2d0e08b0c708247a3224dc17a130f6af64882366b
MD5 886b05119816702d4ae7697b789963c5
BLAKE2b-256 e38dd5f0968f55fcd9a2a49d8a69987d4cb8915b88aebf5f893e65e03ed01b5f

See more details on using hashes here.

File details

Details for the file everything-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: everything-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.12.12

File hashes

Hashes for everything-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0324e999f85d6921a7b31573b93974b52f8498710b36567f00ac0f2f718bd93
MD5 4afb7371791f5f80394ae1b9cca451e0
BLAKE2b-256 26a1172ed920c9f44066235b52ed85a0db801c6247cddf70d13e68f30875241f

See more details on using hashes here.

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