Tyrs a Microblogging Client based on Ncurses

November 6, 2011

Tyrs is a microblogging client, supporting Twitter and Status.net (identi.ca), it’s based on console using the NCurses module from Python. The release of the 0.5.0 version is a good excuse to introduce Tyrs.

Tyrs aims to get a good interaction with a fairly intuitive interface that can provide support ncurses. Tyrs tries also not to impose choices to the user by providing a configuration file for features, display and defaults keys. You don’t like borders, space between tweets, or colors? It’s all configurable in an INI-like file.

It’s really for the fun I started Tyrs, as I’m not a developer. I chose to start this project because I use it, as well as educational purpose. Moreover, contrary to what you should believe, I am not a big Twitter user, just a little regular user, wanting to have pleasure to write a program. The first lines are from May

The license used is GPLv3, its development is carried out on a repository on Github, the code source is also available in the pypi page. Tyrs is Free Software.

I first used other clients, GUI or CLI, but the CLI alternatives doesn’t correspond specifically to my expectations. There are mainly:

Since then, I had the opportunity to discover other microblogging clients, but generally without ncurses support. According to my tastes, I through that there was a lack to find my favorite ncurses Twitter client, and so, fit my console application collection that I use every days.

Here a screenshot (full screen view) to visualize what we are talking about, it isn’t my timeline, but someone’s public timeline.

![Screenshot of Tyrs] (http://pix.toile-libre.org/upload/img/1320604662.png)

Let’s go a little deeper into of Tyrs with an overview of the main features.

The Timelines are navigable with the arrow keys or with ‘j’ and ‘k’. We could be compared to buffers of a ncurses IRC client.

This way of separate timelines is quite close to what can be seen in the microblogging classic clients with a graphical interface. It’s probably a reason why the interface is intuitive even if it’s a console application.

As we can display only one timeline, the indicator of activity indicates whether new notices have appeared in other timelines, this detail avoids having to navigate between timelines only to check for new incomings. A counter can also quantify the activity. This place can also view the timeline currently selected. Location is at the top right.

The number of keys shortcut can be confusing at first, the most common is displayed at the bottom of the screen, that can be switched off, and a help screen is available by pressing ‘h’.

As mentioned in the introduction, the main idea is to leave the choice up to the user, and most behavior is customizable through a configuration file, that is also generated at startup to ease your first customization.

Tyrs has been translated into French and Spanish, so this may seem anecdotal, but it isn’t for me because is a real example of what I like in free software, opportunities for contributions and exchange of humans from all horizons, not speaking a word of Spanish, but it’s indeed a contribution straight from Venezuela, which is given to Tyrs. Other aids to correct my poor English thanks to jasonwryan from Arch Linux, or proposals for patches and bug reports and the packaging for distribution, including Frugalware. Contributions and help which are always appreciated, especially because it’s a small project.

If I am passionate about programming, I also have another focus is to keep a blog. I mention here is not to make an advertisement, but because I think the topics about Tyrs(unfortunately in French) are indicative of the state of mind in which I came to write Tyrs, Speaking of this little program is the first time early in its design, while the feature was only able to read his instructions without being able to to send. There are some form of narrative developments and problems sometimes encountered in darkness, discovering ncurses for Python.

For installation, more details are on the documentation page, a package is available for Arch Linux and Frugalware, in the case of Arch Linux, you simply do:

yaourt -S tyrs

Tyrs are mainly tested with Python 2.7, I’m not sure of the result obtained with earlier versions of Python. However if you have this version of Python and python-pip installed you can do:

pip install tyrs

Tyrs is not perfect, far from it, as seen above, support for Python prior to 2.7 is not really tested. Another black, is editing a record, I’m really not satisfied with the system before, I think I would see to rewrite that part in-depth, something I wanted to do for a long time, but always rejected. Certainly other bugs, depending of the moon and distribution of butterflies.

I opened a thread on the Arch Linux Forum.

Free Software often come with no warranty but I did my best not to introduce bugs. I’m interested in all returns, regardless of the form, comments, bug reports, patches. Most important thing is I really enjoyed write Tyrs.

Some usefull links to learn more about Tyrs:

Tweet

Related-ish Posts

About

I'm Nicolas Paris, aka Nic0, I like to share about programming and Linux tricks. Follow me on Twitter, where the content is pretty much like here, mainly programming stuff. Or visite my website