Skip to main content

Invoke scripts slowly.

Project description

tardyon

If you write custom scripts, tardyon helps you maintain and invoke them.

Usage

Example script

Save the following script as $HOME/.local/bin/tardy/all/upgrade.all

#!/bin/sh

# Escalate session once
sudo -v || exit 1

# Update and upgrade APT packages
sudo apt update && sudo apt upgrade -y

# Update Flatpak packages
flatpak update -y

You can now call tardyon upgrade all to upgrade packages across all your package managers (in this example, APT and Flatpak).

Organizing scripts

Tardyon follows a strict but simple organizing principle: tardyon foo bar will invoke the script $HOME/.local/bin/tardy/bar/foo.bar

Commands are shaped like ordinary English clauses, an imperative with a vocative. So you write tardyon clear cache rather than tardyon cache clear.

Scripts can be any executable file with a shebang, or even a compiled binary.

Show yourself

Tardyon has one special command, tardyon show yourself. This opens the folder containing your tardyon scripts.

Development environment

Initialize with uv sync. Test with uv run pytest.

Release

git tag -a 2.0.0 -m "Version 2.0.0"
uv build
uv publish  # uses tag for version number

Sharing and contributions

tardyon
https://lofidevops.neocities.org
Copyright 2023 David Seaward and contributors
SPDX-License-Identifier: AGPL-3.0-or-later

Shared under AGPL-3.0-or-later. We adhere to the Contributor Covenant 2.1, and certify origin per DCO 1.1 with a signed-off-by line. Contributions under the same terms are welcome.

Submit security and conduct issues as private tickets. Sign commits with git commit --signoff. For a software bill of materials run reuse spdx.

Colophon

Originally inspired by Ansible but with subluminal ambition.

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

tardyon-5.0.2.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

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

tardyon-5.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file tardyon-5.0.2.tar.gz.

File metadata

  • Download URL: tardyon-5.0.2.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tardyon-5.0.2.tar.gz
Algorithm Hash digest
SHA256 e24824747c1487558daae25299f02a77a2dbb6fc7165a1f6ff0c7c0a5b698d80
MD5 79cd2175be7db061d8586b4d92bf1883
BLAKE2b-256 c7cfce7058f03255d19b11c0e20ed7d06ab6445bc3ef5a16030000a836fe09ea

See more details on using hashes here.

File details

Details for the file tardyon-5.0.2-py3-none-any.whl.

File metadata

  • Download URL: tardyon-5.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tardyon-5.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f15abae7a012f8bda3c350fdabb360860aa9d5bd737fa954f84d4887374591a0
MD5 4d00862f843ef4385cce43627f992ab8
BLAKE2b-256 e7418f7b74178bddbdd9af4ebf8508cb8f2b560a85d5355194419e7966ce416b

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