stratis-cli


Namestratis-cli JSON
Version 3.7.0 PyPI version JSON
download
home_pagehttps://github.com/stratis-storage/stratis-cli
SummaryStratis CLI
upload_time2024-10-08 19:08:57
maintainerNone
docs_urlNone
authorAnne Mulhern
requires_python>=3.9
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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 <https://github.com/stratis-storage/stratisd>`_. ``stratis-cli``
interacts with ``stratisd`` via
`D-Bus <https://www.freedesktop.org/wiki/Software/dbus/>`_. 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`` directly from the ``stratis-cli`` project
repo.

``stratis-cli`` has a number of dependencies that may not already be
installed. You may choose to allow the setup script to install any missing
dependencies from PyPi, or you may prefer to install the dependencies using
your distribution's package manager. All ``stratis-cli``'s direct
dependencies are listed in ``stratis-cli``'s setup.py file, in the
``install_requires`` field. If you choose to install the dependencies
using your installation's package manager, you should do so before you
run the setup.py script.

Finally, run the setup.py script as::

   > python setup.py install

Running
-------
After installing, running requires invoking the script, as::

   > stratis --help

or::

   > stratis --version

To run without installing, check out the source, change to the top
directory and set the ``PYTHONPATH`` environment variable to include
library dependencies. For example (if using bash shell)::

   > export PYTHONPATH="src:../dbus-client-gen/src:../dbus-python-client-gen/src:../into-dbus-python/src:../dbus-signature-pyparsing/src"
   > ./bin/stratis --help

Since ``stratis`` uses stratisd's API, most operations will fail
unless you are also running the `Stratis daemon <https://github.com/stratis-storage/stratisd>`_.

Testing
-------
Various testing modalities are used to verify various properties of
``stratis``.  Please consult the README files 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 <https://docs.python.org/3/library/argparse.html>`_ 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.

Tab Completion
--------------
From time to time, our external contributors have added support for
tab-completion in a variety of different shells. The files are included in the
stratis-cli GitHub release, but they are not supported by the Stratis project.
We welcome further contributions to these files and will continue to include
them for as long as they seem useful to our users.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/stratis-storage/stratis-cli",
    "name": "stratis-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Anne Mulhern",
    "author_email": "amulhern@redhat.com",
    "download_url": "https://files.pythonhosted.org/packages/ce/6c/bf1547cae298ed1673745909330fa55345615abb1c27f4568ba2bb2ae09f/stratis_cli-3.7.0.tar.gz",
    "platform": "Linux",
    "description": "CLI for Stratis Project\n=================================\n\nA CLI for the Stratis Project.\n\nIntroduction\n------------\n`stratis-cli` is a tool that provides a command-line interface (CLI)\nfor interacting with the Stratis daemon,\n`stratisd <https://github.com/stratis-storage/stratisd>`_. ``stratis-cli``\ninteracts with ``stratisd`` via\n`D-Bus <https://www.freedesktop.org/wiki/Software/dbus/>`_. It is\nwritten in Python 3.\n\n``stratis-cli`` is stateless and contains a minimum of storage-related\nlogic. Its code mainly consists of parsing arguments from the command\nline, calling methods that are part of the Stratis D-Bus API, and then\nprocessing and displaying the results.\n\nInstalling\n----------\nYou can install ``stratis-cli`` directly from the ``stratis-cli`` project\nrepo.\n\n``stratis-cli`` has a number of dependencies that may not already be\ninstalled. You may choose to allow the setup script to install any missing\ndependencies from PyPi, or you may prefer to install the dependencies using\nyour distribution's package manager. All ``stratis-cli``'s direct\ndependencies are listed in ``stratis-cli``'s setup.py file, in the\n``install_requires`` field. If you choose to install the dependencies\nusing your installation's package manager, you should do so before you\nrun the setup.py script.\n\nFinally, run the setup.py script as::\n\n   > python setup.py install\n\nRunning\n-------\nAfter installing, running requires invoking the script, as::\n\n   > stratis --help\n\nor::\n\n   > stratis --version\n\nTo run without installing, check out the source, change to the top\ndirectory and set the ``PYTHONPATH`` environment variable to include\nlibrary dependencies. For example (if using bash shell)::\n\n   > export PYTHONPATH=\"src:../dbus-client-gen/src:../dbus-python-client-gen/src:../into-dbus-python/src:../dbus-signature-pyparsing/src\"\n   > ./bin/stratis --help\n\nSince ``stratis`` uses stratisd's API, most operations will fail\nunless you are also running the `Stratis daemon <https://github.com/stratis-storage/stratisd>`_.\n\nTesting\n-------\nVarious testing modalities are used to verify various properties of\n``stratis``.  Please consult the README files in the ``tests`` subdirectory\nfor further information.\n\nThe project has, and will continue to maintain, 100% code coverage.\n\nInternal Software Architecture\n------------------------------\n``stratis`` is implemented in two parts:\n\n* The *parser* package handles configuring the command line parser, which uses\n  the Python `argparse <https://docs.python.org/3/library/argparse.html>`_ package.\n\n* The *actions* package receives valid commands from the parser package\n  and executes them, invoking the D-Bus API as needed.  The parser\n  passes command-line arguments given by the user to methods in the\n  actions package using a ``Namespace`` object.\n\nPython Coding Style\n-------------------\n``stratis`` conforms to PEP-8 style guidelines as enforced by the ``black``\nformatting tool.\n\nTab Completion\n--------------\nFrom time to time, our external contributors have added support for\ntab-completion in a variety of different shells. The files are included in the\nstratis-cli GitHub release, but they are not supported by the Stratis project.\nWe welcome further contributions to these files and will continue to include\nthem for as long as they seem useful to our users.\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Stratis CLI",
    "version": "3.7.0",
    "project_urls": {
        "Homepage": "https://github.com/stratis-storage/stratis-cli"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0fc52b66cafcd3512bf791cb20aae6b5f608487e363879e65107c0c81233490d",
                "md5": "20ca95c83a71c20cc88a9622bec5588c",
                "sha256": "911c62f331e20eceb643c2068ed5e1e099945bbdc41adeee13d4a635154a495c"
            },
            "downloads": -1,
            "filename": "stratis_cli-3.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "20ca95c83a71c20cc88a9622bec5588c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 72353,
            "upload_time": "2024-10-08T19:08:56",
            "upload_time_iso_8601": "2024-10-08T19:08:56.173073Z",
            "url": "https://files.pythonhosted.org/packages/0f/c5/2b66cafcd3512bf791cb20aae6b5f608487e363879e65107c0c81233490d/stratis_cli-3.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ce6cbf1547cae298ed1673745909330fa55345615abb1c27f4568ba2bb2ae09f",
                "md5": "4d15ed90b7d2fca37a246844ece9952c",
                "sha256": "da7c97ff645058022e3ad71f557f50fdd76e3b4a3a020bdc6452a6658c598a77"
            },
            "downloads": -1,
            "filename": "stratis_cli-3.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4d15ed90b7d2fca37a246844ece9952c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 48711,
            "upload_time": "2024-10-08T19:08:57",
            "upload_time_iso_8601": "2024-10-08T19:08:57.353487Z",
            "url": "https://files.pythonhosted.org/packages/ce/6c/bf1547cae298ed1673745909330fa55345615abb1c27f4568ba2bb2ae09f/stratis_cli-3.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-08 19:08:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stratis-storage",
    "github_project": "stratis-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "stratis-cli"
}
        
Elapsed time: 1.10843s