4 .. image:: http://img.shields.io/pypi/dm/rainbowstream.svg?style=flat
\r
5 :target: https://pypi.python.org/pypi/rainbowstream
\r
7 .. image:: http://img.shields.io/pypi/v/rainbowstream.svg?style=flat
\r
8 :target: https://pypi.python.org/pypi/rainbowstream
\r
10 Terminal-based Twitter Client. Realtime tweetstream, compose, search ,
\r
11 favorite … and much more fun directly from terminal.
\r
13 This package is built on the top of `Python Twitter Tool`_ and `Twitter API`_,
\r
14 can run on Python 2.7.x and 3.x .
\r
20 .. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/rs.gif
\r
29 If you use Linux, you might need to install the ``python-dev`` and ``libsqlite3-dev`` packages if you haven't already.
\r
30 For debian-based distros, these can be installed with
\r
34 sudo apt-get install python-dev libsqlite3-dev
\r
36 Besides, Mac OSX Maverick with Xcode 5.1 has a well-known `clang unknown argument`_ problem with
\r
37 the ``Pillow`` package installation - a dependency of this app.
\r
38 If you are in this case, I recommend take a look at `Issue #10`_ and let me know if the workaround doesn't work for you.
\r
43 You will need Python and pip (2.7.x or 3.x).
\r
47 sudo pip install rainbowstream
\r
48 # Python 3 users: sudo pip3 install rainbowstream
\r
59 # Python 3 users : use -p to specify your Python 3 localtion as below
\r
60 # virtualenv -p /usr/bin/python3 venv
\r
61 source venv/bin/activate
\r
62 pip install rainbowstream
\r
77 and see your stream.
\r
79 I shipped a feature which can display **tweet's images directly on terminal**.
\r
80 You can try it with:
\r
84 rainbowstream -iot # Or rainbowstream --image-on-term
\r
86 You also can change the config key ``IMAGE_ON_TERM`` to ``True`` inside the app
\r
87 to enable above feature (see `config management`_ section).
\r
89 In the first time you will be asked for authorization of Rainbow Stream
\r
90 app at Twitter. Just click the “Authorize access” button and paste PIN
\r
91 number to the terminal, the rainbow will start.
\r
93 The interactive mode
\r
94 ^^^^^^^^^^^^^^^^^^^^
\r
96 While your personal stream is continued, you are also ready to tweet,
\r
97 search, reply, retweet… directly from console. Simply type “h” and hit
\r
98 the Enter key to see the help.
\r
100 Input is in interactive mode. It means that you can use arrow key to
\r
101 move up and down history, tab-autocomplete or 2 tab to view available
\r
102 suggestion. Input history from previous run is available as well.
\r
104 Available commands are listed in `Read The Docs`_.
\r
106 Theme customization
\r
107 ^^^^^^^^^^^^^^^^^^^
\r
109 Rainbow Stream is shipped with some default themes.
\r
110 You can either change theme by ``theme`` command or create your favorite one.
\r
112 Theme’s screenshot:
\r
116 .. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/Monokai.png
\r
121 .. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/Solarized.png
\r
126 .. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/TomorrowNight.png
\r
127 :alt: tomorrownight
\r
131 .. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/larapaste.png
\r
134 For detaile information, see `theme usage and customization`_.
\r
137 Bug and feature requests
\r
138 ------------------------
\r
140 Found a bug or a feature request ?
\r
141 Please `create an issue`_ or contact me at `@dtvd88`_
\r
146 If you want to build a runnable version yourself, follow these simple
\r
149 - `Create your own Twitter Application`_
\r
150 - Get your Twitter application’s API key and secret
\r
151 - Fork this repo and clone in your system.
\r
152 - Create a file ``consumer.py`` in `rainbowstream`_ folder with
\r
157 # Consumer information
\r
158 CONSUMER_KEY = 'APIKey' # Your Twitter application's API key
\r
159 CONSUMER_SECRET = 'APISecret' # Your Twitter application's API secret
\r
161 - Use pip to install in local
\r
165 # cd to directory which contains setup.py (cloned directory)
\r
166 virtualenv venv # Python3 users: use -p to specify python3
\r
167 source venv/bin/activate
\r
169 which rainbowstream # /this-directory/venv/bin/rainbowstream
\r
170 pip list | grep rainbowstream # rainbowstream (0.x.x, /this-directory)
\r
171 # Remove ~/.rainbow_oauth if exists
\r
172 rainbowstream # local version of rainbowstream
\r
177 I appreciate any help and support. Feel free to `fork`_ and `create a pull request`_.
\r
178 You will be listed as contributor.
\r
183 Rainbow Stream are released under an MIT License. See LICENSE.txt for
\r
187 .. _Python Twitter Tool: http://mike.verdone.ca/twitter/
\r
188 .. _Twitter API: https://dev.twitter.com/docs/api/1.1
\r
189 .. _create an issue: https://github.com/DTVD/rainbowstream/issues/new
\r
190 .. _@dtvd88: https://twitter.com/dtvd88
\r
191 .. _fork: https://github.com/DTVD/rainbowstream/fork
\r
192 .. _create a pull request: https://github.com/DTVD/rainbowstream/compare/
\r
193 .. _Read The Docs: http://rainbowstream.readthedocs.org/en/latest/
\r
194 .. _config guide: https://github.com/DTVD/rainbowstream/blob/master/theme.md
\r
195 .. _theme usage and customization: https://github.com/DTVD/rainbowstream/blob/master/theme.md
\r
196 .. _Create your own Twitter Application: https://apps.twitter.com/app/new
\r
197 .. _rainbowstream: https://github.com/DTVD/rainbowstream/tree/master/rainbowstream
\r
198 .. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/
\r
199 .. _config management: http://rainbowstream.readthedocs.org/en/latest/#the-interactive-mode
\r
200 .. _clang unknown argument: http://kaspermunck.github.io/2014/03/fixing-clang-error/
\r
201 .. _Issue #10: https://github.com/DTVD/rainbowstream/issues/10
\r