Yellow Banana is as a template for creating PyPI packages.
In order to create your own package, replace all occurrences of the word "yellow_banana" in the codebase, and rename the yellow_banana
folder, to whatever you want your package to be called.
-
Clone the repository:
git clone https://github.com/bloominstituteoftechnology/yellow_banana.git cd yellow_banana
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Build and install the package:
python setup.py sdist bdist_wheel pip install dist/yellow_banana-0.1.1-py3-none-any.whl
-
Run the package:
export OPENAI_API_KEY="xyz" yellow_banana "What is the meaning of life?"
-
Make an account at PyPI and set up their token in your environment.
-
Install Twine:
pip install twine
-
Build the app:
python setup.py sdist bdist_wheel
-
Upload to PyPI:
twine upload dist/*
Install the package using pip:
pip install yellow_banana
Set whatever environment variables are needed:
export OPENAI_API_KEY ="some_value"
Use the tool:
yellow_banana "What is the meaning of life?"