This Python GUI application allows users to manage their GitHub repositories with ease. It provides functionalities to list your GitHub repositories, select multiple repositories for batch operations, and delete them directly from the interface.
- List Repositories: Fetch and display a list of all your GitHub repositories.
- Batch Select: Select multiple repositories at once for batch operations.
- Delete Repositories: Delete selected repositories directly from the application.
- Access Token Management: Securely request and store your GitHub access token for API requests.
- Error Handling: Display error messages for failed API requests or incorrect inputs.
- Python 3.x
requests
library
-
Ensure Python 3.x is installed on your system.
-
Install the
requests
library using pip:pip install requests
-
Download the script or clone the repository to your local machine.
-
Run the script using Python:
python github_repo_manager.py
-
Upon first launch, the application will prompt you to enter your GitHub Access Token. This token is necessary for the application to interact with the GitHub API on your behalf. You can generate an access token from your GitHub account settings under "Developer settings" > "Personal access tokens".
-
Once the token is provided, use the "获取我的仓库" (Get My Repositories) button to list all your repositories.
-
Use the list box to select the repositories you want to delete. You can select multiple repositories by holding down the
Ctrl
key while clicking. -
After selecting, click the "删除选中的仓库" (Delete Selected Repositories) button to delete them. The application will ask for confirmation before proceeding with the deletion.
-
The "全选/全不选" (Select All/Deselect All) checkbox allows you to quickly select or deselect all listed repositories.
- The application uses your GitHub Access Token to authenticate API requests. This token is stored locally and should be kept secure.
- Deleting a repository is irreversible. Please use the delete feature with caution.
This project is open-source and available under the MIT License.
Contributions to the GitHub Repository Manager are welcome. Please feel free to fork the repository, make changes, and submit pull requests.
If you encounter any issues or have suggestions for improvements, please open an issue in the GitHub repository.
This README provides a basic overview of the application's functionality, installation process, and usage. You can customize it further based on the specifics of your project and any additional features you might add in the future.