Skip to main content

Cli and module to register time in the municipality of Copenhagen

Project description

tidsreg

The missing tool for registrering time in the municipality of Copenhagen.

Installation

pip install tidsreg

or

uv tool install tidsreg

Getting started

First, make sure that tidsreg is configured and log in through the browser.

tidsreg init
tidsreg login

Then add, show or clear registrations:

tidsreg show
tidsreg add <projectname> -s 9 -e 1015 -m "A comment"
tidsreg clear  # WILL DELETE YOUR REGISTRATIONS!

Bulk registrations

It is possible to register multiple items at the same time using the bulk command. Create a file with <TAB> between the time, the project, and the optional comment and pass it using the -f option.

$ cat bulkfile
830	project1	Optional comment
9	project2
1130	frokost
12
14:00	project1	Another comment
1415
$ tidsreg bulk -f bulkfile

Whis will create four registrations:

  • project1 from 8:30 to 9:00
  • project2 from 9:00 to 11:30
  • frokost from 11:30 to 12:00
  • project1 from 14:00 to 14:15

Headless login

By setting the environement variables TIDSREG_USERNAME and TIDSREG_PASSWORD, it is possible to login headlessly by adding the --headless option to the tidsreg login command.

Autocomplete

Follow this guide to setup autocomplete: https://click.palletsprojects.com/en/8.1.x/shell-completion/

TODO

  • Look into releases on github and setup a pipeline (Actions)
  • Make adding registrations wait for the list to update (expect(thelist).to_have_count(thecount) - make it optional to speed up processing when making many registrations
  • Check if a registration can be made without trying in the browser
  • Add no-trunc flag to show command after it has been prettyfied
  • Implement functionality to change date
  • Export of current registrations to bulk-file

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

tidsreg-0.5.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tidsreg-0.5.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file tidsreg-0.5.1.tar.gz.

File metadata

  • Download URL: tidsreg-0.5.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for tidsreg-0.5.1.tar.gz
Algorithm Hash digest
SHA256 4bf48dd7681fd9a047cae4b0c630151450e9936d2a785bddf34eb782079131e2
MD5 667c2eaa50cbf6d8a73a4c7ee48c2b2a
BLAKE2b-256 6648bb4e7d0685282e504d4b51f86e74f03146a357308c3952ae50d0f4e29cb3

See more details on using hashes here.

File details

Details for the file tidsreg-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: tidsreg-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for tidsreg-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa92c89c49b86856132c25ddbf6de61b6d452413f3afa8f00a704b1fa3d3053
MD5 dbf4b91de9f0dd4a6bfb0261b744a2e9
BLAKE2b-256 d98a0263bf260a7ca25fac531a172b9c6aa26edf404d1cb1f4ccd495e2355369

See more details on using hashes here.

Supported by

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