You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read [CONTRIBUTING.md](./CONTRIBUTING.md) to know more about
13
-
Python-libzim development.
7
+
It is primarily used in [openZIM](https://github.com/openzim/) scrapers like [`sotoki`](https://github.com/openzim/sotoki) or [`youtube2zim`](https://github.com/openzim/youtube).
The [PyPI package](https://pypi.org/project/libzim/) is bundled with a
24
-
recent version of the libzim for macOS and GNU/Linux (x86_64
25
-
architecture). For other OSes, the latest libzim has to be
26
-
compiled manually, See [Setup hints](#setup-hints) to know more.
17
+
```sh
18
+
pip install libzim
19
+
```
20
+
21
+
The [PyPI package](https://pypi.org/project/libzim/) is available for x86_64 macOS and GNU/Linux only. It bundles a [recent release](http://download.openzim.org/release/libzim/) of the C++ libzim.
22
+
23
+
On other platforms, you'd have to [compile C++ libzim from
24
+
source](https://github.com/openzim/libzim) first then build this one, adjusting `LD_LIBRARY_PATH`.
See [CONTRIBUTING.md](./CONTRIBUTING.md) for additional details then [Open a ticket](https://github.com/openzim/python-libzim/issues/new) or submit a Pull Request on Github 🤗!
37
+
38
+
## Usage
33
39
34
-
### Read a ZIM
40
+
### Read a ZIM file
35
41
36
42
```python
37
43
from libzim.reader import Archive
44
+
from libzim.search import Query, Searcher
45
+
from libzim.suggestion import SuggestionSearcher
38
46
39
47
zim = Archive("test.zim")
40
48
print(f"Main entry is at {zim.main_entry.get_item().path}")
0 commit comments