Skip to main content

Tiny task manager for Linux, MacOS and Unix-like systems.
Written as a single Python script.

Installation

Download the script directly (recommended):

curl https://raw.githubusercontent.com/yuriescl/tinytaskmanager/dev/tinytaskmanager.py -o tinytaskmanager
chmod +x tinytaskmanager
./tinytaskmanager

Alternative installation methods

Installing through pip

pip install tinytaskmanager
tinytaskmanager  # or python -m tinytaskmanager

Requirements:

  • python >=3.8
  • ps (usually available by default)

Features:

  • No root access required
  • Daemon-less
  • Easily start, watch, and stop tasks using very simple and direct CLI commands
  • Written as a single script built using only the Python standard library - easy to audit and run

Comparison to other popular server task managers:

  • systemctl
    • Pros
      • Sophisticated dependency management via WantedBy
      • Works well with system services
      • Usually installed by default in any modern server
      • Many advanced options, useful for fine-grained control of system services
    • Cons
      • Unit files are required every time you need to setup a simple background task
      • Difficult to work with when you're not the root user (systemctl --user is not so simple to use)
      • If not installed in the system, can be difficult to install and setup as a non-privileged user
      • Difficult for beginners and non-sysadmins
  • supervisord
    • Pros
      • Very advanced and fine-grained control of tasks, similar to systemctl
    • Cons
      • Not usually installed by default in modern servers
      • Even if installed, usually requires root access
      • Difficult for beginners and non-sysadmins
  • pm2
    • Pros
      • Modern codebase (JavaScript)
      • Can be easily installed via npm install pm2
      • Has advanced integration with Node.js programs (cluster mode, load balancing, etc)
      • Widely known and used in Node.js ecosystem
    • Cons
      • Not usually installed by default in modern servers
      • Might not work so well with non-Node.js software
      • Requires node and npm to be installed
      • Might consume more RAM than intended since it's JavaScript
      • Can be a bit difficult to setup and run simple tasks
  • docker
    • Pros
      • Quickly spin up a development/production instance given a properly configured Dockerfile
      • Container/Dockerfile can be easily shared accross a development team so everyone can test in same OS environment
      • Widely available and used across many different platforms
      • All dependencies can be installed in the container
    • Cons
      • Requires root access
      • Usually the processes run as the root user, which can lead to major security vulnerabilities
      • Very hard for beginners and non-sysadmins
      • Difficult to run simple tasks that don't need containers

tinytaskmanager (previously named ttm) was initially an attempt (after painfully having to deal with the existing options like PM2, systemctl, etc) to have a script I could easily copy to a server and manage simple tasks like a gunicorn server, or a celery worker. After a while, tinytaskmanager became a very useful tool in day-to-day deployments, so it made sense to make it public.

Examples

Running a script:

$ tinytaskmanager run ./backup-database.sh --output /backups/database.sql
$ tinytaskmanager ls
ID   NAME COMMAND                                              UPTIME PID    
1    -    ./backup-database.sh --output /backups/database.sql  2s     742537 
$ tinytaskmanager stop 1
$ tinytaskmanager rm 1

Running Django server:

$ tinytaskmanager run --name mydjangoserver python manage.py runserver
$ tinytaskmanager rm mydjangoserver
Cannot remove task while it's running.
To stop it, run:
tinytaskmanager stop mydjangoserver
$ tinytaskmanager logs mydjangoserver
$ tinytaskmanager rm mydjangoserver

Development

Environment

poetry env use python3.8
poetry install
poetry shell

Metadata

Release files for tinytaskmanager 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinytaskmanager 1.0.0
File Size Uploaded Provenance Actions
tinytaskmanager-1.0.0.tar.gz 11.8 kB Without provenance Details for tinytaskmanager-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinytaskmanager 1.0.0
File Interpreter ABI Platform Actions
tinytaskmanager-1.0.0-py3-none-any.whl Python 3 none any Details for tinytaskmanager-1.0.0-py3-none-any.whl

Total release size: 24.6 kB

Release files / tinytaskmanager-1.0.0.tar.gz

Download URL tinytaskmanager-1.0.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5b915e06688aba5efe93fc30716daf005e2b19e9cfef16025e6ff9158c2ac769
BLAKE2b-256 checksum
How to use checksums
dfc4c81bca0cbb0b6701943a2645ca1100d0e609044475de419e4bfcc853f772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / tinytaskmanager-1.0.0-py3-none-any.whl

Download URL tinytaskmanager-1.0.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4f9a4c59f406f5b47e8ebcb5c83250ef707000128e203b068f2750bb86aa5ed
BLAKE2b-256 checksum
How to use checksums
8c8f5067585fdfc61d6e677a519faff7f72acb96aaf3f3a0f8b7eea6c9ad424a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for tinytaskmanager 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page