Skip to main content

Hyperlightweight process hypervisor for single-server deployments

Project description

tenement

Hyperlightweight process hypervisor for single-server deployments.

tenement spawns and supervises processes with Unix socket communication, health checks, and automatic restarts. No Docker, no Kubernetes, no complexity—just fast, simple process management.

Installation

curl -LsSf https://tenement.dev/install.sh | sh

Or with pip/uv:

pip install tenement
# or
uv tool install tenement

Or with Cargo:

cargo install tenement

Quick Start

1. Create a config file

# tenement.toml
[process.api]
command = "./my-api"
socket = "/tmp/api-{id}.sock"
health = "/health"

[process.api.env]
DATABASE_PATH = "{data_dir}/{id}/app.db"

2. Spawn an instance

$ tenement spawn api --id user123
Spawned api:user123
Socket: /tmp/api-user123.sock

3. Manage instances

$ tenement ps
INSTANCE             SOCKET                         UPTIME     HEALTH
api:user123          /tmp/api-user123.sock          2m         healthy

$ tenement stop api:user123
Stopped api:user123

Why tenement?

Alternative Problem
Docker Heavy, slow cold starts, network overhead
systemd No on-demand spawn, no routing
K8s/Nomad Overkill for single server
Bash scripts No health checks, no supervision

tenement gives you:

  • Sub-second cold starts - Rust binaries + Unix sockets = instant
  • On-demand spawn - Processes start when first requested
  • Auto-restart - Health checks with automatic recovery
  • Zero overhead - Direct Unix socket IPC, no network layer
  • Simple config - One TOML file defines everything

Documentation

Full documentation at tenement.dev

License

Apache 2.0 - Use it however you want.

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

tenement-0.1.4.tar.gz (20.0 kB view details)

Uploaded Source

Built Distributions

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

tenement-0.1.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

tenement-0.1.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

tenement-0.1.4-py3-none-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

tenement-0.1.4-py3-none-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file tenement-0.1.4.tar.gz.

File metadata

  • Download URL: tenement-0.1.4.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tenement-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7a39d7c1a4383fa763d7fdc83adf0135dc1f04214a6d76d53b1998f52ee3771d
MD5 e213091bbc746756faf3399707dd09ee
BLAKE2b-256 32f6e17504e4ae09a238e34dade95e91f416278c6ee89a07897266b58f7b7fde

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenement-0.1.4.tar.gz:

Publisher: release.yml on russellromney/tenement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tenement-0.1.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tenement-0.1.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8742df78f72c4a90e832c4ac6706e112c376f816cd30a5b69e6534fbdaf69ad
MD5 589fdaecd9426df12f61e53b8af29e92
BLAKE2b-256 831427ffab544896d4145e6accee566b94c9f9aae0c683f5ea87d6d4bf67a9e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenement-0.1.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on russellromney/tenement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tenement-0.1.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tenement-0.1.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2af3f5549d86ba93bf151678cfa57b61609b6a025a89b601f540ebddf3540036
MD5 939b33df2e819df3d241723b2ae62829
BLAKE2b-256 34f45de497bd37246ee478770a3f58ffb617fbaae80cc4278856a6fe1f277497

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenement-0.1.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on russellromney/tenement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tenement-0.1.4-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tenement-0.1.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31a66e130944cae82ed3c1a771de5b1561edd23aa1a518c1db540f30456c123a
MD5 10de618beeeb328c0a0ca740dbf4d472
BLAKE2b-256 fd4cd34ea304786794f1d00780cc538c88867c26a7e56271b0de6e1008646929

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenement-0.1.4-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on russellromney/tenement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tenement-0.1.4-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for tenement-0.1.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1089ab892656256e1a98eddddbdbbccb1c7404cfafd5ac3ace37dc209973e0a5
MD5 0b365203f123e8471843ace56b30c86d
BLAKE2b-256 1018a1313e20c2a7668c1a3091cd8dd5c4e70cdb8d7d5e94173d4368a99bf014

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenement-0.1.4-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on russellromney/tenement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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