pystemd
Advanced tools
| # | ||
| # Copyright (c) 2021-present, Facebook, Inc. | ||
| # All rights reserved. | ||
| # | ||
| # This source code is licensed under the license found in the LICENSE file in | ||
| # the root directory of this source tree. | ||
| # | ||
| from typing import Any | ||
| from pystemd import DBus, __version__, machine1, systemd1 | ||
| SDUnit = systemd1.Unit | ||
| SDManager = systemd1.Manager | ||
| SDMachine = machine1.Machine | ||
| def run( | ||
| cmd: Any, | ||
| address=..., | ||
| service_type=..., | ||
| name=..., | ||
| user=..., | ||
| user_mode=..., | ||
| nice=..., | ||
| runtime_max_sec=..., | ||
| env=..., | ||
| extra=..., | ||
| cwd=..., | ||
| machine=..., | ||
| wait=False, | ||
| remain_after_exit=False, | ||
| collect=False, | ||
| raise_on_fail=False, | ||
| pty=..., | ||
| pty_master=..., | ||
| pty_path=..., | ||
| stdin=..., | ||
| stdout=..., | ||
| stderr=..., | ||
| _wait_polling=..., | ||
| slice_=..., | ||
| stop_cmd=..., | ||
| stop_post_cmd=..., | ||
| start_pre_cmd=..., | ||
| start_post_cmd=..., | ||
| ): ... |
| # | ||
| # Copyright (c) 2020-present, Facebook, Inc. | ||
| # All rights reserved. | ||
| # | ||
| # This source code is licensed under the license found in the LICENSE file in | ||
| # the root directory of this source tree. | ||
| # | ||
| import re | ||
| from contextlib import contextmanager | ||
| from typing import Any, AnyStr, Iterator, Optional | ||
| from xml.dom.minidom import Element | ||
| from pystemd.dbuslib import DBus, apply_signature | ||
| from pystemd.utils import x2char_star | ||
| class SDObject(object): | ||
| def __init__( | ||
| self, | ||
| destination: AnyStr, | ||
| path: AnyStr, | ||
| bus=Optional[DBus], | ||
| _autoload: bool = False, | ||
| ) -> None: ... | ||
| def __enter__(self) -> SDObject: ... | ||
| @contextmanager | ||
| def bus_context(self) -> Iterator[DBus]: ... | ||
| def get_introspect_xml(self) -> Element: ... | ||
| def load(self, force: bool = False) -> None: ... | ||
| class SDInterface(object): | ||
| def __init__(self, sd_object: SDObject, interface_name: AnyStr) -> None: ... | ||
| def __repr__(self) -> str: ... | ||
| def _get_property(self, property_name: str) -> Any: ... | ||
| def _set_property(self, property_name: AnyStr, value: Any) -> None: ... |
| def setns(fd: int, nstype: int) -> int: ... |
| # Copyright (c) 2020-present, Facebook, Inc. | ||
| # All rights reserved. | ||
| # | ||
| # This source code is licensed under the license found in the LICENSE file in | ||
| # the root directory of this source tree. | ||
| # | ||
| from typing import Union | ||
| LISTEN_FDS_START: int | ||
| class PystemdDaemonError(Exception): | ||
| pass | ||
| def listen_fds(unset_environment: bool) -> int: ... | ||
| def notify(unset_environment: bool, *args: str, **kwargs: Union[int, str]) -> None: ... | ||
| def booted() -> bool: ... | ||
| def watchdog_enabled(unset_environment: bool) -> int: ... |
| # Copyright (c) 2020-present, Facebook, Inc. | ||
| # All rights reserved. | ||
| # | ||
| # This source code is licensed under the license found in the LICENSE file in | ||
| # the root directory of this source tree. | ||
| # | ||
| from typing import Any, Dict, List, Tuple | ||
| class DbusMessage: | ||
| body: Any | ||
| headers: Dict[str, Any] | ||
| def process_reply(self, with_headers: bool): ... | ||
| def is_empty(self) -> bool: ... | ||
| def is_signal(self, interface: bytes, member: bytes) -> bool: ... | ||
| class DBus: | ||
| user_mode: bool | ||
| def __init__(self, user_mode: bool = False) -> None: ... | ||
| def __enter__(self) -> "DBus": ... | ||
| def __exit__(self, *errs) -> None: ... | ||
| def open(self) -> None: ... | ||
| def close(self) -> None: ... | ||
| def process(self) -> DbusMessage: ... | ||
| def call_method( | ||
| self, | ||
| destination: bytes, | ||
| path: bytes, | ||
| interface: bytes, | ||
| method: bytes, | ||
| args: Any, | ||
| ) -> Any: ... | ||
| def get_property( | ||
| self, | ||
| destination: bytes, | ||
| path: bytes, | ||
| interface: bytes, | ||
| property: bytes, | ||
| rtype: bytes, | ||
| ) -> Any: ... | ||
| def match_signal( | ||
| self, sender, path, interface, member, callback, userdata=None | ||
| ) -> None: ... | ||
| def wait(self, timeout: int) -> None: ... | ||
| def get_fd(self) -> int: ... | ||
| def get_allow_interactive_authorization(self) -> bool: ... | ||
| def set_allow_interactive_authorization(self, interactive: bool) -> None: ... | ||
| class DBusMachine(DBus): | ||
| def __init__(self, machine: bytes) -> None: ... | ||
| class DBusRemote(DBus): | ||
| def __init__(self, host: bytes) -> None: ... | ||
| class DBusAddress(DBus): | ||
| def __init__(self, address: bytes, peer_to_peer: bool) -> None: ... | ||
| def apply_signature(signature: bytes, values: List[Any]) -> list[Tuple[int, Any]]: ... | ||
| def path_encode(prefix: bytes, external_id: bytes) -> bytes: ... | ||
| def path_decode(path: bytes, prefix: bytes) -> bytes: ... |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: pystemd | ||
| Version: 0.13.1 | ||
| Version: 0.13.2 | ||
| Summary: A systemd binding for python | ||
@@ -5,0 +5,0 @@ Author: Alvaro Leiva Geisse |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "pystemd" | ||
| version = "0.13.1" | ||
| version = "0.13.2" | ||
| readme = "README.md" | ||
@@ -10,0 +10,0 @@ description="A systemd binding for python" |
| Metadata-Version: 2.1 | ||
| Name: pystemd | ||
| Version: 0.13.1 | ||
| Version: 0.13.2 | ||
| Summary: A systemd binding for python | ||
@@ -5,0 +5,0 @@ Author: Alvaro Leiva Geisse |
@@ -8,7 +8,11 @@ LICENSE | ||
| pystemd/__init__.py | ||
| pystemd/__init__.pyi | ||
| pystemd/__version__.py | ||
| pystemd/base.py | ||
| pystemd/base.pyi | ||
| pystemd/cutils.c | ||
| pystemd/cutils.pyi | ||
| pystemd/cutils.pyx | ||
| pystemd/daemon.c | ||
| pystemd/daemon.pyi | ||
| pystemd/daemon.pyx | ||
@@ -20,2 +24,3 @@ pystemd/dbusc.pxd | ||
| pystemd/dbuslib.c | ||
| pystemd/dbuslib.pyi | ||
| pystemd/dbuslib.pyx | ||
@@ -22,0 +27,0 @@ pystemd/exceptions.py |
@@ -13,4 +13,4 @@ # | ||
| # latest release. | ||
| __version__ = "0.13.1" | ||
| __version__ = "0.13.2" | ||
| sys.modules[__name__] = __version__ # type: ignore |
+2
-2
@@ -66,3 +66,3 @@ #!/usr/bin/env python3 | ||
| name="pystemd", | ||
| version="0.13.1", | ||
| version="0.13.2", | ||
| author="Alvaro Leiva Geisse", | ||
@@ -74,3 +74,3 @@ author_email="aleivag@gmail.com", | ||
| "pystemd": [ | ||
| str(Path(p).relative_to("pystemd")) for p in glob.glob("pystemd/**/*.pyi") | ||
| str(p.relative_to("pystemd")) for p in Path("pystemd").glob("**/*.pyi") | ||
| ] | ||
@@ -77,0 +77,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
2119166
0.31%54
10.2%2600
5.73%