Update README.rst
[rainbowstream.git] / docs / index.rst
... / ...
CommitLineData
1Rainbow Stream\r
2--------------\r
3\r
4.. image:: http://img.shields.io/pypi/dm/rainbowstream.svg?style=flat\r
5 :target: https://pypi.python.org/pypi/rainbowstream\r
6\r
7.. image:: http://img.shields.io/pypi/v/rainbowstream.svg?style=flat\r
8 :target: https://pypi.python.org/pypi/rainbowstream\r
9\r
10Terminal-based Twitter Client. Realtime tweetstream, compose, search ,\r
11favorite … and much more fun directly from terminal.\r
12\r
13This package is built on the top of `Python Twitter Tool`_ and `Twitter API`_.\r
14\r
15Install\r
16-------\r
17\r
18The quick way\r
19^^^^^^^^^^^^^\r
20\r
21You will need Python 2.7 and pip.\r
22\r
23.. code:: bash\r
24\r
25 sudo pip install rainbowstream\r
26\r
27The recommended way\r
28^^^^^^^^^^^^^^^^^^^\r
29\r
30Use `virtualenv`_\r
31\r
32.. code:: bash\r
33\r
34 virtualenv venv\r
35 # Python 3 users : use -p to specify your Python 3 localtion as below\r
36 # virtualenv -p /usr/bin/python3 venv\r
37 source venv/bin/activate\r
38 pip install rainbowstream\r
39\r
40\r
41Usage\r
42-----\r
43\r
44The stream\r
45^^^^^^^^^^\r
46\r
47Just type\r
48\r
49.. code:: bash\r
50\r
51 rainbowstream\r
52\r
53and see your stream.\r
54\r
55I shipped a feature which can display **tweet's images directly on terminal**.\r
56You can try it with:\r
57\r
58.. code:: bash\r
59\r
60 rainbowstream -iot # Or rainbowstream --image-on-term\r
61\r
62In the first time you will be asked for authorization of Rainbow Stream\r
63app at Twitter. Just click the “Authorize access” button and paste PIN\r
64number to the terminal, the rainbow will start.\r
65\r
66The interactive mode\r
67^^^^^^^^^^^^^^^^^^^^\r
68\r
69While your personal stream is continued, you are also ready to tweet,\r
70search, reply, retweet… directly from console. Simply type “h” and hit\r
71the Enter key to see the help.\r
72\r
73Input is in interactive mode. It means that you can use arrow key to\r
74move up and down history, tab-autocomplete or 2 tab to view available\r
75suggestion. Input history from previous run is available as well.\r
76\r
77Here is full list of supported command:\r
78\r
79**Explore Commands**\r
80\r
81- ``trend`` will show global trending topics. ``trend US`` will show\r
82 trends in United States while ``trend JP Tokyo`` will show trends in\r
83 Tokyo/Japan.\r
84\r
85- ``home`` will show your timeline. ``home 10`` will print exactly 10\r
86 tweets.\r
87\r
88- ``mentions`` will show mentions timeline. ``mentions 7`` will show 7\r
89 mention tweets.\r
90\r
91- ``whois @dtvd88`` will show profile of @dtvd88.\r
92\r
93- ``view @mdo`` will show @mdo ’s timeline. ``view @dmo 9`` will print\r
94 exactly 9 tweets.\r
95\r
96- ``s #noah`` will search the word *‘noah’*. Result will come back with\r
97 highlight.\r
98\r
99**Tweet Commands**\r
100\r
101- ``t the rainbow is god's promise to noah`` will tweet exactly *‘the\r
102 rainbow is god’s promise to noah’*.\r
103\r
104- ``rt 12`` will retweet the tweet with *[id=12]*. You can see id of\r
105 each tweet beside the time.\r
106\r
107- ``quote 12`` will quote the tweet with *[id=12]*. If no extra text is added,\r
108 the quote will be cancelled.\r
109\r
110- ``allrt 12 20`` will list 20 newest retweets of the tweet with *[id=12]*. If the number of retweets is not specified, 5 newest retweets will be listed instead.\r
111\r
112- ``rep 12 Really`` will reply *‘Really’* to the tweet with *[id=12]*.\r
113\r
114- ``fav 12`` will favorite the tweet with *[id=12]*.\r
115\r
116- ``ufav 12`` will unfavorite tweet with *[id=12]*.\r
117\r
118- ``del 12`` will delete tweet with *[id=12]*.\r
119\r
120- ``show image 12`` will show the image in tweet with *[id=12]* in your\r
121 OS’s image viewer.\r
122\r
123- ``open 12`` will open url in tweet with *[id=12]* in your\r
124 OS’s default browser.\r
125\r
126**Direct Messages Commands**\r
127\r
128- ``inbox`` will show inbox messages. ``inbox 7`` will show newest 7\r
129 messages.\r
130\r
131- ``sent`` will show sent messages. ``sent 7`` will show newest 7\r
132 messages.\r
133\r
134- ``mes @dtvd88 hi`` will send a ``hi`` message to @dtvd88.\r
135\r
136- ``trash 5`` will remove message with *[message\_id=5]*\r
137\r
138**Friends and followers Commands**\r
139\r
140- ``ls fl`` will list all your followers (people who are following\r
141 you).\r
142\r
143- ``ls fr`` will list all your friends (people who you are following).\r
144\r
145- ``fl @dtvd88`` will follow @dtvd88.\r
146\r
147- ``ufl @dtvd88`` will unfollow @dtvd88.\r
148\r
149- ``mute @dtvd88`` will mute @dtvd88.\r
150\r
151- ``unmute @dtvd88`` will unmute @dtvd88.\r
152\r
153- ``muting`` will list muting users.\r
154\r
155- ``block @dtvd88`` will block @dtvd88.\r
156\r
157- ``unblock @dtvd88`` will unblock @dtvd88.\r
158\r
159- ``report @dtvd88`` will report @dtvd88 as a spam account.\r
160\r
161**Switching Stream Commands**\r
162\r
163- ``switch public #AKB48`` will switch current stream to public stream\r
164 and track keyword ``AKB48``\r
165\r
166- ``switch public #AKB48 -f`` will do exactly as above but will ask you\r
167 to provide 2 list:\r
168\r
169 ``Only nicks`` decide what nicks will be include only.\r
170\r
171 ``Ignore nicks``\ decide what nicks will be exclude.\r
172\r
173- ``switch public #AKB48 -d`` will apply filter to *ONLY\_LIST* and\r
174 *IGNORE\_LIST*. You can setup 2 list above at ``config.py``\r
175\r
176- ``switch mine`` will switch current stream to personal stream. ``-f``\r
177 and ``-d`` will work as well.\r
178\r
179**Smart shell**\r
180\r
181- Put anything to terminal, the app will try to eval and display result as a python interactive shell.\r
182\r
183 + ``142857*2`` or ``101**3`` like a calculator.\r
184 + Even ``cal`` will show the calendar for current month.\r
185 + Put ``order_rainbow('anything')`` or ``random_rainbow('wahahaha')`` will make more fun :)\r
186\r
187**Screening Commands**\r
188\r
189- ``theme`` will list available themes. \r
190 \r
191 + ``theme monokai`` will apply *monokai* theme immedaitely.\r
192 + ``theme current_as_default`` will remember current theme as next time default.\r
193 \r
194- ``h`` will show the help.\r
195\r
196- ``c`` will clear the screen.\r
197\r
198- ``q`` will quit.\r
199\r
200Available commands are listed in `Read The Docs`_.\r
201\r
202Theme customization\r
203^^^^^^^^^^^^^^^^^^^\r
204\r
205Rainbow Stream is shipped with some default themes.\r
206You can either change theme by ``theme`` command or create your favorite one.\r
207\r
208Theme’s screenshot:\r
209\r
210- Monokai\r
211\r
212.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/Monokai.png\r
213 :alt: monokai\r
214\r
215- Solarized\r
216\r
217.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/Solarized.png\r
218 :alt: solarized\r
219\r
220- Tomorrow Night\r
221\r
222.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/TomorrowNight.png\r
223 :alt: tomorrownight\r
224\r
225- Larapaste\r
226\r
227.. figure:: https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/themes/larapaste.png\r
228 :alt: larapaste\r
229\r
230For detaile information, see `theme usage and customization`_.\r
231\r
232\r
233.. _Python Twitter Tool: http://mike.verdone.ca/twitter/\r
234.. _Twitter API: https://dev.twitter.com/docs/api/1.1\r
235.. _theme usage and customization: https://github.com/DTVD/rainbowstream/blob/master/theme.md\r
236.. _virtualenv: http://docs.python-guide.org/en/latest/dev/virtualenvs/\r