Skip to main content

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.

Release files for unstar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unstar 0.1.0
File Size Uploaded
unstar-0.1.0.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for unstar 0.1.0
File Interpreter ABI Platform
unstar-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / unstar-0.1.0.tar.gz

Download URL unstar-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ac8d75fd3ec0ee5564b01553b9bec06867be894821b28ccfa7f4ed8222086800
BLAKE2b-256 checksum
How to use checksums
8bd3f3ab55fb80e8057bb3f42d1dd5827c7efd93afc5235e1a3560ac12450e3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / unstar-0.1.0-py3-none-any.whl

Download URL unstar-0.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a55cc043015cc87fec4c66179df29ddb8543a58e7b3896d736ed6bd9e1d5e2dd
BLAKE2b-256 checksum
How to use checksums
a59321cf7cab084a3e422157b6f11cbd21b9d31083da10f184bf317720dd8ece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page