Debian Codegraph @

docs/index.rst

raw
1 Welcome to dasbus's documentation!
2 ==================================
3
4 Dasbus is a DBus library written in Python 3, based on GLib and inspired by pydbus.
5 The code used to be part of the `Anaconda Installer <https://github.com/rhinstaller/anaconda>`_
6 project. It was based on the `pydbus <https://github.com/LEW21/pydbus>`_ library, but we replaced
7 it with our own solution because its upstream development stalled. The dasbus library is a result
8 of this effort.
9
10 Requirements
11 ------------
12
13 - Python 3.6+
14 - PyGObject 3
15
16 You can install `PyGObject <https://pygobject.readthedocs.io>`_ provided by your operating system
17 or use PyPI. The system package is usually called ``python3-gi``, ``python3-gobject`` or
18 ``pygobject3``. See the `instructions <https://pygobject.readthedocs.io/en/latest/getting_started.html>`_
19 for your platform (only for PyGObject, you don't need cairo or GTK).
20
21 The library is known to work with Python 3.8, PyGObject 3.34 and GLib 2.63, but these are not the
22 required minimal versions.
23
24
25 Installation
26 ------------
27
28 Install the package from `PyPI <https://pypi.org/project/dasbus/>`_ or install the package
29 provided by your operating system if available.
30
31 Install from PyPI
32 ^^^^^^^^^^^^^^^^^
33
34 Follow the instructions above to install the requirements before you install ``dasbus`` with
35 ``pip``. The required dependencies has to be installed manually in this case.
36
37 ::
38
39 pip3 install dasbus
40
41 Install on Arch Linux
42 ^^^^^^^^^^^^^^^^^^^^^
43
44 Build and install the community package from the `Arch User Repository <https://aur.archlinux.org/>`_.
45 Follow the `guidelines <https://wiki.archlinux.org/title/Arch_User_Repository>`_.
46
47 ::
48
49 git clone https://aur.archlinux.org/python-dasbus.git
50 cd python-dasbus
51 makepkg -si
52
53 Install on Debian / Ubuntu
54 ^^^^^^^^^^^^^^^^^^^^^^^^^^
55
56 Install the system package on Debian 11+ or Ubuntu 22.04+.
57
58 ::
59
60 sudo apt install python3-dasbus
61
62 Install on Fedora / CentOS / RHEL
63 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
65 Install the system package on Fedora 31+, CentOS Stream 8+ or RHEL 8+.
66
67 ::
68
69 sudo dnf install python3-dasbus
70
71 Install on openSUSE
72 ^^^^^^^^^^^^^^^^^^^
73
74 Install the system package on openSUSE Tumbleweed or openSUSE Leap 15.2+.
75
76 ::
77
78 sudo zypper install python3-dasbus
79
80
81 .. toctree::
82 :maxdepth: 1
83 :caption: Contents:
84
85 Development and testing <development>
86 Dasbus vs pydbus <pydbus>
87 Public API <api/dasbus>
88 Examples <examples>
89
90 Indices and tables
91 ------------------
92
93 - :ref:`genindex`
94 - :ref:`modindex`
95 - :ref:`search`