pop-except
Contracts, subs, and environment for handling exceptions in POP.
About
This project contains app-merge components for POP. It adds a sub for exception hooks and for exceptions. This provides a predictable structure for using exceptions in POP.
What is POP?
This project is built with pop, a Python-based implementation of Plugin Oriented Programming (POP). POP seeks to bring together concepts and wisdom from the history of computing in new ways to solve modern computing problems.
For more information:
Getting Started
Prerequisites
Python 3.7+
git (if installing from source, or contributing to the project)
Installation
If wanting to use pop-except, you can do so by either installing from PyPI or from source.
Install from PyPI
pip install pop-except
Install from source
# clone repo
git clone git@gitlab.com/vmware/pop/pop-except.git
cd pop-except
# Setup venv
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
Usage
In your project’s main __init__ function extend the pop_except namespace:
def __init__(hub):
hub.pop.sub.add("pop_except")
After your code initializes hub.OPT, call pop_except’s configure function:
def __cli__(hub):
hub.pop.config.load(["my_app", "pop_except"], cli=""my_app")
Roadmap
Reference the open issues for a list of proposed features (and known issues).
Acknowledgements
Img Shields for making repository badges easy.
Metadata
Release files for pop-except 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pop-except-0.1.0.tar.gz | 8.3 kB | Without provenance | Details for pop-except-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pop_except-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pop_except-0.1.0-py3-none-any.whl |
Total release size: 17.4 kB
Release files / pop-except-0.1.0.tar.gz
| Download URL | pop-except-0.1.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cf1449e5ba7d49e498e6405217a93635e4c902f627965fe4c2e57381f303681
|
|
BLAKE2b-256 checksum How to use checksums |
5be62bb4e77fd261e33d612793417586efffa5556467b70fbfe04f770ab8d9e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
|
Release files / pop_except-0.1.0-py3-none-any.whl
| Download URL | pop_except-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72e0810fc089af6b4f9e4f2fbb8d6eb12d44a649f41a2f1e6f1f036fb2386e89
|
|
BLAKE2b-256 checksum How to use checksums |
761a87212bf664081a8f04346021330cbd0449d7937d385be7313d5ee0ba8055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
|
Security for pop-except 0.1.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.