Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mlouielu/raises-stackoverflow
Raises' in the source code, all's right with the Stack Overflow
https://github.com/mlouielu/raises-stackoverflow
python raises stackoverflow
Last synced: 3 months ago
JSON representation
Raises' in the source code, all's right with the Stack Overflow
- Host: GitHub
- URL: https://github.com/mlouielu/raises-stackoverflow
- Owner: mlouielu
- Created: 2017-07-19T09:00:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T14:59:33.000Z (over 7 years ago)
- Last Synced: 2024-10-07T04:29:36.777Z (3 months ago)
- Topics: python, raises, stackoverflow
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Raises Stack Overflow
--------------------*Raises' in your source code, all's right with the Stack Overflow*
[![asciicast](https://asciinema.org/a/DZ1kWcdhIDr1l419wH8DM7UKj.png)](https://asciinema.org/a/DZ1kWcdhIDr1l419wH8DM7UKj)
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!```python
import raises # To the top of your source code
```Example
-------For example, if we type in `int("")` to REPL, it will raise a `ValueError`:
```python
>>> import raises
>>> int("")
Traceback (most recent call last):
File "", line 1, in
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.Where is setup.py? You magically upload to PyPI without setup.py?
-----------------------------------------------------------------It is 2017, please use [flit](https://github.com/takluyver/flit)