Skip to main content

Remork

Accelerator for testinfra. Remork allows to greatly speedup testinfra operations by exploiting single ssh or docker connection.

It provides own extensions to upload files, change files on remote host and other configuration management tasks.

Installation

pip install remork

Usage

Import remork.testinfra somewhere in conftest.py:

import remork.testinfra

After that you can use hostspecs like remork+ssh://host or remork+docker://container.

Additionally you can override default backends using remork.testinfra.init call:

import remork.testinfra
remork.testinfra.init('ssh docker')

It allows to use unmodified ssh:// and docker:// hostspecs.

Custom python interpreter path

Remork relies on availability of python executable (any python >= 2.6 would work). But recent RHEL based distros come without system wide python and provide platform python only (/usr/libexec/platform-python).

You can pass remork_python param with hostspec: remork+ssh://host?remork_python=/usr/libexec/platform-python).

Or pass additional options into get_host: testinfra.get_host(spec, remork_python='/usr/libexec/platform-python')

TODO

  • Inventory.

  • File change transactions as a sane way to apply set of configuration changes, validate configuration as a whole (like complex nginx config with multiple templates) and revert all files back if anything goes wrong.

  • Ansible vault compatible encryption/decryption.

  • Roles and ability to target roles from CLI runner.

  • Ansible module to call remork files.

  • Use remork router with paramiko backend.

Metadata

Release files for remork 0.8

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

Source distribution (sdist)

Source distribution for remork 0.8
File Size Uploaded
remork-0.8.tar.gz 12.2 kB Details

Release files / remork-0.8.tar.gz

Download URL remork-0.8.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6b6b036788a61f05aa5372a0a022913a55e9dea524c22c6a9be56a02f771137e
BLAKE2b-256 checksum
How to use checksums
8e28c8e2a5c277c885ee6ec3f020fc0cd2bb18b54af108a59f30532a6af36c29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.8 This release

1 release file

0.7

1 release file

0.6

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

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