Skip to content

Commit 7254f08

Browse files
done
1 parent 0ef30e0 commit 7254f08

File tree

4 files changed

+186
-16
lines changed

4 files changed

+186
-16
lines changed

main.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[project]
2+
name = "pyoverflow3"
3+
version = "1.0.0"
4+
authors = [
5+
{ name="Aryan Karamtoth", email="aryankmmiv@outlook.com" },
6+
]
7+
description = "A Python3 Version of pyoverflow library used for quick debugging of errors"
8+
readme = "README.md"
9+
requires-python = ">=3.12"
10+
classifiers = [
11+
"Programming Language :: Python :: 3",
12+
"License :: OSI Approved :: MIT License",
13+
"Operating System :: OS Independent",
14+
]
15+
dependencies = [
16+
"googlesearch-python"
17+
]
18+
19+
[project.urls]
20+
Homepage = "https://github.com/SpaciousCoder78/pyoverflow3"
21+
Issues = "https://github.com/SpaciousCoder78/pyoverflow3/issues"
22+
23+
[project.license]
24+
text = "MIT License"

readthedocs.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
6+
# Required
7+
8+
version: 2
9+
10+
11+
# Set the OS, Python version and other tools you might need
12+
13+
build:
14+
15+
os: ubuntu-22.04
16+
17+
tools:
18+
19+
python: "3.12"
20+
21+
# You can also specify other tool versions:
22+
23+
# nodejs: "20"
24+
25+
# rust: "1.70"
26+
27+
# golang: "1.20"
28+
29+
30+
# Build documentation in the "docs/" directory with Sphinx
31+
32+
sphinx:
33+
34+
configuration: docs/conf.py
35+
36+
builder: "dirhtml"
37+
38+
# Fail on all warnings to avoid broken references
39+
40+
# fail_on_warning: true
41+
42+
43+
# Optionally build your docs in additional formats such as PDF and ePub
44+
45+
formats:
46+
47+
- pdf
48+
49+
- epub
50+
51+
52+
# Optional but recommended, declare the Python requirements required
53+
54+
# to build your documentation
55+
56+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html

setup.py

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Always prefer setuptools over distutils
2+
from setuptools import setup, find_packages
3+
4+
# To use a consistent encoding
5+
from codecs import open
6+
from os import path
7+
8+
# The directory containing this file
9+
HERE = path.abspath(path.dirname(__file__))
10+
11+
# Get the long description from the README file
12+
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
13+
long_description = f.read()
14+
15+
# This call to setup() does all the work
16+
setup(
17+
name="pyoverflow3",
18+
version="1.0.0",
19+
description="A Python3 Library for Quick Debugging of Errors using StackOverflow",
20+
long_description="""A Python Library for Quick Debugging of Errors using StackOverflow
21+
22+
A complete rewritten library in Python3 based on pyoverflow library which was based on Python2
23+
24+
## Supported Features
25+
- Quick Search of errors on StackOverflow for Python
26+
27+
## Planned Features
28+
Integration with other languages like:
29+
- Java
30+
- JavaScript
31+
- C
32+
- C++ and many more
33+
34+
## Installation
35+
36+
```sh
37+
$ pip install pyoverflow3
38+
```
39+
40+
## Getting Started
41+
42+
Import the package
43+
44+
```py
45+
import pyoverflow3
46+
```
47+
Create a `.py` file and include try-except block where you may expect an error and pass the error and number of solutions into `pyoverflow3.submit_error(err_msg,no_solutions)`
48+
49+
Once an error gets generated, the library gets called and it instantly shows you possible solutions for your error.
50+
51+
## Documentation
52+
53+
### Available Methods
54+
- `pyoverflow3.submit_error(err_msg,no_solution)`
55+
56+
Accepted arguments 2:
57+
err_msg: pass the error message from try-except block
58+
no_solution: pass the number of solutions you need to display
59+
60+
**Usage**:
61+
62+
```py
63+
#!/usr/bin/env python
64+
65+
import pyoverflow3
66+
67+
a = int(input("Enter first number"))
68+
69+
b = int(input("Enter second number"))
70+
71+
72+
try:
73+
div = a/b
74+
print(div)
75+
76+
except Exception as e:
77+
#Error message and number of solutions
78+
pyoverflow3.submit_error(str(e),2)
79+
80+
#Wait for the magic :)
81+
```
82+
"""
83+
84+
,
85+
long_description_content_type="text/markdown",
86+
url="https://github.com/SpaciousCoder78/pyoverflow3",
87+
author="Aryan Karamtoth",
88+
author_email="aryankmmiv@outlook.com",
89+
license="MIT",
90+
classifiers=[
91+
"License :: OSI Approved :: MIT License",
92+
"Programming Language :: Python",
93+
"Programming Language :: Python :: 3",
94+
"Programming Language :: Python :: 3.6",
95+
"Programming Language :: Python :: 3.7",
96+
"Programming Language :: Python :: 3.8",
97+
"Programming Language :: Python :: 3.9",
98+
"Programming Language :: Python :: 3.10",
99+
"Programming Language :: Python :: 3.11",
100+
"Programming Language :: Python :: 3.12",
101+
"Operating System :: OS Independent"
102+
],
103+
packages=["pramanpatram"],
104+
include_package_data=True,
105+
install_requires=["googlesearch-python"]
106+
)

0 commit comments

Comments
 (0)