Add required packages to README
[rainbowstream.git] / README.rst
CommitLineData
3108149e 1Rainbow Stream\r
2--------------\r
3\r
d7fbaba9
O
4.. image:: http://img.shields.io/pypi/dm/rainbowstream.svg?style=flat\r
5 :target: https://pypi.python.org/pypi/rainbowstream\r
3216f3f4 6\r
d7fbaba9
O
7.. image:: http://img.shields.io/pypi/v/rainbowstream.svg?style=flat\r
8 :target: https://pypi.python.org/pypi/rainbowstream\r
c96321cc 9\r
3108149e 10Terminal-based Twitter Client. Realtime tweetstream, compose, search ,\r
11favorite … and much more fun directly from terminal.\r
12\r
091aaddc 13This package is built on the top of `Python Twitter Tool`_ and `Twitter API`_, \r
687567eb 14can run on Python 2.7.x and 3.x .\r
091aaddc 15\r
3108149e 16\r
456019d6 17Showcase\r
b13c6a0d 18--------\r
456019d6 19\r
bd48f980 20.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/rs.gif\r
99087831 21 :alt: gif\r
997c0570 22\r
3108149e 23Install\r
24-------\r
25\r
60a59e8b
TS
26Requirements\r
27^^^^^^^^^^^^\r
28\r
29If you use Linux, you might need to install the ``python-dev`` and \r
30``libsqlite3-dev`` packages if you haven't already. For debian-based distros, \r
31these can be installed with ``sudo apt-get install python-dev libsqlite3-dev``.\r
32\r
33\r
45e6bb0d
O
34The quick way\r
35^^^^^^^^^^^^^\r
36\r
8e004f8d 37You will need Python and pip (2.7.x or 3.x).\r
3108149e 38\r
39.. code:: bash\r
40\r
fd9cd791 41 sudo pip install rainbowstream\r
8e004f8d 42 # Python 3 users: sudo pip3 install rainbowstream\r
b84845b9 43\r
b84845b9 44\r
45e6bb0d
O
45The recommended way\r
46^^^^^^^^^^^^^^^^^^^\r
47\r
48Use `virtualenv`_\r
fd9cd791
O
49\r
50.. code:: bash\r
51\r
b84845b9 52 virtualenv venv\r
45e6bb0d
O
53 # Python 3 users : use -p to specify your Python 3 localtion as below\r
54 # virtualenv -p /usr/bin/python3 venv\r
55 source venv/bin/activate\r
3108149e 56 pip install rainbowstream\r
57\r
45e6bb0d 58\r
3108149e 59Usage\r
60-----\r
61\r
62The stream\r
63^^^^^^^^^^\r
64\r
65Just type\r
66\r
67.. code:: bash\r
68\r
9f37426f 69 rainbowstream\r
3108149e 70\r
71and see your stream.\r
72\r
3216f3f4
O
73I shipped a feature which can display **tweet's images directly on terminal**.\r
74You can try it with:\r
4373c17c
O
75\r
76.. code:: bash\r
77\r
9f37426f 78 rainbowstream -iot # Or rainbowstream --image-on-term\r
4373c17c 79\r
89d0f21f
O
80You also can change the config key ``IMAGE_ON_TERM`` to ``True`` inside the app \r
81to enable above feature (see `config management`_ section).\r
82\r
3108149e 83In the first time you will be asked for authorization of Rainbow Stream\r
84app at Twitter. Just click the “Authorize access” button and paste PIN\r
3216f3f4 85number to the terminal, the rainbow will start.\r
3108149e 86\r
87The interactive mode\r
c1a3d5e5 88--------------------\r
3108149e 89\r
90While your personal stream is continued, you are also ready to tweet,\r
91search, reply, retweet… directly from console. Simply type “h” and hit\r
f5677fb1 92the Enter key to see the help.\r
3108149e 93\r
94Input is in interactive mode. It means that you can use arrow key to\r
95move up and down history, tab-autocomplete or 2 tab to view available\r
f5677fb1 96suggestion. Input history from previous run is available as well.\r
3108149e 97\r
b913cd75 98Available commands are listed in `Read The Docs`_.\r
3108149e 99\r
b913cd75 100Theme customization\r
b13c6a0d 101-------------------\r
b913cd75 102\r
06302419 103Rainbow Stream is shipped with some default themes.\r
b913cd75
O
104You can either change theme by ``theme`` command or create your favorite one.\r
105\r
547283bf 106Theme’s screenshot:\r
19d6c002 107\r
06302419
O
108- Monokai\r
109\r
547283bf
O
110.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/Monokai.png\r
111 :alt: monokai\r
19d6c002 112\r
06302419
O
113- Solarized\r
114\r
547283bf
O
115.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/Solarized.png\r
116 :alt: solarized\r
117\r
98258022
O
118- Tomorrow Night\r
119\r
120.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/TomorrowNight.png\r
121 :alt: tomorrownight\r
122\r
123- Larapaste\r
124\r
125.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/larapaste.png\r
126 :alt: larapaste\r
127\r
128\r
b913cd75 129For detaile information, see `theme usage and customization`_.\r
3108149e 130\r
050c4214 131Bug and feature requests\r
36e1924e 132------------------------\r
3108149e 133\r
b84845b9 134Found a bug or a feature request ?\r
3216f3f4 135Please `create an issue`_ or contact me at `@dtvd88`_\r
3108149e 136\r
2d341029
O
137Development\r
138-----------\r
139\r
140If you want to build a runnable version yourself, follow these simple\r
141steps\r
142\r
143- `Create your own Twitter Application`_\r
144- Get your Twitter application’s API key and secret\r
a80d4179 145- Fork this repo and clone in your system.\r
b145ada0 146- Create a file ``consumer.py`` in `rainbowstream`_ folder with\r
2d341029
O
147 following content\r
148\r
149 .. code:: python\r
150\r
151 # Consumer information\r
152 CONSUMER_KEY = 'APIKey' # Your Twitter application's API key\r
153 CONSUMER_SECRET = 'APISecret' # Your Twitter application's API secret\r
154\r
155- Use pip to install in local\r
156\r
157 .. code:: bash\r
158\r
a80d4179 159 # cd to directory which contains setup.py (cloned directory)\r
2d341029
O
160 virtualenv venv # Python3 users: use -p to specify python3\r
161 source venv/bin/activate\r
162 pip install -e .\r
a80d4179
O
163 which rainbowstream # /this-directory/venv/bin/rainbowstream\r
164 pip list | grep rainbowstream # rainbowstream (0.x.x, /this-directory)\r
165 # Remove ~/.rainbow_oauth if exists\r
2d341029
O
166 rainbowstream # local version of rainbowstream\r
167\r
168\r
050c4214 169Contributing\r
36e1924e 170------------\r
050c4214
O
171I appreciate any help and support. Feel free to `fork`_ and `create a pull request`_.\r
172You will be listed as contributor.\r
173\r
3108149e 174License\r
175-------\r
176\r
177Rainbow Stream are released under an MIT License. See LICENSE.txt for\r
178details\r
179\r
180\r
181.. _Python Twitter Tool: http://mike.verdone.ca/twitter/\r
bade45d4 182.. _Twitter API: https://dev.twitter.com/docs/api/1.1\r
3108149e 183.. _create an issue: https://github.com/DTVD/rainbowstream/issues/new\r
3216f3f4 184.. _@dtvd88: https://twitter.com/dtvd88\r
050c4214
O
185.. _fork: https://github.com/DTVD/rainbowstream/fork\r
186.. _create a pull request: https://github.com/DTVD/rainbowstream/compare/\r
670e8049 187.. _Read The Docs: http://rainbowstream.readthedocs.org/en/latest/\r
b52327dc 188.. _config guide: https://github.com/DTVD/rainbowstream/blob/master/theme.md\r
b913cd75 189.. _theme usage and customization: https://github.com/DTVD/rainbowstream/blob/master/theme.md\r
2d341029 190.. _Create your own Twitter Application: https://apps.twitter.com/app/new\r
b145ada0 191.. _rainbowstream: https://github.com/DTVD/rainbowstream/tree/master/rainbowstream\r
45e6bb0d 192.. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/\r
89d0f21f 193.. _config management: http://rainbowstream.readthedocs.org/en/latest/#the-interactive-mode\r