Skip to main content

webview

Create WebViews for android with this little python module (still in development).

To create a webview with python for android you need to use kivy / kivymd or pydroid3, you can create a webview app with kivy like this:

Examples:

from kivy.uix.widget import Widget
from kivymd.app import MDApp
from webview import WebView
from kivy.lang.builder import Builder
from kivymd.uix.button import MDFlatButton
from kivymd.uix.screen import MDScreen

Builder.load_string("""
<MyWebView>
    MDFlatButton:
        text: "Push"
        pos_hint: {"center_x": .5, "center_y": .4}
        on_press: root.Push()
""")

class MyWebView(MDScreen):
    def Push(self):
        WebView("https://www.google.com")


class MyWebApp(MDApp):
    def build(self):
        return MyWebView()


if __name__ == '__main__':
    MyWebApp().run()

This example can be used in Pydroid3 and in a kivy / kivymd app

installation:

pip3 install webview-android

Metadata

Release files for webview-android 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webview-android 0.10
File Size Uploaded
webview_android-0.10.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webview-android 0.10
File Interpreter ABI Platform
webview_android-0.10-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / webview_android-0.10.tar.gz

Download URL webview_android-0.10.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eaf3365edea7172eb12fb7b3e02434058e3438663e7b5aee24ab61c8edda7050
BLAKE2b-256 checksum
How to use checksums
e2bdfcbdb185fe9301a91039df27c1e2d96688eb2cc9aa53559b60f823376b05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.0+

Release files / webview_android-0.10-py3-none-any.whl

Download URL webview_android-0.10-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e21aa13551efaf9d46373a8183961f1dc033ac3b3316d2ce03668d811376805e
BLAKE2b-256 checksum
How to use checksums
4605c0cfb2dfe6b681361ece8eff446f4f8346d48ddb27ab7a54e8542141303a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.9.0+

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page