Skip to main content

Taxi is a Zebra frontend

Project description

What is taxi ?

Taxi is a new interface for Zebra, based on TKS. Its main advantages are :

  • Easy to install

  • Written in Python (yes, that’s an advantage !)

  • Quite extensible

  • More complete

Basically, Taxi allows you to do the following :

  • Parse timesheets and have a summary for each day

  • Create new timesheets

  • Search for projects and their activities

  • Record time spent on an activity

Installation

The main prerequesite for Taxi to work is to have python installed, you don’t need anything else. Taxi has been tested on Python 2.6.6 and I don’t know if it works on other versions, so feedback is welcome.

The easiest way to install taxi is by using pip. This will fetch the latest stable version and install it on your system (this can also be used to upgrade an existing taxi install)

sudo pip install -U taxi

That’s it! You can now skip to the Configuration section.

If you don’t have pip, you should be able to install it with easy_install

sudo easy_install pip

Installing without pip

Fetch the source, extract it, and run the following command

sudo python setup.py install

Configuration

If you already have a working ~/.tksrc file (because you were using tks before), you’re done and you can start using Taxi by typing taxi. Otherwise you’ll have to copy the doc/tksrc.sample file to ~/.tksrc and adapt it with your username/password.

That’s it, you’re ready to go!

What’s next?

The next step will be to search for projects you’re working on and add them to your ~/.tksrc file (it already contains a set of commonly used projects). First of all you’ll have to build the local projects database with the update command (you’ll only have to run this from time to time, run it if you don’t find a project you’re looking for with the search command):

taxi update

Then, use the search command like so:

taxi search project_name

This will give you the project id. Then you can see the activities attached to this project with the show command like so:

taxi show project_id

Then just add the activities you’re interested in with a meaningful name to your .tksrc file.

Another way to easily add an activity to your .tksrc file is the add command. Basically, the add command is an improved version of the search which will ask you for an alias and add it to your .tksrc file.

Now you can start writing your hours with the following command:

taxi edit

… or you can simply open your entries file manually (and perhaps create it if it doesn’t exist yet), without using taxi at all. Have a look at the zebra.sample file for an example. Also if the edit command doesn’t open your preferred editor, check your EDITOR environment variable.

Then when you have finished noting your hours, use the status (shortcut stat) to check what you’re about to commit:

taxi stat

Now, if you’re satisfied with this, commit your hours to the server with the commit command (shortcut ci):

taxi ci

Entries file syntax

The syntax of the entries file is the following:

date_line
activity_alias time description
activity_alias time description
...

date_line is a date in one of the following formats:

  • dd/mm/yyyy

  • dd/mm/yy

  • yyyy/mm/dd

activity_alias is the alias to the activity that you put in your .tksrc file. If it ends with a question mark, the entry will be ignored (ie. not pushed).

time is the duration of the activity in one of the following format:

  • h (duration in hours, eg. 0.75, 1.5, etc)

  • hh:mm-hh:mm

  • hh:mm-? (will make the entry to be ignored)

  • -hh:mm (will use the previous line as start time)

  • hh:mm can also be replaced by hhmm

description is the description of the entry.

Start/stop usage

You can use the start and stop commands to let taxi edit your entries file for you. For example, suppose you’re going to start a meeting:

taxi start liip_meeting

This will create an entry in your entries file with the current time and an undefined end time. Now do your meeting, and when it’s finished, just type:

taxi stop "Discussed about some great stuff"

And taxi will add the end time, rounded to 15 minutes, and the description to the previously created entry.

Getting help

Run taxi without any argument to get an overview of available commands and options. You can also use the help command followed by the name of a command to get detailed help on any command.

Running tests

To run the tests, just run the following command:

./setup.py test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taxi-3.2.0.tar.gz (28.3 kB view details)

Uploaded Source

File details

Details for the file taxi-3.2.0.tar.gz.

File metadata

  • Download URL: taxi-3.2.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for taxi-3.2.0.tar.gz
Algorithm Hash digest
SHA256 0aa829c0a5222ae76c2819997411f8174a7c3808d8e05a42de7e27a8ace878be
MD5 38d528813a80e7e5ae4d3ae93f143a00
BLAKE2b-256 8806aa3904b2f46b2b99f483f01e67b9f9d8ec99d86138c18f0db00948f8ec85

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page