Skip to content

Commit 4fd279a

Browse files
v1.0 - final commit
1 parent 57a3795 commit 4fd279a

File tree

5 files changed

+84
-28
lines changed

5 files changed

+84
-28
lines changed

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
pyoverflow-cli
2-
a.out
3-
pyoverflow.tar.gz
4-
~
5-
quickoverflow
1+
2+
bin

README.md

Lines changed: 61 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,68 @@
11
# QuickOverflow
2+
![C](https://img.shields.io/badge/c-%2300599C.svg?style=for-the-badge&logo=c&logoColor=white)
3+
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)
4+
![Bash Script](https://img.shields.io/badge/bash_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)
5+
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)
6+
27
A Command Line Tool for Unix Based Operating Systems to instantly open Stack Overflow Solution for corresponding error
38

9+
Currently only on Ubuntu/Debian Based Systems
10+
11+
Tired of googling all the time by copy pasting errors and getting incorrect solutions from LLMs?
12+
13+
QuickOverflow has a solution for that.
14+
15+
QuickOverflow is a Command Line Tool for Ubuntu/Debian based systems to quickly get to solutions for your errors on browser right from your terminal, without ever clicking on your browser icon.
16+
17+
As of v1.0, QuickOverflow only supports Python debugging. However, support for other language and distributions is planned and underway.
18+
19+
## Getting Started
20+
21+
To get started you must have:
22+
23+
- A supported Ubuntu/Debian System
24+
- Python 3.12
25+
26+
## Installation
27+
28+
- Clone the repository
29+
30+
```sh
31+
$ git clone https://github.com/SpaciousCoder78/QuickOverflow.git
32+
```
33+
34+
- Run the install script on your Ubuntu/Debian System
35+
36+
```sh
37+
sudo sh install.sh
38+
```
39+
40+
- Run the run script to start using QuickOverflow
41+
42+
```sh
43+
sh run.sh
44+
```
45+
46+
## User Manual
47+
48+
Got stuck? Not sure how to use the software? This guide is for you
49+
50+
Supported Programming Languages:
51+
52+
- Python
53+
54+
Run the `run.sh` file post installation to use the software.
55+
56+
You will see this once you run it
57+
58+
```sh
59+
60+
$ sh run.sh
61+
QuickOverflow >
462

63+
```
64+
Type `help` to get a list of supported commands
565

6-
gcc -Wall -I/usr/include/python3.12 main.c -lpython3.12 -o pyoverflow-cli
66+
Type `search` to start searching for errors from your code
767

8-
#Install Pyenv
9-
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
10-
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
11-
export PATH=~/.pyenv/bin:/usr/local/hadoop/bin/:$PATH
12-
echo 'export PYENV_ROOT="~/.pyenv"' >> ~/.bash_profile
13-
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
14-
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
1568

16-
#Install Python
17-
pyenv install 2.7.18
18-
pyenv virtualenv 2.7.18 pyoverflow

install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
#Run on Debian/Ubuntu Based Systems
4+
5+
sudo apt install python3.12
6+
7+
pip3 install -r requirements.txt --break-system-packages
8+
9+
mkdir -p bin
10+
gcc -I/usr/include/python3.12 main.c -lpython3.12 -o bin/QuickOverflow
11+
12+
13+
14+

run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
./bin/QuickOverflow

search.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
#!/usr/bin/env python
22

33
from pyoverflow3.pyoverflow3 import pyoverflow3
4+
5+
error = input("Input the Python error here: ")
46

5-
a = input("Enter first number")
6-
7-
b = input("Enter second number")
8-
9-
10-
try:
11-
div = a/b
12-
print(div)
13-
14-
except Exception as e:
15-
#Error message and number of solutions
16-
pyoverflow3.submit_error(str(e),2)
7+
8+
pyoverflow3.submit_error(str(error),2)
179

1810
#Wait for the magic :)

0 commit comments

Comments
 (0)