Skip to main content

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.3

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

Source distribution (sdist)

Source distribution for stratis-cli 3.9.3
File Size Uploaded Provenance Actions
stratis_cli-3.9.3.tar.gz 61.4 kB Without provenance Details for stratis_cli-3.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stratis-cli 3.9.3
File Interpreter ABI Platform Actions
stratis_cli-3.9.3-py3-none-any.whl Python 3 none any Details for stratis_cli-3.9.3-py3-none-any.whl

Total release size: 147.9 kB

Release files / stratis_cli-3.9.3.tar.gz

Download URL stratis_cli-3.9.3.tar.gz
Size 61.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b5caed3044aed84430f2689c46e48bcde7e48f0b5b7da9bbc7cceb972ea2cc6b
BLAKE2b-256 checksum
How to use checksums
230ccfada9ea29320201e1c0894f90e7aefffc2d668371126b0a84bc53140191
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.3-py3-none-any.whl

Download URL stratis_cli-3.9.3-py3-none-any.whl
Size 86.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1af0c776d0f37512a8d2cb7a29e2ffe4e8af968f0aefaa6d25aafba44d9938f1
BLAKE2b-256 checksum
How to use checksums
7028944c03830e97ff105d54e65db6cabe8894b6595d11709667b8ac09154908
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.3

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.

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