Catalog PyPI
PACKAGE EXPLORERView in registry

AIFunction

PyPI

Generate realtime AI Functions!

Versions collected1
Direct dependencies0From release 1.0.9
Last observed21 Oct, 10:44 UTC

README

Version 1.0.9 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.98 Apr 20230

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
nekumelon/aifunction

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:beb37d769450b8e51cd85efa3b507b041904ff839822cbcc9de188d45d925dc5