Skip to main content

Contracts, subs, and environment for handling exceptions in POP

Project description

Made with pop, a Python implementation of Plugin Oriented Programming Made with Python

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

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

pop-except-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

pop_except-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pop-except-0.1.0.tar.gz.

File metadata

  • Download URL: pop-except-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pop-except-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1cf1449e5ba7d49e498e6405217a93635e4c902f627965fe4c2e57381f303681
MD5 e7a06405cc44122856140941f23ad306
BLAKE2b-256 5be62bb4e77fd261e33d612793417586efffa5556467b70fbfe04f770ab8d9e4

See more details on using hashes here.

File details

Details for the file pop_except-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pop_except-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pop_except-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72e0810fc089af6b4f9e4f2fbb8d6eb12d44a649f41a2f1e6f1f036fb2386e89
MD5 db005c1617fc264b99878af7560c494a
BLAKE2b-256 761a87212bf664081a8f04346021330cbd0449d7937d385be7313d5ee0ba8055

See more details on using hashes here.

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