Skip to content

An implementation of OpenAI API that focuses on building projects and programs automatically using bash scripts.

License

Notifications You must be signed in to change notification settings

menuRivera/pythonai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonAI

This project is an implementation of the OpenAI API. It's purpose is to create dev-ready projects with virtually any technology you can think of. It can be modified in order to create any kind of file that can be created using bash scripts.

How to use

In order to be able to use the script, you must, first of all, get your own OpenAI api key and place it in an env variable called OPENAI_API_KEY. Then install the dependencies with

pip install -r requirements.txt 

and you are ready to go.

Syntax

python pythonai.py <technology to use> <name of the project>

for example:

python pythonai.py expressjs sample-server

How does this work?

The idea is rather simple, OpenAI completions api can only receive text as instructions, and can only return text responses, thus creating something more complex like a whole expressjs project doesn't feel like that easy to achieve, though it is possible if you ask the AI to create a bash script that does exactly what you want to create, and this is the core and fundamental idea behind this project: you ask for a project, and the ai gives you a bash script that you will, afterwards, execute.

Want to contribute?

Feel free to fork the project and open pull requests when you feel like your feature/fix is ready.

About

An implementation of OpenAI API that focuses on building projects and programs automatically using bash scripts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages