Skip to main content

Simple script to automate the removal of GitHub stars

Project description

unstar

A simple Python package to automate the removal of GitHub stars from your account.

Features

  • Remove all starred repositories from your GitHub account
  • Built with modern Python packaging using uv
  • Command-line interface for easy usage
  • Rate limiting to respect GitHub API limits

Installation

From PyPI (recommended)

# Install using uv (recommended)
uv tool install unstar

# Or install using pip
pip install unstar

From Source

git clone https://github.com/forkdo/unstar
cd unstar

uv sync
# or if you have `uv` installed globally
uv tool install -e 

Usage

Command Line Interface

After installation, you can use the unstar command:

unstar <your_github_access_token>

Getting a GitHub Access Token

  1. Go to GitHub Settings > Personal Access Tokens
  2. Click "Generate new token (classic)"
  3. Select the following scopes:
    • public_repo (to access public repositories)
    • user (to access starred repositories)
  4. Copy the generated token

Example

unstar ghp_your_token_here

Development

This project uses uv for dependency management and packaging.

Setup Development Environment

git clone https://github.com/forkdo/unstar
cd unstar
uv sync

Running from Source

uv run unstar <access_token>
# or
uv run python -m unstar.main <access_token>

Building the Package

uv build

Publishing to PyPI

# Build the package
uv build

# Publish to PyPI (requires authentication)
uv publish

Requirements

  • Python 3.8+
  • requests library
  • Valid GitHub personal access token

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests (if available)
  5. Submit a pull request

Disclaimer

Use this tool responsibly. Make sure you really want to unstar all your repositories before running it, as this action cannot be easily undone.

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

unstar-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

unstar-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file unstar-0.1.0.tar.gz.

File metadata

  • Download URL: unstar-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for unstar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac8d75fd3ec0ee5564b01553b9bec06867be894821b28ccfa7f4ed8222086800
MD5 55172e5cce96a537480a7df4c492fbc3
BLAKE2b-256 8bd3f3ab55fb80e8057bb3f42d1dd5827c7efd93afc5235e1a3560ac12450e3c

See more details on using hashes here.

File details

Details for the file unstar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: unstar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for unstar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a55cc043015cc87fec4c66179df29ddb8543a58e7b3896d736ed6bd9e1d5e2dd
MD5 72e91fd049fdae4578215f8aedc94d77
BLAKE2b-256 a59321cf7cab084a3e422157b6f11cbd21b9d31083da10f184bf317720dd8ece

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