Skip to content

Commit 442cc87

Browse files
committed
added instructions for installing the library from packages
1 parent d4f254a commit 442cc87

File tree

1 file changed

+52
-2
lines changed

1 file changed

+52
-2
lines changed

README.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Dependencies:
3636

3737
* [aiohttp](https://github.com/aio-libs/aiohttp) (in case of async use)
3838

39-
## Documentation
39+
## Installation
4040

41-
### Installation
41+
### Installation from PyPI
4242

4343
Install **zabbix_utils** library using pip:
4444

@@ -52,6 +52,56 @@ To install the library with dependencies for asynchronous work use the following
5252
$ pip install zabbix_utils[async]
5353
```
5454

55+
### Installation from Zabbix repository
56+
57+
First of all, you need to install Zabbix repository. Official Zabbix packages for Red Hat Enterprise Linux and derivatives, as well as for Debian and derivatives are available on [Zabbix website](https://www.zabbix.com/download).
58+
59+
**Red Hat Enterprise Linux and derivatives**
60+
61+
Install **zabbix_utils** library from Zabbix repository:
62+
63+
```bash
64+
# dnf install python3-zabbix-utils
65+
```
66+
67+
To install additional dependencies such as aiohttp for asynchronous work use the following way:
68+
```bash
69+
# dnf install epel-release
70+
# dnf install python3-aiohttp
71+
```
72+
73+
**Debian / Ubuntu and derivatives**
74+
75+
Install **zabbix_utils** library from Zabbix repository:
76+
77+
```bash
78+
# apt install python3-zabbix-utils
79+
```
80+
81+
To install additional dependencies such as aiohttp for asynchronous work use the following way:
82+
```bash
83+
# apt install python3-aiohttp
84+
```
85+
86+
### Installation from GitHub
87+
88+
Clone the **zabbix_utils** repository:
89+
90+
```bash
91+
$ git clone https://github.com/zabbix/python-zabbix-utils
92+
```
93+
94+
Install **zabbix_utils** library using setup.py:
95+
96+
```bash
97+
$ cd python-zabbix-utils-master/
98+
$ python3 setup.py install
99+
```
100+
101+
To install dependencies use one of the ways above.
102+
103+
## Documentation
104+
55105
### Use cases
56106

57107
##### To work with Zabbix API

0 commit comments

Comments
 (0)