fix image IOError
[rainbowstream.git] / README.md
... / ...
CommitLineData
1## Rainbow Stream
2
3[![Download](http://img.shields.io/pypi/dm/rainbowstream.svg?style=flat)](https://pypi.python.org/pypi/rainbowstream)
4[![Version](http://img.shields.io/pypi/v/rainbowstream.svg?style=flat)](https://pypi.python.org/pypi/rainbowstream)
5
6Terminal-based Twitter Client.
7Realtime tweetstream, compose, search , favorite ... and much more fun directly from terminal.
8
9This package is built on top of [Python Twitter Tool](http://mike.verdone.ca/twitter/) and [Twitter API](https://dev.twitter.com/docs/api/1.1).
10
11## Showcase
12Screencast:
13https://www.youtube.com/watch?v=tykCvPMJq8s
14<br>
15
16Screenshot: (Click to see)
17![rainbowstream](https://raw.githubusercontent.com/DTVD/rainbowstream/master/screenshot/RainbowStreamAll.png)
18
19## Install
20You will need Python 2.7+ and pip.
21
22```bash
23sudo pip install rainbowstream
24```
25
26or try with a virtualenv
27```bash
28sudo pip install virtualenv # skip if you already have virtualenv
29virtualenv venv
30source venv/bin/activate # use the brand new virtualenv.
31pip install rainbowstream
32```
33
34
35## Usage
36#### The stream
37Just type
38```bash
39rainbowstream
40```
41and see your stream.
42
43I shipped a feature which can display **tweet's images directly on terminal**.
44You can try it with:
45```bash
46rainbowstream -iot # Or rainbowstream --image-on-term
47```
48
49In the first time you will be asked for authorization of Rainbow Stream app at Twitter.
50Just click the "Authorize access" button and paste PIN number to the terminal, the rainbow will start.
51
52## Interactive mode
53
54While your personal stream is continued, you are also ready to tweet, search, reply, retweet... directly from console.
55Simply type "h" and hit the Enter key to see the help.
56
57Input is in interactive mode. It means that you can use arrow key to move up and down history, tab-autocomplete or 2 tab to view available suggestion. Input history from previous run is available as well.
58
59## Available commands
60
61Available commands are listed in [ReadTheDocs documents](http://rainbowstream.readthedocs.org/en/latest/) .
62
63## Theme customization
64Rainbow Stream is shipped with some default themes.
65You can either change theme by `theme` command or create your favorite one.
66
67Theme's screenshot:
68* Monokai
69![Monokai](./screenshot/themes/Monokai.png)
70* Solarized
71![Solarized](./screenshot/themes/Solarized.png)
72* Tomorrow Night
73![Solarized](./screenshot/themes/TomorrowNight.png)
74* Larapaste
75![Solarized](./screenshot/themes/larapaste.png)
76
77For detaile information, see [theme usage and customization](https://github.com/DTVD/rainbowstream/blob/master/theme.md)
78
79## Bug and feature requests
80Found a bug or a feature request ?
81Please [create an issue](https://github.com/DTVD/rainbowstream/issues/new)
82or contact me at [@dtvd88](https://twitter.com/dtvd88)
83
84## Development
85If you want to build a runnable version yourself, follow these simple steps
86* [Create your own Twitter Application](https://apps.twitter.com/app/new)
87* Get your Twitter application's API key and secret
88* Fork this repo
89* Create a file `consumer.py` in [`rainbowstream`](https://github.com/DTVD/rainbowstream/tree/master/rainbowstream) folder with following content
90```python
91# Consumer information
92CONSUMER_KEY = 'APIKey' # Your Twitter application's API key
93CONSUMER_SECRET = 'APISecret' # Your Twitter application's API secret
94```
95* Use pip to install in local
96```bash
97# cd to directory which contains setup.py
98pip install -e .
99pip list | grep rainbowstream # confirm installed version
100rainbowstream # local version of rainbowstream
101```
102
103## Contributing
104I appreciate any help and support. Feel free to
105[fork](https://github.com/DTVD/rainbowstream/fork)
106and
107[create a pull request](https://github.com/DTVD/rainbowstream/compare/).
108You will be listed as contributor.
109
110## License
111Rainbow Stream are released under an MIT License. See LICENSE.txt for details