The Flight Analytics Application is a powerful tool designed to seamlessly connect to a MySQL database and provide comprehensive flight information. Users can easily extract flight details such as date, departure time, duration, and prices based on specified source and destination filters. The application also offers insightful visualizations using Plotly charts, enabling users to make well-informed decisions in the dynamic realm of air travel.
- Check Flights: Search for available flights between specified source and destination cities.
- Analytics:
- View airline frequency distribution.
- Identify the busiest airports.
- Analyze daily flight frequencies over time.
- Python 3.x
- MySQL Server
- Python Libraries:
- mysql-connector-python
- streamlit
- plotly
git clone https://github.com/your-repository/flight-analytics.git
cd flight-analyticspip install -r requirements.txt
- Ensure MySQL server is running.
- Create a database named flight.
- Import your flight data into a table named
flightwithin theflightdatabase.
Update the database connection parameters (host, user, password) in the DB class in dbhelper.py.
flight-analytics/
│
├── dbhelper.py # Database helper class for interacting with MySQL
├── app.py # Main Streamlit application
├── README.md # Project documentation
├── requirements.txt # List of required Python packages
└── .gitignore # Git ignore file
streamlit run app.py
- Select One: Default option providing project information.
- Check Flights: Allows users to search for flights between specified cities.
- Analytics: Provides various analytical visualizations of flight data.
- Airline Frequency Distribution: Pie chart showing the distribution of flights by airline.
- Busiest Airports: Bar chart showing the busiest airports based on flight frequency.
- Daily Flight Frequency: Line chart showing the frequency of flights over time.
This Flight Analytics Application provides an intuitive interface for exploring and analyzing flight data. By following the instructions in this README, you can set up and use the application efficiently. For further assistance, refer to the official documentation or contact the project maintainers.