Skip to main content

CLI tool to manage multiple GitHub accounts for batch operations

Project description

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

  1. Go to GitHub Settings > Developer settings > Personal access tokens
  2. Click "Generate new token (classic)"
  3. Select the repo scope for full access
  4. Copy the generated token

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_hacker-0.3.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_hacker-0.3.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file github_hacker-0.3.0.tar.gz.

File metadata

  • Download URL: github_hacker-0.3.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for github_hacker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 20e43cf9eaaba3170861a168b63a92a8920b553a368b70a0b2936a23cbd7a9c0
MD5 ec434ea4a03711e9e70053487eb8e42a
BLAKE2b-256 1d61135cf31e9e8e48243bcf8576f4a968ad4867a1328af7d87eb3875a4baad3

See more details on using hashes here.

File details

Details for the file github_hacker-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: github_hacker-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for github_hacker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29f3c5e00cf903a4282b7700ffc6638e25dbe9444eec10183338dbbc318cf006
MD5 eccb7d1832a4b41573a01b236f6e22ae
BLAKE2b-256 b2ad8e6a0c0b046d66d3fccfa014b4b5339606af24cf022a22fcda76829546b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page