File: dependencies.rst

package info (click to toggle)
urlwatch 2.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: python: 4,003; sh: 53; makefile: 19
file content (76 lines) | stat: -rw-r--r-- 4,816 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.. _dependencies:

Dependencies
============

Mandatory requirements are required to run urlwatch. Depending on what
optional features you want to use, you might also need to install
additional packages -- however, those are not needed to run urlwatch.

Mandatory Packages
------------------

-  Python 3.8 or newer
-  `PyYAML <http://pyyaml.org/>`__
-  `minidb <https://thp.io/2010/minidb/>`__
-  `requests <http://python-requests.org/>`__
-  `keyring <https://github.com/jaraco/keyring/>`__
-  `platformdirs <https://github.com/platformdirs/platformdirs>`__
-  `lxml <https://lxml.de>`__
-  `cssselect <https://cssselect.readthedocs.io>`__

The dependencies can be installed with (add ``--user`` to install to ``$HOME``):

::

    python3 -m pip install pyyaml minidb requests keyring platformdirs lxml cssselect


Optional Packages
-----------------

Optional packages can be installed using::

        python3 -m pip install <packagename>

Where ``<packagename>`` is one of the following:

+-------------------------+---------------------------------------------------------------------+
| Feature                 | Python package(s) to install                                        |
+=========================+=====================================================================+
| Pushover reporter       | `chump <https://github.com/karanlyons/chump/>`__                    |
+-------------------------+---------------------------------------------------------------------+
| Pushbullet reporter     | `pushbullet.py <https://github.com/randomchars/pushbullet.py>`__    |
+-------------------------+---------------------------------------------------------------------+
| Matrix reporter         | `matrix_client <https://github.com/matrix-org/matrix-python-sdk>`__ |
|                         | and `markdown2 <https://github.com/trentm/python-markdown2>`__      |
+-------------------------+---------------------------------------------------------------------+
| `stdout` reporter with  | `colorama <https://github.com/tartley/colorama>`__                  |
| color on Windows        |                                                                     |
+-------------------------+---------------------------------------------------------------------+
| `browser` job kind      | `playwright <https://github.com/microsoft/playwright-python>`__     |
|                         | (since version 2.28)                                                |
+-------------------------+---------------------------------------------------------------------+
| Unit testing            | `pycodestyle <http://pycodestyle.pycqa.org/en/latest/>`__,          |
|                         | `docutils <https://docutils.sourceforge.io>`__,                     |
+-------------------------+---------------------------------------------------------------------+
| Documentation build     | `Sphinx <https://www.sphinx-doc.org/>`__                            |
+-------------------------+---------------------------------------------------------------------+
| `beautify` filter       | `beautifulsoup4 <https://pypi.org/project/beautifulsoup4/>`__;      |
|                         | optional dependencies (for ``<script>`` and ``<style>`` tags):      |
|                         | `jsbeautifier <https://pypi.org/project/jsbeautifier/>`__ and       |
|                         | `cssbeautifier <https://pypi.org/project/cssbeautifier/>`__         |
+-------------------------+---------------------------------------------------------------------+
| `html2text` filter      | `beautifulsoup4 <https://pypi.org/project/beautifulsoup4/>`__       |
| with `method: bs4`      |                                                                     |
+-------------------------+---------------------------------------------------------------------+
| `pdf2text` filter       | `pdftotext <https://github.com/jalan/pdftotext>`__ and              |
|                         | its OS-specific dependencies (see the above link)                   |
+-------------------------+---------------------------------------------------------------------+
| `ocr` filter            | `pytesseract <https://github.com/madmaze/pytesseract>`__ and        |
|                         | `Pillow <https://python-pillow.org>`__ and Tesseract OCR)           |
+-------------------------+---------------------------------------------------------------------+
| XMPP reporter           |`aioxmpp <https://github.com/horazont/aioxmpp>`__                    |
+-------------------------+---------------------------------------------------------------------+
| `jq` filter             | `jq <https://github.com/mwilliamson/jq.py>`__                       |
+-------------------------+---------------------------------------------------------------------+