Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(9.1 kB) Copy SHA256 Hash SHA256
py2 Wheel Dec 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting