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 Joe
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, acceptable 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

dothething-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

dothething-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dothething-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.36

File hashes

Hashes for dothething-0.1.1.tar.gz
Algorithm Hash digest
SHA256 820fe29a1e9b67974758b5ea774ec070af7e1ae2d6a768f73a5e5be81a78b33a
MD5 cbb947ecde8b046a01d2bde2840f743b
BLAKE2b-256 70c479a9c3a6d71139b5f81b0cdb2409ba04e32ad5e461f77058e04d43229b72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dothething-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.36

File hashes

Hashes for dothething-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7831487271ef52e3fbb9b428d9d041a11aed8b0ae5bcc7104d628182b8351046
MD5 1b8c763e32270ad0afcae1bb032381b2
BLAKE2b-256 0ccb65d723658ac6efb4d6eda1485dfbd8a125f149cab1616073c1606e49d53e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page