This repository supplements the blog post and YouTube video.
You need access to:
- Amadeus - Sign up to the developer platform to obtain your secret key and API key.
- Neon - Sign up to Neon and create a project.
- OpenAI - Obtain an OpenAI API key.
Set up your Amadeus API key and your Neon Project.
Note - Ensure you name the database flights_data
to avoid the need for changing this in the code.
Clone this repository to a directory you have access to.
Create a virtual environment and install the libraries in the requirements.txt
file.
If you're using Anaconda, navigate to the folder where you cloned this repository and follow the steps below:
- Create a new environment:
conda create -n <your-env-name> python=3.9 pip
- Activate the environment:
conda activate <your-environment-name>
- Install requirements:
pip install -r requirements.txt
Start by amending the credentials in the amadeus_api.yml
file.
Next, amend the credentials in the configurations.json
file.
Open the flights_tutorial_notebook.ipynb
and change the configurations_path
to point to your configurations.json
.
Open the update_tabs.py
and change the script_dir
path on line 9 to point to your amadeus_api.yml
file location.
Notebook written by John Adeojo Founder, and Chief Data Scientist at Data-centric Solutions.
This work is licensed under a Creative Commons Attribution 4.0 International License.
If you use or adapt this work, please credit the author and the company as follows:
"Auto Gen Flights Tutorial" by John Adeojo from Data-Centric Solutions, used under CC BY 4.0 / Desaturated from original.