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.
Metadata
Release files for dothething 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dothething-0.1.2.tar.gz | 6.3 kB | Without provenance | Details for dothething-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dothething-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for dothething-0.1.2-py3-none-any.whl |
Total release size: 14.3 kB
Release files / dothething-0.1.2.tar.gz
| Download URL | dothething-0.1.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7ba95503beb2e0d07a42294fbff846c0553395ecc9816fa572a9bb23d81d9e5
|
|
BLAKE2b-256 checksum How to use checksums |
851d971dd3a30008cbe5c90a68478c9648616a9ada73ce0142a5f30b32ef2a45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Linux/6.6.36
|
Release files / dothething-0.1.2-py3-none-any.whl
| Download URL | dothething-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4b185290ffd863cfef377d518d419d7b8e1fd54fe34d5dab98e2ba51582c8a7
|
|
BLAKE2b-256 checksum How to use checksums |
2a6d9137bc3252c0b240b4ab99a983f9c6f706f17aa56a677890fbf696c049c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Linux/6.6.36
|
Security for dothething 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.