from everything import anything
Project description
Just Do The Thing!
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]))
>> 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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dothething-0.1.0.tar.gz
.
File metadata
- Download URL: dothething-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.6.36
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e0e56ab5fa738b48e2746cabb0981e7bc49ab5e07c93e6e070292d8532bc54c |
|
MD5 | daf21cda434fd256c8a89e73419d82f6 |
|
BLAKE2b-256 | 5e8b2bd0e3c4e77ce490b9d4957ab0e6dcb36a668c7cd82e85ec62644268da59 |
File details
Details for the file dothething-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dothething-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2069389a10133b5ce2d0c99609e79ba8ea6e437c5ea9c5543ba7673734fc291 |
|
MD5 | 7d0e7f565bb6998879e62009d5ea9031 |
|
BLAKE2b-256 | 6f16090c27541e68583be4f2610b23144bc3e3f160f4a18105ee6c50ab288074 |