Back to directory
cztomczak avatar
cztomczak / cefpython

cefpython

Python bindings for the Chromium Embedded Framework (CEF)

3,234

Stars

477

Forks

128

Watchers

NOASSERTION

License

CEF Python

Table of contents:

Introduction

CEF Python is an open source project founded by Czarek Tomczak in 2012 to provide Python bindings for the Chromium Embedded Framework (CEF). The Chromium project focuses mainly on Google Chrome application development while CEF focuses on facilitating embedded browser use cases in third-party applications. Lots of applications use CEF control, there are more than 100 million CEF instances installed around the world. There are numerous use cases for CEF:

  1. Use it as a modern HTML5 based rendering engine that can act as a replacement for classic desktop GUI frameworks. Think of it as Electron for Python.
  2. Embed a web browser widget in a classic Qt / GTK / wxPython desktop application
  3. Render web content off-screen in applications that use custom drawing frameworks
  4. Use it for automated testing of web applications with more advanced capabilities than Selenium web browser automation due to CEF low level programming APIs
  5. Use it for web scraping, as a web crawler or other kind of internet bots

CEF Python also provides examples of embedding CEF for many Python GUI frameworks such as PyQt, wxPython, PyGTK, PyGObject, Tkinter, Kivy, Panda3D, PyGame, PyOpenGL, PyWin32, PySide and PySDL2.

Install

Command to install with pip:

pip install cefpython3==66.1

Hosted at pypi/cefpython3. 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.

OS Py2 Py3 32bit 64bit Requirements
Windows 2.7 3.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 Yes Yes Windows 7+ (Note that Python 3.9 supports Windows 8.1+)
Linux 2.7 3.4 / 3.5 / 3.6 / 3.7 Yes Yes Debian 8+, Ubuntu 14.04+,
Fedora 24+, openSUSE 13.3+
Mac 2.7 3.4 / 3.5 / 3.6 / 3.7 No Yes MacOS 10.9+

Examples

Support

Support development

To support general CEF Python development efforts you can make a donation using PayPal button below:

donate

Seeking sponsors

CEF Python is seeking companies to sponsor development of this project. Most important thing would be to have continuous monthly releases with updates to latest Chromium. There is also lots of cool features and new settings that would be nice to implement. We have not yet exposed all of upstream CEF APIs. If your company would like to sponsor CEF Python development efforts then please contact Czarek. There are no active sponsors at this moment.

Previous sponsors

API

Modules

Settings

Classes and objects

Client handlers (interfaces)

Other interfaces

API index

Releases

Feb 16, 2021

CEF Python v66.1 for Windows with Python 3.8 / 3.9 support

Download .zip

Installation You can install the pypi/cefpython3 package using the pip tool. You can also download packages for offline installation that are attached in this release. The command to install with pip...

Aug 27, 2018

CEF Python v49.0 for Windows with WinXP/Vista support

Download .zip

A special release for legacy systems This is a special release only for Windows for legacy systems such as Windows XP and Vista. This release includes Chromium 49.0.2623.110 which is the latest Chromi...

Aug 27, 2018

Upstream CEF v49 prebuilt binaries and libraries

Download .zip

With these upstream CEF prebuilt binaries and libraries you can build CEF Python from sources in less than 10 minutes. See the Build instructions document for details. Prebult binaries and libraries w...

Aug 20, 2018

CEF Python v66.0

Download .zip

Installation You can install pypi/cefpython3 package using pip tool. On Linux pip 8.1+ is required. You can also download packages for offline installation that are attached to this GitHub release. Co...

May 25, 2018

Upstream CEF v66 prebuilt binaries and libraries

Download .zip

This release will be updated with new binaries with time. Master branch is currently v66. There is no cefpython66 branch at the moment. With these upstream CEF prebuilt binaries and libraries you can...