Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akshatdalton/resolve-it

Resolve-IT is a command line tool that fetches Stack Overflow results when an exception is thrown or when a query is made.
https://github.com/akshatdalton/resolve-it

command-line-tool contextmanager exception-handler exception-handling exceptions python3 stackoverflow

Last synced: about 1 month ago
JSON representation

Resolve-IT is a command line tool that fetches Stack Overflow results when an exception is thrown or when a query is made.

Awesome Lists containing this project

README

        

# Resolve-IT

Resolve-IT is a command line tool that fetches Stack Overflow results when an exception is thrown or when a query is made. Run your python file with `resolveit` and see the results.

[![GitHub Actions build status](https://github.com/akshatdalton/Resolve-IT/actions/workflows/resolveit-ci.yml/badge.svg?branch=main)](https://github.com/akshatdalton/Resolve-IT/actions/workflows/resolveit-ci.yml?query=branch%3main)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/akshatdalton/Resolve-IT/)

![resolveit](docs/resolveit.gif)

---

## How to use it?

That's pretty easy. Follow the following setup steps:

You can install this tool in either of the following ways:

```
virtualenv venv
source venv/bin/activate
pip install Resolve-IT
```

or

```
git clone https://github.com/akshatdalton/Resolve-IT.git
virtualenv venv
source venv/bin/activate
cd Resolve-IT
python3 setup.py install
```

or you can also build with Docker:

```
docker build -t resolveit .
```

Once you have run all the commands and results are fine, we are all set to run the tool:

```
(venv) $ resolveit -f
```

or if you have built with Docker then use:

```
docker run -it resolveit -f main.py
```

## Other usage

1. You can use this tool to search results for query from Stack Overflow:

```
(venv) $ resolveit -q "difference between json.dump and json.dumps"
```

2. Want to debug specific functions or part of the code? Run this package as context manager:

- As function decorator:
```python3
from resolveit import debug

@debug
def foo():
# Here goes the code ...
```

- As `with` statement:
```python3
from resolveit import ResolveIT

with ResolveIT():
# Here goes the code ...
```