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 hashes)

Uploaded Source

Built Distribution

pop_except-0.1.0-py3-none-any.whl (9.2 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