GitHub Hacker
A CLI tool to manage multiple GitHub accounts for batch operations like starring, watching, and forking repositories.
Features
- Multi-account Management: Login, logout, and manage multiple GitHub accounts
- Batch Operations: Perform operations with all accounts at once
- Repository Operations:
- Star/Unstar repositories
- Watch/Unwatch repositories (subscribe to notifications)
- Fork repositories
- Check status (starred/watched)
- View repository information
- Config Management: Import/export account data in JSON format
Installation
Option 1: Install with pip (recommended)
pip install github-hacker
Option 2: Install from source (for development)
# Clone the repository
git clone https://github.com/SSBun/GithubHacker.git
cd GithubHacker
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Linux/Mac:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install in development mode
pip install -e .
After installation, use the github-hacker command:
github-hacker --help
Quick Start
Login with GitHub Account
github-hacker login myaccount YOUR_GITHUB_TOKEN
List Accounts
github-hacker config list
Star a Repository (All Accounts)
github-hacker star owner/repo
# Or use full URL
github-hacker star https://github.com/owner/repo
Star with Specific Account
github-hacker star owner/repo -a myaccount
Commands
Account Management
# Add account
github-hacker login <name> <token>
# Remove account
github-hacker logout <name>
# List accounts
github-hacker config list
# Export accounts to JSON
github-hacker config export accounts.json
# Import accounts from JSON
github-hacker config import accounts.json
# Validate all tokens
github-hacker config validate
# Show account info
github-hacker config whoami
Repository Operations
# Star a repository
github-hacker star <repo>
github-hacker star <repo> -a <account>
# Unstar a repository
github-hacker unstar <repo>
# Watch a repository (notifications)
github-hacker watch <repo>
# Unwatch a repository
github-hacker unwatch <repo>
# Fork a repository
github-hacker fork <repo>
# Check status (starred/watched)
github-hacker status <repo>
# Show repository info
github-hacker info <repo>
Supported Repository Formats
Both formats are supported:
- Short format:
owner/repo - Full URL:
https://github.com/owner/repo
JSON Account Format
When importing/exporting accounts, use this format:
{
"myaccount": {
"token": "ghp_xxxxxxxxxxxx",
"username": "githubuser"
}
}
Getting a GitHub Token
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token (classic)"
- Select the
reposcope for full access - Copy the generated token
License
MIT
Metadata
Release files for github-hacker 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| github_hacker-0.3.0.tar.gz | 10.3 kB | Without provenance | Details for github_hacker-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| github_hacker-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for github_hacker-0.3.0-py3-none-any.whl |
Total release size: 22.0 kB
Release files / github_hacker-0.3.0.tar.gz
| Download URL | github_hacker-0.3.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20e43cf9eaaba3170861a168b63a92a8920b553a368b70a0b2936a23cbd7a9c0
|
|
BLAKE2b-256 checksum How to use checksums |
1d61135cf31e9e8e48243bcf8576f4a968ad4867a1328af7d87eb3875a4baad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / github_hacker-0.3.0-py3-none-any.whl
| Download URL | github_hacker-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29f3c5e00cf903a4282b7700ffc6638e25dbe9444eec10183338dbbc318cf006
|
|
BLAKE2b-256 checksum How to use checksums |
b2ad8e6a0c0b046d66d3fccfa014b4b5339606af24cf022a22fcda76829546b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for github-hacker 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.