All Projects → lochen88 → MBPython

lochen88 / MBPython

Licence: other
MBPython is an open source project founded by lochen to provide Python bindings for the miniblink. python miniblink

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to MBPython

Webviewhook
Exposed Unity Editor WebView API
Stars: ✭ 107 (+137.78%)
Mutual labels:  cef
Webviewane
WebView Adobe Air Native Extension for macOS 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.
Stars: ✭ 169 (+275.56%)
Mutual labels:  cef
NCUI
基于Duilib + CEF + NodeJs的类似 electron 的UI框架
Stars: ✭ 23 (-48.89%)
Mutual labels:  cef
Cefdebug
Minimal code to connect to a CEF debugger.
Stars: ✭ 124 (+175.56%)
Mutual labels:  cef
Nanui
NanUI is an open source .NET project for .NET / .NET Core developers who want to use front-end technologies such as HTML5 / CSS3 to build user interfaces for Windows Form applications.
Stars: ✭ 2,090 (+4544.44%)
Mutual labels:  cef
Cefpython
Python bindings for the Chromium Embedded Framework (CEF)
Stars: ✭ 2,498 (+5451.11%)
Mutual labels:  cef
Journey
JCEF-powered cross-platform web browser
Stars: ✭ 68 (+51.11%)
Mutual labels:  cef
15-minute-apps
15 minute (small) desktop apps built with PyQt
Stars: ✭ 3,469 (+7608.89%)
Mutual labels:  python-gui
Nacollector
⚔ 一个采集工具箱,据说是一个用于采集各种 WEB 资源的工作站?!你可以认为这是一个框架,可拓展。淘宝、天猫、苏宁、国美 等电商平台数据采集... 一键邀请 一键打包 账号登录获取Cookie 任务多线程 下载内容管理 实时日志 dll 热更新 无边框窗体 Web App, CefSharp, WebDriver
Stars: ✭ 158 (+251.11%)
Mutual labels:  cef
Chromely
Build HTML Desktop Apps on .NET/.NET Core/.NET 5 using native GUI, HTML5, JavaScript, CSS
Stars: ✭ 2,728 (+5962.22%)
Mutual labels:  cef
Tweetduck
A Windows Client for TweetDeck. Not affiliated with Twitter.
Stars: ✭ 128 (+184.44%)
Mutual labels:  cef
Nim pc demo
云信Windows(PC) C/C++ Demo源码仓库
Stars: ✭ 147 (+226.67%)
Mutual labels:  cef
Bas
BrowserAutomationStudio can automate everything that Chrome can.
Stars: ✭ 203 (+351.11%)
Mutual labels:  cef
Qcefwidget
Provide a Qt widget to render and interact with webpage.
Stars: ✭ 115 (+155.56%)
Mutual labels:  cef
miniblink-electron
从基于 nodejs 的 electron 中迁移到 miniblink
Stars: ✭ 51 (+13.33%)
Mutual labels:  miniblink
Chromium.swt
Chromium widget for SWT
Stars: ✭ 105 (+133.33%)
Mutual labels:  cef
Go Wingui
本项目是golang在windows上用户图形界面gui解决方案,本项目可以不用对你的go写的网站程序做任何修改,就可以实现本地化,使用go+html+css+js写windows本地应用
Stars: ✭ 199 (+342.22%)
Mutual labels:  cef
cefgo
Go bindings for the Chromium Embedded Framework (CEF)
Stars: ✭ 20 (-55.56%)
Mutual labels:  cef
cef-mixer
High Performance off-screen rendering (OSR) demo using CEF
Stars: ✭ 183 (+306.67%)
Mutual labels:  cef
Pywebview
Build GUI for your Python program with JavaScript, HTML, and CSS
Stars: ✭ 2,649 (+5786.67%)
Mutual labels:  cef

MBPython

Miniblink is a lighter browser widget base on chromium, just one file, faster browser kernel of blink to integrate HTML UI in your app.

MBPython is an open source project founded by lochen to provide python bindings for the Miniblink. Examples of embedding Miniblink browser are available for many popular GUI toolkits including: wxPython, PyQt, PySide, Kivy, Panda3D, PyGTK, PyGObject, PyGame/PyOpenGL and PyWin32.

By using C interface, you can create a browser just some line code. There are many use cases for MBPython. You can embed a web browser control based on MBPython with great HTML 5 support. You can use it to create a HTML 5 based GUI in an application, this can act as a replacement for standard GUI toolkits like wxWidgets, Qt or GTK. You can render web content off-screen in application that use custom drawing frameworks. You can use it for automated testing of existing applications. You can use it for web scraping or as a web crawler, or other kind of internet bots.

Latest release

OS Py3 32bit 64bit Requirements
Windows 3.6+ Yes Yes Windows 7+

Installation

pip install --user MBPython

How to use

Download the node.dll add to your project.

The free version can only be called on the UI thread.

Create a simple Window

from MBPython import miniblink
mbpython=miniblink.Miniblink
mb=mbpython.init('node.dll')
wke=mbpython(mb)
window=wke.window
webview=window.wkeCreateWebWindow(0,0,0,0,860,760)
window.wkeShowWindow(webview)
window.wkeRunMessageLoop()

PyInstaller

pyinstall xxx.py --noconsole

Examples

See the tests folder

Tutorial

See the documents folder

What about CEF?

In short: I do not like CEF, it is too big, comes with too many dependency resolution library, and I think we can make a better and more intuitive one. Here are a few things that I don't like.

Resources

if you have any questions,you can contact me,and i will try my best to help you

If you would like to support general MBPython development efforts by making a donation then please scan to pay by the alipay
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].