Skip to main content

A more meaningful exception's collection for Python

Project description

# pyception [![Build Status](]( [![PyPI version](]( [![JSPDicas](](
A more meaningful exception's collection for Python.

Exceptions are important in Python. Throwing and handling it correctly avoid application stopping abruptly and make debug better.
- Simple and lightweight library.
- Collection inspired by frameworks and languages such as .NET, javasdk, ruby, php etc.

Feel free to open a pull request! (Please, use [Jeremy Mack's]( commit style.)

Simple usage:


from import PrivilegeNotHeldException

if not user.has_previlege('admin'):
raise PrivilegeNotHeldException('Not allowed.')

# instead of EnvironmentError or even Exception


import pyception.application
import pyception.configuration
import pyception.collection
import pyception.networking
import pyception.system
import pyception.text

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyception, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pyception-0.1.4-py2-none-any.whl (9.1 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page