TBD.
Project description
Pythoness
Pythoness is a Python module that uses OpenAI's GPT-4 model to automatically generate Python code based on natural language descriptions of the desired functionality.
Installation
The easiest way to install Pythoness is through pip:
python3 -m pip install pythoness
Usage
To use Pythoness, you will need to import the pythoness
module and use the @pythoness.spec
decorator to specify the desired functionality. Here is an example usage:
import pythoness
@pythoness.spec("Compute the nth number in the Fibonacci series.")
def myfib(n: int) -> int:
""
This code will generate a Python function named myfib
that computes the nth number in the Fibonacci series.
To actually execute the function, you can call it as you would any other Python function:
for i in range(20):
print(myfib(i))
Pythoness caches the results of translating natural language to Python, so subsequent executions in the same directory will run much faster.
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
Built Distribution
Hashes for pythoness-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba82ab7b79f6adca2a51ed655ac53bc26f0ecabccb9fd6865e73f9517fcb4f99 |
|
MD5 | 13d64f69d3043ecf919ff46464ff6b79 |
|
BLAKE2b-256 | 55719934077f80144c05b2b7ee28655868e1b5fea6b2304882bc322075dbdfdd |