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
wke=miniblink.MiniBlink
mb=wke.init()
window=wke.window
webview=window.wkeCreateWebWindow(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.1.8.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MBPython-0.1.8-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file mbpython-0.1.8.tar.gz.

File metadata

  • Download URL: mbpython-0.1.8.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.2 CPython/3.6.5 Windows/10

File hashes

Hashes for mbpython-0.1.8.tar.gz
Algorithm Hash digest
SHA256 309ab9735da3eec3c15b7f0cd5915c9d71ab003bcc4e4ae6e1dd08c232b7d067
MD5 8c2197eb68bc51ddc9ec5dab7a740081
BLAKE2b-256 4f0022ddf8ce28d4ec4b666d57de05682b08084342200c52205d31e7bedc6d45

See more details on using hashes here.

File details

Details for the file MBPython-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: MBPython-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.2 CPython/3.6.5 Windows/10

File hashes

Hashes for MBPython-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 035f20a997470856024e6417c8956fe6f602e764d7775ed78d64523ac88a8060
MD5 a0e91f1004a7271feeb58bff6904c20e
BLAKE2b-256 aa90d3ae0af05fcdf0fc15f63e8a7870fbe5d76d33eb701a3e7bb63b53bdcf9a

See more details on using hashes here.

Supported by

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