Coder Social home page Coder Social logo

glepretre / hamster-xls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geo-data/hamster-xls

1.0 3.0 0.0 7 KB

Create a .xls spreadsheet from your hamster time tracking data, with the ability to specify the date range to extract.

Python 100.00%

hamster-xls's Introduction

Hamster-xls

Overview

This is a small command line python script which creates a .xls (excel compatible) spreadsheet from the Project Hamster Time Tracking application. Because managers like spreadsheets :) It can extract data for a specified date range (defaulting to the last 30 days), and can filter the data based on simple search terms.

Synopsis

From the inbuilt help:

usage: hamster-xls [-h] [-e DATE] [-s DATE] [-o FILE] [-f FILTER]
                   [-g {day,month,year}] [-b {category,activity}] [--version]

Create a .xls spreadsheet from your hamster time tracking data, with the
ability to specify the date range to extract.

optional arguments:
  -h, --help            show this help message and exit
  -e DATE, --end-date DATE
                        the date tracking data should end at, inclusive in the
                        format YYYY-MM-DD (defaults to today)
  -s DATE, --start-date DATE
                        the date tracking data should start from, inclusive in
                        the format YYYY-MM-DD (defaults to 30 days before the
                        end date)
  -o FILE, --output FILE
                        the .xls spreadsheet file to create (defaults to
                        `./hamster-timesheet.xls`)
  -f FILTER, --filter FILTER
                        limit the data based on search terms. Comma (",")
                        translates to boolean OR and space (" ") to boolean
                        AND.
  -g {day,month,year}, --group {day,month,year}
                        group the tasks by day, month or year
  -b {category,activity}, --group-by {category,activity}
                        choose the category to group by (defaults to
                        activity). Only useful in conjunction with `--group`
  --version             show program's version number and exit

Requirements

  • Python > 2.5 < 3
  • Hamster to be installed and running, as the application connects to the hamster service using D-Bus.
  • The xlwt python module for generating the spreadsheets.

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.