Lines Matching +full:python +full:- +full:pathlib
1 .. _module-pw_package:
8 :ref:`module-pw_env_setup`. Examples of reasons packages should be managed using
19 -----
21 -----
28 ``pw package install <package-name>``
29 Installs ``<package-name>``. Exactly how this works is package-dependent,
32 ``--force`` to remove the package before installing.
34 ``pw package status <package-name>``
35 Indicates whether ``<package-name>`` is installed.
37 ``pw package remove <package-name>``
38 Removes ``<package-name>``.
43 .. _module-pw_package-middleware-only-packages:
45 Middleware-Only Packages
53 use ``--force`` on the command line or ``force=True`` in Python code.
55 -----------
57 -----------
61 Python 3
68 .. code-block:: python
82 def install(self, path: pathlib.Path) -> None:
89 def remove(self, path: pathlib.Path) -> None:
99 def status(self, path: pathlib.Path) -> bool:
114 add it to the ``PW_PLUGINS`` file (see :ref:`module-pw_cli` for details). This
117 .. code-block:: python
124 def main(argv=None) -> int:
130 (see also :ref:`SEED-0101 <seed-0101>`). This is currently limited to one
133 * ``allow_middleware_only_packages``: Allow middleware-only packages to be
134 installed. See :ref:`module-pw_package-middleware-only-packages` for more.
136 .. code-block::