CLI for Stratis Project
A CLI for the Stratis Project.
Introduction
stratis-cli is a tool that provides a command-line interface (CLI) for interacting with the Stratis daemon, stratisd. stratis-cli interacts with stratisd via D-Bus. It is written in Python 3.
stratis-cli is stateless and contains a minimum of storage-related logic. Its code mainly consists of parsing arguments from the command line, calling methods that are part of the Stratis D-Bus API, and then processing and displaying the results.
Installing
You can install stratis-cli using your distribution’s package manager.
You can install stratis-cli from PyPI or from the stratis-cli project repo using pip.
stratis-cli in-development releases are available for Fedora via Copr at the packit/stratis-storage-stratis-cli-master-copr_commit Copr repo.
Running
Running requires invoking the stratis command, as:
> stratis --help
or:
> stratis --version
Most stratis commands will fail unless you are also running the Stratis daemon and have root permissions.
Testing
Various testing modalities are used to verify various properties of stratis. Please consult the README file in the tests subdirectory for further information.
The project has, and will continue to maintain, 100% code coverage.
Internal Software Architecture
stratis is implemented in two parts:
The parser package handles configuring the command line parser, which uses the Python argparse package.
The actions package receives valid commands from the parser package and executes them, invoking the D-Bus API as needed. The parser passes command-line arguments given by the user to methods in the actions package using a Namespace object.
Python Coding Style
stratis conforms to PEP-8 style guidelines as enforced by the black formatting tool.
Metadata
Release files for stratis-cli 3.9.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 |
|---|---|---|---|---|
| stratis_cli-3.9.2.tar.gz | 56.8 kB | Without provenance | Details for stratis_cli-3.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stratis_cli-3.9.2-py3-none-any.whl | Python 3 | none | any | Details for stratis_cli-3.9.2-py3-none-any.whl |
Total release size: 139.5 kB
Release files / stratis_cli-3.9.2.tar.gz
| Download URL | stratis_cli-3.9.2.tar.gz |
|---|---|
| Size | 56.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70122a8f65a47db5246afd6da00dbc9af34781cb05b429fa0acf8d9aeafdd3f8
|
|
BLAKE2b-256 checksum How to use checksums |
323868a20872c83270eb12ec470ebb5e90cb3c6b3eae05411b5ca8e3ad00f0dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / stratis_cli-3.9.2-py3-none-any.whl
| Download URL | stratis_cli-3.9.2-py3-none-any.whl |
|---|---|
| Size | 82.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44d3e4a7c7c2e317307970809cea6cdd4b4c7bd1ca33fcb01be9a25e605cb8ae
|
|
BLAKE2b-256 checksum How to use checksums |
2b483b9f131fc6c9eea64fbd7144014255c04bdfe8da9b2e0e0946ed75be1d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Security for stratis-cli 3.9.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.