AI Function
Generate realtime AI Functions!
Installation
To install AI Function, run:
pip install AIFunction
Usage
To use AIFunction, you must have an OpenAI API key.
Firstly, add a .env file to your project, and add the following:
OPENAI_API_KEY="key_here"
Then, import the aiFunction function:
from AIFunction import aiFunction
Now, you can use the aiFunction function to generate AI Functions!
print(aiFunction("bitcoin_price", "Returns the current price of bitcoin."));
# --> 27002.055
What is an AI Function?
Let's say you want to write a function to get the current time in python. All you have to do is:
from AIFunction import aiFunction
print(aiFunction("time", "Returns the current time."));
# --> 12:00:00
How does it work?
AI function uses OpenAI's GPT model to generate the code for the function. It then runs the code and returns the output. If specified, it will also install the required packages for the code.
Security
AI Functions are not very secure, as they run code without any user testing, and can be used to run malicious code.
Metadata
Release files for AIFunction 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| AIFunction-1.0.9.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| AIFunction-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / AIFunction-1.0.9.tar.gz
| Download URL | AIFunction-1.0.9.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dd33146ed269d974e50ace5109de4dae3b2cc8438bdd83382f9fd32cfe44b2b
|
|
BLAKE2b-256 checksum How to use checksums |
d329f3a19886d6ed8b1e70289570cef2a9b52c671f30620318b1ca75fd0bd511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Release files / AIFunction-1.0.9-py3-none-any.whl
| Download URL | AIFunction-1.0.9-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50528ba3b8bcd3ed382d31e1ff80a2e97f6b5881b02b51192fd6ee13df34d99b
|
|
BLAKE2b-256 checksum How to use checksums |
fe5eec8a6e49d0acd695cfe82098ffe84f978deb6939ec4b8151f657e0a8b6dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|