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
|
|
|
Metadata
Release files for mbpython 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mbpython-0.2.2.tar.gz | 17.8 kB | Without provenance | Details for mbpython-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| MBPython-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for MBPython-0.2.2-py3-none-any.whl |
Total release size: 39.6 kB
Release files / mbpython-0.2.2.tar.gz
| Download URL | mbpython-0.2.2.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5155d24db2a976ecc6424efd3146df51fffb523c8f3b822fb87cfcf97076b98
|
|
BLAKE2b-256 checksum How to use checksums |
52bd8c7e6fb51ed3b76ef843af09db4620aeeb173ad445f4dab69cd6902e71e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.2 CPython/3.6.5 Windows/10
|
Release files / MBPython-0.2.2-py3-none-any.whl
| Download URL | MBPython-0.2.2-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8023780e79ece0d472b75e60217e8d393f46f187da8cf09eff27e008eb11473
|
|
BLAKE2b-256 checksum How to use checksums |
7ca5ab085696c79762a50450b307fefb10902366948b0269133de46655752980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.2 CPython/3.6.5 Windows/10
|
Security for mbpython 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.