bindit
Takes the drudgery out of binding volumes on Docker and (soon) Singularity
bindit is a wrapper for container runners that makes it easy to handle file input and output for containerised command-line applications. It works by detecting file paths in the container image arguments, and rebasing these as necessary onto new bind mounts. See docs for full detail, but here is the high-level API:
Usage: bindit [OPTIONS] COMMAND [ARGS]...
bindit is a wrapper for container runners that makes it easy to handle
file input and output for containerized command-line applications. It
works by detecting file paths in the container image arguments, and
rebasing these as necessary onto new bind mounts.
Options:
-i, --ignorepath PATH path(s) on the host to ignore when detecting new bind
mounts. Typical linux binary locations
(/usr/bin etc) are included on this list by default.
-a, --absonly Only rebase absolute paths.
-d, --dryrun Return formatted shell command without invoking
container runner
-l, --loglevel TEXT Logging level [default: INFO]
--help Show this message and exit.
Commands:
docker
Usage: bindit_partial [OPTIONS] SCRIPT_ARG...
bindit_partial constructs a shell script wrapper for bindit (or your
container runner directly) that can be used as a command line interface
for the container. It works a bit like functools.partial in the standard
library - you can offload some default parameters (e.g. for volume binds
mounts) to the script in order to obtain a cleaner API for the container.
For main documentation, see bindit.
Options:
--output_file TEXT Output to file instead of standard out
--shebang TEXT Shell interpreter directive [default: #!/bin/bash]
--vararg_pattern TEXT vararg pattern (try "$argv" for csh/tcsh) [default:
"$@"]
--help Show this message and exit. Usage: bindit_partial [OPTIONS] SCRIPT_ARG...
Free software: MIT license
Documentation: https://bindit.readthedocs.io
Pull requests are welcome!
History
0.2.2 (2019-07-26)
Patch –version argument for standalone installs.
0.2.1 (2019-07-26)
Handle missing docker binary more gracefully to support e.g. dryrun mode on machines without docker installed (and eventually, singularity).
0.2.0 (2019-07-25)
New bindit_partial utility for generating command-line wrapper scripts
Tests improved, bugs squashed (0.1.0 was easy to break, this release is much more robust
Comprehensive documentation with reasonable docstrings
0.1.0 (2019-04-30)
First release on PyPI.
Metadata
Release files for bindit 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bindit-0.2.2.tar.gz | 23.1 kB | Without provenance | Details for bindit-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bindit-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for bindit-0.2.2-py2.py3-none-any.whl |
Total release size: 35.9 kB
Release files / bindit-0.2.2.tar.gz
| Download URL | bindit-0.2.2.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55b9d5b01d80653f4a14b7003887c52e1644bccf5386c3bf57e508b823a76320
|
|
BLAKE2b-256 checksum How to use checksums |
5ce0aa149435422e44ebc234aae18de0f9c837e8cb406207af795df5531a0e47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
|
Release files / bindit-0.2.2-py2.py3-none-any.whl
| Download URL | bindit-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2d97fa6b18b413661c522f7934eb172e0fb2b869b8d00edf60220846b5235917
|
|
BLAKE2b-256 checksum How to use checksums |
ee66333b173b6e6ceb3abe76a6e23d414307666fb131575576323a0222c3c927
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
|
Security for bindit 0.2.2
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.