A CLI tool to protect GitHub branches via the Admin API
Project description
github_protector
Project Structure:
github-protector/
├── pyproject.toml # Package metadata and entry points
├── github_protector/
│ ├── __init__.py
│ └── cli.py # Main CLI logic
└── .env # Your local environment file
Installation: To install it locally in editable mode (so changes reflect immediately):
pip install -e .
Usage: Once installed, you can run it from anywhere:
- Using defaults (from .env and git):
github-protect - Providing explicit arguments:
github-protect --token YOUR_TOKEN --username ishandutta2007 --repo MyRepo --branch main - View Help:
github-protect --help
To Upload to PyPI: If you want to share this on PyPI, follow these steps:
- Build the package:
pip install build
python -m build
- Upload using Twine:
pip install twine
python -m twine upload dist/*
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 github_protector-0.1.1.tar.gz.
File metadata
- Download URL: github_protector-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5945a2e471c2d036a1b219ee5e765d1eb5f09013643c9f9a8fb44e46793cac37
|
|
| MD5 |
1e09128fa2f866365acd3f0845282681
|
|
| BLAKE2b-256 |
a4145fb8673f62c0407cbddcf655457ab5f4026dda9e3b31a77ea66bd5996414
|
File details
Details for the file github_protector-0.1.1-py3-none-any.whl.
File metadata
- Download URL: github_protector-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f0223d50c27f2933a12cb454408ad47f3ebb19aa425abf6bb8f2eb0f01e3531
|
|
| MD5 |
52b2386f3c65d8f35069a51acbfa0a37
|
|
| BLAKE2b-256 |
0dd4cc7338568807abf3686ecffc3942607f7819d2ace8cdb3d69f1f8d9a0580
|