Skip to main content

(pre-release) PagerDuty Public Support Scripts CLI App

Project description

CircleCI

Automatic Dev Docs

Installation & Use (note: Pre-Release)

PyPi Index Link

Install:

pip install pdsupp_cli

Use:

pspdbeta --help

Goal:

1 - User Accessibility

Move the hard work represented in PagerDuty Public Support Scripts to an accessible, user-friendly, but low-maintenance CLI framework.

Offer basic help, parsing, and a pip install ... option for users.

2 - Developer Confidence

Add unit and integration tests to the varous script conversions to make extension and maintenance feel (and be) safer!

3 - Developer Acessibility

Add developer documentation (alongside auto-doc publication and in-IDE registration) to the scripts to make maintenance and extension (and inspiration) more fun and efficient!

4 - Shared Learning

Offer a learning project to share with anyone who wants to work with CLI apps, small-scale automated CI/CD processes, and modern Python idioms.

General Repo characteristics:

Python Skeleton Repo

This repo is derived from an in-progress Python+Poetry Skeleton. All code there is functional. However some knowledge of what variables to populate is still required.

Supported Virtual Environoment, Dependency, and Publication Mgmgt Environment:

This repo is designed for use with the Poetry environment. The code it runs assumes that .venv's are local. Set with:

poetry config virtualenvs.in-project true

Check with:

poetry config --list

The repo also uses pre-commit hooks (download separately, as .git/ is not automatically synched) that auto-populate a requirements.txt & requirements-dev.txt so Poetry is NOT required for building and exploration. (However the CI/CD scripts will use the Poetry system.)

Dev-Dependencies Specified

  • formatting: isort & black
  • linting: pylint
  • lsp & typechecking: pyright
  • testing: pytest + coverage (via pytest-cov)
  • auto-documentation: pdoc (not "pdoc3", which should be strongly avoided)

Run Pre-Commit Hook Manually

from anywhere in project:

git hook run pre-commit

Note:

Due to runner environment caching in GitHub Workflow environment renaming needs to be accompanied by explicit cache deletion. And possible other maintenance.

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

pdsupp_cli-0.1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

pdsupp_cli-0.1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page