Skip to main content

A package to search error in python code

Project description

This project is for people who new to python and cannot understand what's wrong with their code,

if your code raise an Exception, the code will automatically search for a fix on google and print a link on the terminal

Installation

pip install googlesearcherror

Usage

put this code at the top of your code

from googlesearcherror import googlesearcherror
googlesearcherror.searcherror()

Example:

Input:

from googlesearcherror import googlesearcherror
googlesearcherror.searcherror()

print(0/0)

Output:

 File "test.py", line 4, in <module>
    print(0/0)
ZeroDivisionError: division by zero

-->  https://www.google.com/search?q=python+ZeroDivisionError++division+by+zero+site:stackoverflow.com

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

googlesearcherror-0.0.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

googlesearcherror-0.0.2-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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