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.2.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.2.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_hacker-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 073210a117f90c89dc6fbc6eab6dd511c2d0a53e5e17c985f9d806e9e77a5c58
MD5 3774eb9463df0060ea87cbf6f3a7cf19
BLAKE2b-256 cb78c885fb3bebdcf8448cf7c45f06871665d8cb74330498a35e70dea2bd81c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: github_hacker-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a24ac9358e3384076b104c18a651c77cd91e74dd5ec8882ceddfe89309b629a
MD5 4abf9639e63b06f5b116faf86c965f23
BLAKE2b-256 414067cc448700b9911cd9473373e340c53c00b45b252890433249bc029205d3

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