webwindow


Namewebwindow JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://github.com/szabolcsdombi/webwindow/
SummaryWebGL Window
upload_time2024-08-15 17:16:57
maintainerNone
docs_urlNone
authorSzabolcs Dombi
requires_pythonNone
licenseMIT
keywords webgl window
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # WebWindow

WebWindow is a lightweight window implementation for Python,
developed primarily to support the [ZenGL](https://zengl.readthedocs.io/) documentation,
and it can be easily deployed with [Pyodide](https://pyodide.org/) or [PyScript](https://pyscript.com/)

## Examples

See WebWindow in action: [Live Examples](https://pyscript.com/@szabolcsdombi?q=webwindow)

## Usage

Add this line to the **pyscript.toml**

```toml
packages = ["zengl", "webwindow"]
```

```py
import zengl
from webwindow import WebWindow

window = WebWindow(600, 400)
ctx = zengl.context()

@window.on_render
def render():
    ctx.new_frame()
    ctx.end_frame()
```

## License

Licensed under the [MIT License](LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/szabolcsdombi/webwindow/",
    "name": "webwindow",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "WebGL, window",
    "author": "Szabolcs Dombi",
    "author_email": "szabolcs@szabolcsdombi.com",
    "download_url": "https://files.pythonhosted.org/packages/d0/cb/7543f44b224c808fad2801e2a5da10f3ee11c8d64c2d26a33fbd5e517c88/webwindow-1.2.1.tar.gz",
    "platform": "web",
    "description": "# WebWindow\r\n\r\nWebWindow is a lightweight window implementation for Python,\r\ndeveloped primarily to support the [ZenGL](https://zengl.readthedocs.io/) documentation,\r\nand it can be easily deployed with [Pyodide](https://pyodide.org/) or [PyScript](https://pyscript.com/)\r\n\r\n## Examples\r\n\r\nSee WebWindow in action: [Live Examples](https://pyscript.com/@szabolcsdombi?q=webwindow)\r\n\r\n## Usage\r\n\r\nAdd this line to the **pyscript.toml**\r\n\r\n```toml\r\npackages = [\"zengl\", \"webwindow\"]\r\n```\r\n\r\n```py\r\nimport zengl\r\nfrom webwindow import WebWindow\r\n\r\nwindow = WebWindow(600, 400)\r\nctx = zengl.context()\r\n\r\n@window.on_render\r\ndef render():\r\n    ctx.new_frame()\r\n    ctx.end_frame()\r\n```\r\n\r\n## License\r\n\r\nLicensed under the [MIT License](LICENSE)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "WebGL Window",
    "version": "1.2.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/szabolcsdombi/webwindow/issues/",
        "Homepage": "https://github.com/szabolcsdombi/webwindow/",
        "Source": "https://github.com/szabolcsdombi/webwindow/"
    },
    "split_keywords": [
        "webgl",
        " window"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4da919af14f2fba755c7e0a8cb65c5fece4889af667f967abb5cd0812e9da3a",
                "md5": "26bb0f9b81cdf002faf9e31e3d4e5c37",
                "sha256": "0379f86289f6ba86cb1b8295975dc5de8982ed562b2820e0aa39e3424f6ad810"
            },
            "downloads": -1,
            "filename": "webwindow-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "26bb0f9b81cdf002faf9e31e3d4e5c37",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4481,
            "upload_time": "2024-08-15T17:16:55",
            "upload_time_iso_8601": "2024-08-15T17:16:55.858593Z",
            "url": "https://files.pythonhosted.org/packages/b4/da/919af14f2fba755c7e0a8cb65c5fece4889af667f967abb5cd0812e9da3a/webwindow-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0cb7543f44b224c808fad2801e2a5da10f3ee11c8d64c2d26a33fbd5e517c88",
                "md5": "1ad2f4d1b217b2a4a6bc8e704928ddae",
                "sha256": "305ceae3dcc0b4d3edb269e0dcbf6772de2012c66ddb2eada7d02b51f1ac08f0"
            },
            "downloads": -1,
            "filename": "webwindow-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1ad2f4d1b217b2a4a6bc8e704928ddae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4217,
            "upload_time": "2024-08-15T17:16:57",
            "upload_time_iso_8601": "2024-08-15T17:16:57.120894Z",
            "url": "https://files.pythonhosted.org/packages/d0/cb/7543f44b224c808fad2801e2a5da10f3ee11c8d64c2d26a33fbd5e517c88/webwindow-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-15 17:16:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "szabolcsdombi",
    "github_project": "webwindow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "webwindow"
}
        
Elapsed time: 0.34746s