Skip to main content

gicd

gicd contains a Python function that provides a decorator that will automatcially create an issue on GitHub if a decorated function throws an exception. That's it!

Requirements

  • The GitHub CLI (gh)

Usage

Decorate a function with it:

from gicd import gicd

@gicd("zmarffy", "test-repo", issue_label="explosion", exception_types=[IndexError, ValueError])
def error_prone_function():
    if input("Don't type anything; just hit enter... "):
        raise ValueError("Explosions!")
    print("All good!")

Then call the function:

error_prone_function()

In the off chance that the function raises an exception, it will create an issue in the GitHub repo specified in the decorator. You can have the decorator do this with all exceptions (default behavior), or, if you specify the exception_types parameter, it will only create an issue when exceptions of those types are thrown.

This is mostly a joke package. It was my first library I ever wrote.

Metadata

Release files for gicd 4.0.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 gicd 4.0.0
File Size Uploaded Provenance Actions
gicd-4.0.0.tar.gz 3.1 kB Without provenance Details for gicd-4.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.4 kB

Release files / gicd-4.0.0.tar.gz

Download URL gicd-4.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd02d3efccd8dd3bfadf8c4de76fd54ecc715ba12ee60307ab428510914156f3
BLAKE2b-256 checksum
How to use checksums
3e08550a22145e7d7cdf3e0ee42d602a0aacdc56a339b518b9a1e3001144671a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

Release files / gicd-4.0.0-py3-none-any.whl

Download URL gicd-4.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89dfbebe58aa2a5c92c3d6e72857014690cef4c3daa0d8b1578c22f28137f7da
BLAKE2b-256 checksum
How to use checksums
4224bf67a8648117df19cc615b94997310d2202465e28dd3f8008cebda5ddbce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

Security for gicd 4.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files No provenance

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