cd rainbowstream
virtualenv venv # Assume that you have virtualenv installed by "pip install virtualenv"
source venv/bin/activate
-pip install -r requirements.txt
pip install -e .
```
**The quick way:**
* Install everything over the air
```bash
-sudo pip install -r https://raw.githubusercontent.com/DTVD/rainbowstream/master/requirements.txt
sudo pip install git+https://github.com/DTVD/rainbowstream.git
```
**Note the I only support Python version 2.7+**
-# This is PTT App info
+# This is RainbowStream App info
CONSUMER_KEY = 'Xk1DGhR1FJa4xjg7GbdogzLJw'
CONSUMER_SECRET = 'SpHtDmbSGCSm55AAlIeb2PsD3kGEzxyo1325rJgrND5abeOh2T'
from twitter.oauth import OAuth, read_token_file
from twitter.oauth_dance import oauth_dance
from twitter.util import printNicely
-from twitter.ansi import *
from dateutil import parser
from colors import *
return parser.parse_args()
-def main():
+def stream():
args = parse_arguments()
# The Logo
printNicely(line2)
printNicely(line3)
printNicely(line4)
-
-if __name__ == '__main__':
- main()
colorama==0.3.1
pyfiglet==0.6.1
-pyglet==1.1.4
python-dateutil==2.2
six==1.6.1
termcolor==1.1.0
twitter==1.14.3
-wsgiref==0.1.2
version = '0.0.1'
install_requires = [
- # -*- Extra requirements: -*-
+ "colorama",
+ "pyfiglet",
+ "python-dateutil",
+ "termcolor",
+ "twitter"
]
setup(name='rainbowstream',
version=version,
description="A rainbow streaming console for Twitter (twitter.com)",
long_description=open("./README.md", "r").read(),
- # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
entry_points="""
# -*- Entry points: -*-
[console_scripts]
- rainbowstream=rainbowstream.rainbow:main
+ rainbowstream=rainbowstream.rainbow:stream
""",
)