The Superhero Comparison Tool is an interactive web application built with Streamlit that allows users to compare different superheroes based on their attributes and powers. This tool provides a fun and engaging way to explore the vast world of superheroes and their capabilities.
- Interactive superhero selection from a comprehensive database
- Side-by-side comparison of two superheroes
- Detailed display of superhero attributes including power stats, biography, and appearance
- Visual representation of power stats using interactive charts
- Responsive layout for easy viewing on different devices
- Python
- Streamlit
- SQLite
- Pandas
- Altair
https://superherobattle.streamlit.app/
- Python 3.7+
- pip
- Clone the repository:
git clone https://github.com/yourusername/superhero-comparison-tool.git
andcd superhero-comparison-tool
- Create a virtual environment:
python -m venv venv source venv/bin/activate
(On Windows usevenv\Scripts\activate
) - Install the required packages:
pip install -r requirements.txt
- Ensure you have a populated SQLite database named
superheroes.db
in the same directory as the script. - Run the Streamlit app: streamlit run superhero_comparison.py
- Open your web browser and navigate to the URL provided by Streamlit (usually
http://localhost:8501
). - Use the sidebar to select two superheroes for comparison.
- Click the "Compare" button to view the detailed comparison and charts.
The superhero data is sourced from the Superhero API. Please refer to their terms of use for any restrictions on data usage.
Contributions to improve the Superhero Comparison Tool are welcome. Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Hunter Hines - [email protected]
Project Link: https://github.com/hunterhines34/superhero-comparison-tool