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

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_url = "<sso url>"
sso_realm = "<sso realm>"
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.5.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

timedctl-5.5.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timedctl-5.5.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-1015-azure

File hashes

Hashes for timedctl-5.5.0.tar.gz
Algorithm Hash digest
SHA256 f6171f60d7248411f9256631ccbb33345e7de8cda4b1c4d15aa78d21f677ca5e
MD5 dfe1b640e8d9d03205651c2f557165b1
BLAKE2b-256 7778fe694624739aebbc45b4eef28b8cfff978ad4e9cb024f3e5ef8482f7080d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: timedctl-5.5.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-1015-azure

File hashes

Hashes for timedctl-5.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cfebd758e3c9c969ab199445933a820f64cdc4ad38cd779905efefdb47ef9c0
MD5 d7d9b9d0899164760841079b3629b941
BLAKE2b-256 0be6dfc728cc3af6227d8b20d4bd3159cef3ce9f7118aae7c28c4f5ca530eb42

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