Skip to main content

Raises' in your source code, all's right with the Stack Overflow

Project description

Raises Stack Overflow

Raises’ in your source code, all’s right with the Stack Overflow

Install

Please use pip to install raises

$ pip install raises

How to use?

Is easy to use raises in your daily work, to help you find out raises error’s answer on Stack Overflow, simply import raises to your code, then done!

import raises  # To the top of your source code

Example

For example, if we type in int("") to REPL, it will raise a ValueError:

>>> import raises
>>> int("")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''

You should now saw a new tab in your browser, to find out the answer on Stack Overflow!

API

  • raises.enable()

To enable the raises function

  • raises.disable()

To disable the raises function

  • raises.raiser

The core function of raises, it was the sys.excepthook replacer to handle every exceptio, and to open a new browser with tabs.

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

raises-0.2.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

raises-0.2-py2.py3-none-any.whl (2.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file raises-0.2.tar.gz.

File metadata

  • Download URL: raises-0.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for raises-0.2.tar.gz
Algorithm Hash digest
SHA256 d612a790a3453d4702f51479bf47d0630778408d410077bd72f80084e2da87b3
MD5 293678c0ef52266d5558e610b3a9505a
BLAKE2b-256 40504de421cec869d800e6f5a3e744510e458e6edaee8d45d1cae1043a28c3dc

See more details on using hashes here.

File details

Details for the file raises-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for raises-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e35c26fbc5feacbacc6048a2b89f869e60c5a721cb745d5d2e28c25fdb2481e9
MD5 8b677da9648131e9ffb9108af47a1093
BLAKE2b-256 5e36bba87100d4e85bf7aafc084df25aea39b63f20d265a92f4a0767a3926e6b

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