See notebook for more details on development
export OPENAI_API_KEY="" # set your key
export AIRTABLE_API_KEY="" # set your key
pip install -r requirements.txt
python generate_md_files.py -d <Path to instruments database directory>
In this repo, the data and results are all cached. If you want to re-run this from scratch (ie a change was made to airtable), run
rm -rf .cache
python generate_md_files.py -d <Path to instruments database directory>
This does the following:
- Load the CSV from airtable (if it doesnt exist)
- Gets each library
- Loads the raw python code for each particular device
- Queries chatgpt for the code snippet based on the docstring python code
- Generates Markdown pages for Starlette app in given directory path.