Giter VIP home page Giter VIP logo

te's Introduction

Toggl Entry (te)

Toggle Entry (te) is a Toggl REST API command line interface (CLI) client. This tool allows quick entries insertion from your terminal - no more tedious mouse-clicking!

For any power user, this will be probably much faster way than inserting entries with the official web/desktop/mobile version of the app. Moreover, it can nicely speed-up bulk editing via shell script edited in your favorite editor. Actually, this is how I am catching up with my timesheets ;-)

Toggl Entry screenshot

Requirements

  • Windows, macOS, Linux, or any Unix-like operating system
  • Python 3 + pip (tested with Python 3.7)
  • Toggl account + Toggl API token

You can get the Toggl API token in its web interface from Profile Settings (scroll to the bottom).

Installation

  1. Install te from PyPI (Python Package Index):

    $ pip3 install te
    
  2. Create a configuration file .te.ini in your home directory:

    $ touch ~/.te.ini
    
  3. Set permissions to your configuration file, so nobody but you can read it:

    $ chmod 0600 ~/.te.ini
    
  4. Open the configuration file:

    $ nano  ~/.te.ini
    
  5. Insert this template to the configuration file:

    [general]
    
    ; Set your timezone here
    timezone = Europe/Prague
    
    ; Set your API token here
    api_token = ...
    
  6. Adjust the timezone and api_token in the configuration file and save it.

Usage

Open your terminal application and try this command:

$ te 20-01-30 08:00 1h My first task entry

If no error message is provided and the process gracefully exits, the entry has been successfully inserted. You can check it in the Toggl web app.

You can also use this format to automatically insert the current date:

$ te - 08:00 120m My first task entry

Also, the separators can be avoided:

$ te 200130 0800 3h My first task entry

That's it for now and happy Toggl-ing!

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.