containerutil

containerutil.Path provides API similar to pathlib.Path for inspecting docker container file system:
import docker
import containerutil
client = docker.from_env(version='auto')
ctnr = client.containers.get('my-container')
p = containerutil.Path(ctnr, '/foo/bar/path')
p.exists() # True if file exists (regardless of type)
p.is_file() # True if file exists and is a regular file
p.is_symlink() # True if file exists and is a symbolic link
p.is_fifo() # True if file is a named pipe (FIFO)
Installation
From PyPI using pip package manager:
pip install --upgrade containerutil
Or install the latest sources from GitHub:
pip install https://github.com/pavdmyt/containerutil/archive/master.zip
Development
Clone the repository:
git clone https://github.com/pavdmyt/containerutil.git
Install dependencies:
make install
Lint code:
make lint
Run tests:
make test
Contributing
Fork it!
Create your feature branch: git checkout -b my-new-feature
Commit your changes: git commit -m 'Add some feature'
Push to the branch: git push origin my-new-feature
Submit a pull request
Make sure tests are passing
License
MIT - Pavlo Dmytrenko
Metadata
Release files for containerutil 0.2.0
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 |
|---|---|---|---|---|
| containerutil-0.2.0.tar.gz | 5.6 kB | Without provenance | Details for containerutil-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| containerutil-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for containerutil-0.2.0-py2.py3-none-any.whl |
Total release size: 10.9 kB
Release files / containerutil-0.2.0.tar.gz
| Download URL | containerutil-0.2.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb9dcaabacc52364a5f47e30ca6d165f96b8907c38c6eaba7d915a999fd179cc
|
|
BLAKE2b-256 checksum How to use checksums |
4cde224af5b768bb542f1fe222788e06f751ebf430fd1260cdb01f4a4cdcdad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / containerutil-0.2.0-py2.py3-none-any.whl
| Download URL | containerutil-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
53070e03a830ffe488208d9d14ba74faf089eccae684cd092183103819df34af
|
|
BLAKE2b-256 checksum How to use checksums |
85411ea645bd7778c4eda321da199c696ecc0ff85923c56be5f88eea68fdf709
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for containerutil 0.2.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.