-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
199 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
__pycache__/ | ||
*.pyc | ||
*.egg | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Jonathan Shobrook | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
recursive-include rebound * | ||
include LICENSE README.rst requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
# Rebound | ||
A command-line tool that automatically searches Stack Overflow when you get an error. | ||
Rebound automatically displays Stack Overflow search results in your terminal when you get a compiler error. Just use the `rebound` command before the file you want to execute. | ||
|
||
[![placeholder demo](https://asciinema.org/a/ADAlkK9BkqxQMkYY2wZFC3CCz)] | ||
|
||
## Installation | ||
|
||
You can install rebound with pip (homebrew coming soon): | ||
|
||
`$ pip install rebound-cli` | ||
|
||
Requires Python 2.0 or higher. OS X, Linux, and Windows are all supported. | ||
|
||
## Usage | ||
|
||
Compiling a file with rebound is as simple as doing it normally. Just run (without the brackets): | ||
|
||
`$ rebound [file_name]` | ||
|
||
This will execute the file, catch any compiler errors, and prompt you to browse related Stack Overflow questions/answers. Rebound currently supports Python and NodeJS files. Support for Ruby and Java is coming soon! | ||
|
||
## Contributing | ||
|
||
Rebound is written in Python and built on Urwid. Beautiful Soup is used to scrape Stack Overflow content and subprocess is used to catch compiler errors. | ||
|
||
To make a contribution, clone the repo and create a new branch, make your changes and then submit a pull request. If you've discovered a bug or have a feature request, create an issue and tag it respectively. | ||
|
||
## Acknowledgements | ||
|
||
Special thanks to @alichtman for providing helpful feedback. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Rebound | ||
======= | ||
|
||
Rebound automatically displays Stack Overflow search results in your | ||
terminal when you get a compiler error. Just use the ``rebound`` command | ||
before the file you want to execute. | ||
|
||
[|placeholder demo|] | ||
|
||
Installation | ||
------------ | ||
|
||
You can install rebound with pip (homebrew coming soon): | ||
|
||
``$ pip install rebound-cli`` | ||
|
||
Requires Python 2.0 or higher. OS X, Linux, and Windows are all | ||
supported. | ||
|
||
Usage | ||
----- | ||
|
||
Compiling a file with rebound is as simple as doing it normally. Just | ||
run (without the brackets): | ||
|
||
``$ rebound [file_name]`` | ||
|
||
This will execute the file, catch any compiler errors, and prompt you to | ||
browse related Stack Overflow questions/answers. Rebound currently | ||
supports Python and NodeJS files. Support for Ruby and Java is coming | ||
soon! | ||
|
||
Contributing | ||
------------ | ||
|
||
Rebound is written in Python and built on Urwid. Beautiful Soup is used | ||
to scrape Stack Overflow content and subprocess is used to catch | ||
compiler errors. | ||
|
||
To make a contribution, clone the repo and create a new branch, make | ||
your changes and then submit a pull request. If you’ve discovered a bug | ||
or have a feature request, create an issue and tag it respectively. | ||
|
||
Acknowledgements | ||
---------------- | ||
|
||
Special thanks to @alichtman for providing helpful feedback. | ||
|
||
.. |placeholder demo| image:: https://asciinema.org/a/ADAlkK9BkqxQMkYY2wZFC3CCz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import sys | ||
from rebound import main | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BeautifulSoup4 | ||
requests | ||
urllib3 | ||
urwid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
try: from setuptools import setup | ||
except ImportError: from distutils.core import setup | ||
from codecs import open | ||
import sys | ||
|
||
if sys.version_info[:3] < (2, 0, 0): | ||
sys.stdout.write("Python 1 is not supported.") | ||
sys.exit(1) | ||
|
||
with open("README.rst", encoding="utf-8") as file: | ||
readme = file.read() | ||
|
||
setup( | ||
name="rebound-cli", | ||
version="1.0a1", | ||
description="Automatically displays Stack Overflow results when you get a compiler error", | ||
long_description=readme, | ||
url="https://github.com/shobrook/rebound", | ||
author="shobrook", | ||
author_email="shobrookj@gmail.com", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Debuggers", | ||
"Natural Language :: English", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python" | ||
], | ||
keywords="stackoverflow stack overflow debug debugging error-handling compile errors error message cli", | ||
include_package_data=True, | ||
packages=["rebound"], | ||
#data_files=[("rebound", ["rebound/user_agents.txt"])], | ||
entry_points={"console_scripts": ["rebound = rebound.rebound:main"]}, | ||
install_requires=["BeautifulSoup4", "requests", "urllib3" "urwid"], | ||
requires=["BeautifulSoup4", "requests", "urllib3" "urwid"], | ||
python_requires=">=3", # NOTE: This will change | ||
license="MIT", | ||
project_urls={ | ||
"Bug Reports": "https://github.com/shobrook/rebound/issues", | ||
} | ||
) |