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