Skip to main content

Python wrapper for dtach with built-in binary management

Project description

dtachwrap

Python wrapper for dtach with built-in binary management and multi-task CLI. It packages the dtach binary in the wheel (Linux x86_64 / aarch64), so it works out of the box without compilation during installation.

Features

  • Portable: Includes pre-compiled dtach binaries (GPL compliant).
  • Easy Management: start, attach, ls, logs, stop commands.
  • Logging: Automatically captures stdout/stderr to files.
  • Recovery: Keeps tasks running even if you disconnect.

Installation

pip install dtachwrap

Or run directly with uvx:

uvx dtachwrap start my-task -- python script.py

Usage

Start a task

dtachwrap start train-exp1 -- python train.py --cfg exp1.yaml

The task runs in the background.

  • Socket: ~/.dtachwrap/sockets/train-exp1
  • Logs: ~/.dtachwrap/logs/train-exp1.out

List tasks

dtachwrap ls

Shows running tasks. Use dtachwrap ls --all to see stopped tasks.

View logs

dtachwrap logs train-exp1 -f

Attach to a task

dtachwrap attach train-exp1
  • Detach key: ^\ (Ctrl+)
  • Redraw: Ctrl+l

Stop a task

dtachwrap stop train-exp1

License

This project is licensed under MIT. The bundled dtach binary is GPL-2.0. See src/dtachwrap/_vendor/licenses/DTACH_COPYING.

Development

This project uses uv for dependency management.

  1. Setup:

    uv sync
    
  2. Run locally:

    uv run dtachwrap --help
    
  3. Build:

    uv build
    

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

dtachwrap-0.1.1.tar.gz (92.6 kB view details)

Uploaded Source

Built Distributions

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

dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (109.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (108.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

dtachwrap-0.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (109.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

dtachwrap-0.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (108.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

dtachwrap-0.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (109.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

dtachwrap-0.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (108.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

dtachwrap-0.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (109.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

dtachwrap-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (108.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

File details

Details for the file dtachwrap-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for dtachwrap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 21bd7bc31cb74a0851a0f89f613557b8e7b480a4e89afd4413c33662de565235
MD5 42b1bdfb8420b58779d7ffb720edd301
BLAKE2b-256 453eb08a6ae42e53b89f2c107546ee1562311a9ec53d974f2d42fead0ddc09b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1.tar.gz:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c05508df4cfe14ac4523d45c4985940f63f1414154d894f7170ac0d52faf0d91
MD5 685e8eddb4b8ea6247f12ebd0d334b6c
BLAKE2b-256 668412a4e8de0f32f72c141a08a12cc04c37f4b7bbeb52b71274668ba9924f19

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f69800b39bcd4ac9872e4f1a7cb9968d39e12e38116b646d8566e11f63a57d5
MD5 d7b100d33aa07831a6bec246ddaa429a
BLAKE2b-256 67759ade22777b682e3de0cd28da65bb08f8d1e9f4dbb9f49083807a88b5faa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0dba17288ff5a923609a401ffb112459edf387ff3d8b2e2c7674991357144c42
MD5 729dad1a8d27be14c7efa5bc21e094b5
BLAKE2b-256 39b5ec70904999633b109dfcdc67bbb3bfb0d194f5b11991a853b3bea1013a3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6095570561cc2daef5d66fd4e625c398ec51874d5215f5b88d5d73616555a07
MD5 251e6b48dbc11ae98851762469c0274e
BLAKE2b-256 a0895f9466710c460424388283f4f11e63e60381bf8c4f725ccf47175b15760b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83487116736b545f7eb595a26cbd4d126032478bb4e879b47fa2d9ea16cdfb6c
MD5 02c9a08656a0276e92589d5ae2225a09
BLAKE2b-256 5d68b158f2caaa0e08f0a43e1b8bfe5bb517d57b2f0672dd74cfb5a00b6d1c53

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 98ec6521f6c7d89e0fae1ecef20959ad64d5e7f11e1a50a1a15dcc1c17d43921
MD5 48d51993b16f00be39029fd3e1372673
BLAKE2b-256 c7bafb9bf72c58962ad6b280aae586975bfee8a006697ce7a36c01225bf2e1f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 141352ee80492a9198837ad8e353d26f374f8691d25a135b93eecf08b9550f18
MD5 845526222ee894b51e6fbcaf657e9bde
BLAKE2b-256 cfd132efebfdb69d669322cfd554152fe46328aeadfcacf8575cc86d43851f59

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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

File details

Details for the file dtachwrap-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dtachwrap-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c26b6e4ab455fd363b74654a65f4a141f3c4a3665ff834e49be1659c1551b228
MD5 5376eb8793912f9e2224388b1df13709
BLAKE2b-256 ebff607bed705ec40fa4bc714fee516b79788e3482114089829308a3512f7f8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dtachwrap-0.1.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on HarborYuan/dtachwrap

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