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
- Go to GitHub Settings > Personal Access Tokens
- Click "Generate new token (classic)"
- Select the following scopes:
public_repo(to access public repositories)user(to access starred repositories)
- 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+
requestslibrary- Valid GitHub personal access token
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests (if available)
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac8d75fd3ec0ee5564b01553b9bec06867be894821b28ccfa7f4ed8222086800
|
|
| MD5 |
55172e5cce96a537480a7df4c492fbc3
|
|
| BLAKE2b-256 |
8bd3f3ab55fb80e8057bb3f42d1dd5827c7efd93afc5235e1a3560ac12450e3c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a55cc043015cc87fec4c66179df29ddb8543a58e7b3896d736ed6bd9e1d5e2dd
|
|
| MD5 |
72e91fd049fdae4578215f8aedc94d77
|
|
| BLAKE2b-256 |
a59321cf7cab084a3e422157b6f11cbd21b9d31083da10f184bf317720dd8ece
|