In this project, I use GitHub’s API to request information about Python projects on the site and generate an interactive visualization of the relative popularity of these projects using Plotly. I then write a program to automatically download information about the most-starred Python projects on GitHub and create an informative visualization of these projects.
The GitHub Visualization project leverages GitHub’s API to gather data about the most-starred Python projects and visualize their popularity. Using Plotly, I create interactive visualizations that highlight key metrics, helping users understand trends and the relative popularity of different projects.
- Fetch data from GitHub’s API about the most-starred Python projects.
- Generate interactive visualizations using Plotly.
- Analyze and compare the popularity of various Python projects.
- Automatically download and update information about project stars.
To get started with the GitHub Visualization project, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/github-visualization.git
-
Navigate to the project directory:
cd github-visualization
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
To run the GitHub data fetching script and generate the interactive visualization, use the following command:
python github_visualization.py
The resulting plot will be displayed in your browser, showcasing the relative popularity of Python projects on GitHub.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License.
The GitHub Visualization project was created by Alexis Gonzalez. Special thanks to Eric Matthes for his book "Python Crash Course," which provided the foundation for this project.