Skip to main content

CLI for timed

Project description

timedctl

License: AGPL v3

Click TUI for Timed using libtimed.

Installing

There are currently only packages for arch linux available in the AUR.

$ yay -S timedctl

People on other distributions can use pip to install the package from pypi:

$ pip install timedctl

Nix / NixOS people can just run the flake:

nix run github:adfinis/timedctl

Shell completion

timedctl support shell completion for the unaliased commands:

bash

_TIMEDCTL_COMPLETE=bash_source timedctl >> ~/.bashrc

zsh

_TIMEDCTL_COMPLETE=zsh_source timedctl >> ~/.zshrc

fish

_TIMEDCTL_COMPLETE=fish_source timedctl >  ~/.config/fish/completions/timedctl.fish

Local development

Clone the repository and install the dependencies with poetry install. You can now run the project with poetry run timedctl. For building wheels, you can use poetry build. Run tests with poetry run pytest --cov --cov-fail-under 100.

Known issues

  • Make sure to have a polkit-agent running, otherwise the poetry installation during the installation on arch might fail.
  • You need a keyring installed in order for timedctl to store the SSO token, for example gnome-keyring.

Feature roadmap

  • SSO auth
  • Overtime
  • Reports
    • Get
    • Add
    • Delete
    • Update
  • Activities
    • Start
    • Stop
    • Delete
    • Restart
  • Absences
    • Get
    • Add
    • Delete
    • Update
  • Holidays
    • Get
    • Add
    • Delete
    • Update

Configuration

Your config file should already be created on the first launch under $XDG_CONFIG_HOME/timedctl/config.toml. If this isn't the case you can see the default config options below:

username = "<your username>"
timed_url = "<timed url>"
sso_discovery_url = "<sso url>"
sso_client_id = "<client id>"

License

Code released under the GNU Affero General Public License v3.0.

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

timedctl-5.10.2.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

timedctl-5.10.2-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file timedctl-5.10.2.tar.gz.

File metadata

  • Download URL: timedctl-5.10.2.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1015-azure

File hashes

Hashes for timedctl-5.10.2.tar.gz
Algorithm Hash digest
SHA256 6b05067774afa4eccf3b0993153de061e73385ab70c31d27bd3d4223ff332e3b
MD5 1d49d6f9ca7220e53b6870ff798e2a2f
BLAKE2b-256 ff8b2cc326062657576bfb46b61477fd330fd11e4bf16c4a8bd0895f03dcf3d9

See more details on using hashes here.

File details

Details for the file timedctl-5.10.2-py3-none-any.whl.

File metadata

  • Download URL: timedctl-5.10.2-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1015-azure

File hashes

Hashes for timedctl-5.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b840b636cbd70c72deb3cc710118d2c79b9d9e8c4a1d3f0b5f07854d683fb400
MD5 6dad39f9d2902c91ea7d3b14ae8b9be8
BLAKE2b-256 f93f3e3c3cb5d8c302d1f84261b4d57bfa7eb699c741b2b63e23be7498a3be61

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