cefpython README

项目的 README,来自 github.com/cztomczak/cefpython。合并为一个 markdown 文件:README.md。

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, GTK 3, Tkinter, Kivy, Panda3D, PyGame, PyOpenGL, PyWin32, PySide and PySDL2.

Install

CEF Python 147 development wheels are available on GitHub Releases.

OS Python 64bit Requirements
Windows 3.10 / 3.11 / 3.12 / 3.13 / 3.14 Yes Windows 10+
Linux 3.10 / 3.11 / 3.12 / 3.13 / 3.14 Yes Ubuntu 22.04+, Debian 12+
macOS 3.10 / 3.11 / 3.12 / 3.13 / 3.14 Yes macOS 12+ (Apple Silicon/arm64 only)

macOS testing was limited to CI only. We are looking for macOS testers - please report your results.

Examples

Support

Support development

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


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.

API

Modules

Settings

Classes and objects

Client handlers (interfaces)

Other interfaces

API index

cefpython (cztomczak/cefpython)

正在搜索数据库…

这是什么?它是 Chromium Embedded Framework(CEF)的 Python 绑定,让 Python 程序能够在桌面应用中嵌入 Chromium 浏览器内核。
它是 GUI 框架,还是只是一个浏览器控件?两者都是。它既可以作为 Python GUI 的完整 HTML5 渲染引擎(README 称之为“Python 版的 Electron”),也可以作为浏览器控件嵌入 Qt、GTK 或 wxPython 应用中。
我该怎么让它运行起来?从 GitHub Releases 页面下载适用于你的操作系统和 Python 版本的 CEF Python 147 开发版 wheel 文件并安装。README 还提供了一份教程和一组示例。
支持哪些 Python 版本?Python 3.10 至 3.14,仅支持 64 位版本。
它在 macOS 上运行得好吗?只能说部分可用。macOS 版 wheel 在 CI 中经过了单元测试,并对 helloworld 和教程示例做了冒烟测试。GUI 示例和 PyInstaller 打包尚未在 macOS 上测试,作者欢迎大家反馈问题。
它支持哪些操作系统?Windows 10 及更新版本、Ubuntu 20.04+ 或 Debian 11+,以及仅限 Apple Silicon 芯片的 macOS 12+。
它和用于测试的 Selenium 有什么不同?据 README 介绍,CEF 的底层编程接口能让自动化测试拥有比基于 Selenium 的浏览器自动化更高级的能力。
CEF 的使用范围有多广?README 称,全球已安装超过 1 亿个 CEF 实例,分布在众多应用中。
这个项目是谁、什么时候发起的?据 README 介绍,Czarek Tomczak 于 2012 年创建了 CEF Python 项目。
作者
cztomczak
大小
7.3 MB
星标
3.2K
时长
11年
提交 · 90 天