This project fetches Near-Earth Object (NEO) data from NASA's API and stores it into a PostgreSQL database.
config.py
: API keys and database credentials.fetch_data.py
: Fetches data from NASA API.database.py
: Inserts/updates data into the database.data_checks.py
: Validates data consistency.logger.py
: Logs pipeline activities.main.py
: Orchestrates the entire pipeline.
- Python 3.x
- PostgreSQL
- Required Python libraries:
requests
,pg8000
,logging
- Update
config.py
with your API key and database credentials. - Set up the database using provided schema.
- Run the pipeline:
python main.py