All Projects → what-the-python → wtpython

what-the-python / wtpython

Licence: MIT license
Automatically find solutions when your Python code encounters an issue.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to wtpython

Sentry Telegram
Plugin for Sentry which allows sending notification via Telegram messenger.
Stars: ✭ 168 (+31.25%)
Mutual labels:  error-monitoring
bugsnag-java
Bugsnag error reporting for Java.
Stars: ✭ 51 (-60.16%)
Mutual labels:  error-monitoring
ouch
⚓ Cool errors for PHP nerds ⚓
Stars: ✭ 23 (-82.03%)
Mutual labels:  error-monitoring
Exceptionless
Exceptionless server and jobs
Stars: ✭ 2,107 (+1546.09%)
Mutual labels:  error-monitoring
Sneaker
An easy way to send emails whenever an exception occurs on server.
Stars: ✭ 223 (+74.22%)
Mutual labels:  error-monitoring
backtrace-unity
First-class error reporting for the Unity game engine.
Stars: ✭ 99 (-22.66%)
Mutual labels:  error-monitoring
Apm Agent Rum Js
Elastic APM Real User Monitoring JavaScript agent
Stars: ✭ 166 (+29.69%)
Mutual labels:  error-monitoring
raygun4py
Python provider for Raygun
Stars: ✭ 18 (-85.94%)
Mutual labels:  error-monitoring
Raven Csharp
Superseded by: https://github.com/getsentry/sentry-dotnet
Stars: ✭ 231 (+80.47%)
Mutual labels:  error-monitoring
elmah.io
ELMAH error logger for sending errors to elmah.io.
Stars: ✭ 31 (-75.78%)
Mutual labels:  error-monitoring
Appsignal Elixir
🟪 AppSignal for Elixir package
Stars: ✭ 176 (+37.5%)
Mutual labels:  error-monitoring
Bugsnag Ruby
Bugsnag error monitoring & reporting software for rails, sinatra, rack and ruby
Stars: ✭ 211 (+64.84%)
Mutual labels:  error-monitoring
airbrake-django
A Django project for Airbrake
Stars: ✭ 29 (-77.34%)
Mutual labels:  error-monitoring
Pyrollbar
Error tracking and logging from Python to Rollbar
Stars: ✭ 169 (+32.03%)
Mutual labels:  error-monitoring
raygun4android
Android crash reporting provider for Raygun
Stars: ✭ 19 (-85.16%)
Mutual labels:  error-monitoring
Bugsnag Cocoa
Bugsnag crash reporting for iOS, macOS and tvOS apps
Stars: ✭ 167 (+30.47%)
Mutual labels:  error-monitoring
bugsnag-vue
[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 26 (-79.69%)
Mutual labels:  error-monitoring
kotlin-multiplatform-example
A Kotlin multiplatform example app that targets Android, ReactJS, iOS, JavaFx, and Spring Boot
Stars: ✭ 115 (-10.16%)
Mutual labels:  error-monitoring
app
Buggregator is a beautiful, lightweight debug server build on Laravel that helps you catch your smpt, sentry, var-dump, monolog, ray outputs. It runs without installation on multiple platforms.
Stars: ✭ 259 (+102.34%)
Mutual labels:  error-monitoring
TrackJS-Node
TrackJS Error Monitoring agent for NodeJS
Stars: ✭ 26 (-79.69%)
Mutual labels:  error-monitoring

PyPI - License PyPI - Python Version PyPI - Status PyPI PyPI - Wheel PyPI - Downloads Discord

Logo

What the Python?!

Find solutions to your Python errors without leaving your IDE or terminal!

Ever have Python throw an error traceback longer than a CVS receipt 🧾? Is it dizzying to read through a bunch of cryptic lines trying to figure out exactly what caused the error? Do you look at the traceback and go, "WHAT THE ....."?😕

What the Python (wtpython) is a simple terminal user interface that allows you to explore relevant answers on StackOverflow without leaving your terminal or IDE. When you get an error, all you have to do is swap python for wtpython. When your code hits an error, you'll see a textual interface for exploring relevant answers allowing you to stay focused and ship faster! 🚀

wtpython is styled using Rich and the interface is developed using Textual.

Like what you see? Feel free to share #wtpython on social media!

Installation

This project is hosted on PyPI, allowing you to install it with pip.

pip install wtpython

Usage

When you're coding and running your script or application, then all of a sudden, you see an error and think to yourself "what the...?"

$ python example/division_by_zero_error.py
Traceback (most recent call last):
  File "/home/cohan/github/what-the-python/wtpython/example/division_by_zero_error.py", line 1, in <module>
    1 / 0
ZeroDivisionError: division by zero

All you have to do is jump to the beginning of the line and change python to wtpython and the magic will happen.

$ wtpython example/division_by_zero_error.py
# Magic! 🎩

usage

If you want results but don't want to go into the interface, just pass the -n flag to see the Rich formatted traceback and links to the most relevant questions on StackOverflow.

no-display-usage

If you want, you can always run wtpython in place of python. wtpython is designed to allow your code to function normally and only acts when your code hits an error. wtpython will even allow you to pass arguments to your own script! If our code hits an error, please let us know.

Command Line Options

All command line options should be passed before your script and arguments passed to your script.

Flag Action
-n or --no-display Do not enter the interactive session, just print the error and give me the links!
-c or --copy-error Add the error message to your clipboard so you can look for answers yourself (it's okay, we understand).
--clear-cache wtpython will cache results of each error message for up to a day. This helps prevent you from getting throttled by the StackOverflow API.

Interface Hotkeys

Key Action
s Toggle the sidebar (questions list)
t View the traceback
, k View previous question
, j View next question
d Open question in your browser
f Search for answers on Google
q, ctrl+c Quit the interface.
i Report an issue with wtpython

Roadmap

This project is still in the early phases, but we have big plans going forward. We hope to tackle:

  • Windows support (without WSL)
  • Jupyter integration
  • More interactive interface
  • User configuration settings
  • Much much more!

Feedback / Support

If you have any feedback, please create an issue or start a discussion. There is also a Discord server which you can join with this invite.

Contributing

See CONTRIBUTING.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].