Metadata-Version: 2.4
Name: zebkit
Version: 0.4.0
Summary: Chromium's engine as a library, from Python: web views, PDF, media, Playwright's API natively, and the libraries inside the engine
Keywords: chromium,browser,webview,pdf,playwright,automation
License-Expression: LGPL-2.1-or-later
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Requires-Python: >=3.8
Project-URL: Homepage, https://github.com/ikey4u/zebkit
Project-URL: Documentation, https://github.com/ikey4u/zebkit/blob/main/docs/API.md
Project-URL: Releases, https://github.com/ikey4u/zebkit/releases
Description-Content-Type: text/markdown

# zebkit for Python

Chromium's engine as a library: web views in your own windows or off-screen,
a full PDF API on PDFium, media, compression, crypto, Playwright's API run
inside the engine, and the C libraries inside it. Pure Python on `ctypes`,
nothing to compile.

```python
import zebkit

def ready():
    view = zebkit.View("https://example.com/")
    view.on_load(lambda event, url: event == zebkit.LOAD_FINISHED and
                 view.evaluate("document.title", lambda title, error: print(title)))

zebkit.main(ready)
```

The package is the binding; the engine is a separate download. Unpack the
archive for your system from the [releases](https://github.com/ikey4u/zebkit/releases)
of the same version (Linux x86-64, macOS on Apple silicon, Windows x64) and
point `ZEBKIT_DIR` at it:

```sh
pip install zebkit
export ZEBKIT_DIR=/path/to/zebkit-<version>-<target>
```

Everything the binding offers is in
[docs/API.md](https://github.com/ikey4u/zebkit/blob/main/docs/API.md), and
Playwright's API from Python (`zebkit.automation`) in
[docs/AUTOMATION.md](https://github.com/ikey4u/zebkit/blob/main/docs/AUTOMATION.md).
