Skip to main content

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:

  1. Using defaults (from .env and git): github-protect
  2. Providing explicit arguments: github-protect --token YOUR_TOKEN --username ishandutta2007 --repo MyRepo --branch main
  3. View Help: github-protect --help

To Upload to PyPI: If you want to share this on PyPI, follow these steps:

  1. Build the package:
   pip install build
   python -m build
  1. Upload using Twine:
   pip install twine
   python -m twine upload dist/*

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_protector-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

github_protector-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for github_protector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5945a2e471c2d036a1b219ee5e765d1eb5f09013643c9f9a8fb44e46793cac37
MD5 1e09128fa2f866365acd3f0845282681
BLAKE2b-256 a4145fb8673f62c0407cbddcf655457ab5f4026dda9e3b31a77ea66bd5996414

See more details on using hashes here.

File details

Details for the file github_protector-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for github_protector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f0223d50c27f2933a12cb454408ad47f3ebb19aa425abf6bb8f2eb0f01e3531
MD5 52b2386f3c65d8f35069a51acbfa0a37
BLAKE2b-256 0dd4cc7338568807abf3686ecffc3942607f7819d2ace8cdb3d69f1f8d9a0580

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