Skip to content

Python bindings for the Chromium Embedded Framework (CEF)

License

Notifications You must be signed in to change notification settings

zabbix-byte/cefpythonX

Repository files navigation

CEF Python

Table of contents:

Introduction

CEF Python X (cefpythonx) is a modern fork of the original CEF Python project, maintained by zabbix-byte.

It provides Python bindings for the Chromium Embedded Framework (CEF), enabling you to embed a web browser control based on Chromium with full HTML5 support in your applications.

Key Features of CEF Python X:

  • Modern Python Support: Extended compatibility for Python 3.10, 3.11, 3.12, and 3.13.
  • Cross-Platform: Supports Windows, Linux, and MacOS.
  • GUI Integration: Embeddable in many Python GUI frameworks like PyQt, wxPython, PyGTK, PyGObject, Tkinter, Kivy, Panda3D, PyGame, PyOpenGL, PyWin32, PySide, and PySDL2.

Use cases include:

  1. Modern GUI: Use HTML5/CSS/JS for your application's UI (Electron-like experience).
  2. Embedded Browser: Add a powerful web browser widget to legacy desktop apps (Qt, GTK, wxPython).
  3. Off-screen Rendering: Render web content programmatically for custom use cases.
  4. Automation: Advanced web automation and testing beyond Selenium's capabilities.
  5. Scraping: High-fidelity web scraping and crawling.

Install

Command to install with pip:

pip install cefpythonx 

Hosted at pypi/cefpythonx. On Linux pip 8.1+ is required.

You can also download packages for offline installation available on the GitHub Releases pages.

Below is a table with supported platforms, python versions and architectures.

OSPy2Py332bit64bitRequirements
Windows2.73.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 / 3.10 / 3.11 / 3.12 / 3.13YesYesWindows 7+ (Note that Python 3.9+ supports Windows 8.1+)
Linux2.73.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 / 3.10 / 3.11 / 3.12 / 3.13YesYesDebian 8+, Ubuntu 14.04+,
Fedora 24+, openSUSE 13.3+
Mac2.73.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 / 3.10 / 3.11 / 3.12 / 3.13NoYesMacOS 10.9+

Examples

Support

Support

  • Issues: Report bugs or feature requests on the GitHub Issues page.
  • Legacy Forum: The original Google Group may contain historical information, but active development for cefpythonx happens here on GitHub.
  • Examples: Supported examples are listed in examples/README-examples.md.
  • Documentation: Located in the docs/ directory.

API

Modules

Settings

Classes and objects

Client handlers (interfaces)

Other interfaces

API index

About

Python bindings for the Chromium Embedded Framework (CEF)

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++53.6%
  • Python14.7%
  • JavaScript13.0%
  • Cython10.8%
  • C6.7%
  • Objective-C0.3%
  • Other0.9%