Skip to main content

Miniblink binding for python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mbpython-0.2.2.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

MBPython-0.2.2-py3-none-any.whl (21.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page