Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m32/cefct
Python bindings (ctypes) for the Chromium Embedded Framework (CEF)
https://github.com/m32/cefct
cef cefpython cefpython3 ctypes python
Last synced: 22 days ago
JSON representation
Python bindings (ctypes) for the Chromium Embedded Framework (CEF)
- Host: GitHub
- URL: https://github.com/m32/cefct
- Owner: m32
- License: mit
- Created: 2022-08-12T11:55:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T19:40:35.000Z (10 months ago)
- Last Synced: 2024-02-28T19:59:03.644Z (10 months ago)
- Topics: cef, cefpython, cefpython3, ctypes, python
- Language: Python
- Homepage:
- Size: 1.66 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cefct
Python bindings (ctypes) for the Chromium Embedded Framework (CEF)
[Binaries for Linux64](https://cef-builds.spotifycdn.com/index.html#linux64),
[Binaries for Windows64](https://cef-builds.spotifycdn.com/index.html#windows64)## DIY
Compiling cefpython3 is a complicated process, so instead of creating intermediate
code and sharing it with Python, I decided to use the standard Python library, ctypes.cefcapiparse.py and cefcapiparseinternal.py prepare function calls exported directly from
libcef (dll or so). In order to check the correctness of the size of the generated structures,
a tiny (also generated) program cefsizes.c is required.For proper operation, you need cef source, e.g.:
https://cef-builds.spotifycdn.com/cef_binary_120.1.10+g3ce3184+chromium-120.0.6099.129_linux64.tar.bz2
or its equivalent for MS-Windows.
Unpack the downloaded file in the cef directory, inside cef directory create directory "build" and
create a symbolic link "source" to the newly created directory,
finally run:
cef-2-cmake.sh
cef-3-cmake-ninja.sh
cef-4-cefcapi.sh
cef-4-linuxhelper.shThis library is at the stage of testing and playing, but something can be started:
- appflask.py - flask/vue based http server
- appgtk0.py - minimal GTK 3.0 example
- appgtk1.py - minimal GTK 3.0 example used as loader for appgtk1a.py
- appgtk1a.py
- appwin.py - minimal WIN32 application
- appwx1-win32.py - minimal wxPython application on WIn32
- appwx2.py - minimal wxPython application on WIN32 or GTK3
- appwx3.py - minimal wxPython application on WIN32 or GTK3
- appwx4.py - most advanced cross platform application with flask and callbacks
- appwxflask.py - wxPython application with flaskCommon application libraries:
- cefapp.py
- cefappcommon.pyShow used CEF version and assert compability with used CEF version
- cefapp-vercheck.pyIf you want to check the operation of another version of CEF,
you will have to download its distribution and generate the required files.