dynamicWebsite


NamedynamicWebsite JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryA simple way to host web server bundled with websocket to send and receive live data, from client to server, and pass live HTML changes from server to client without having to refresh the page.
upload_time2024-04-27 15:27:17
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords website dynamic website update website live website change website websocket
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dynamicWebsite v1.0.2

```pip install dynamicWebsite --upgrade```

###### <br>A simple way to host web server bundled with websocket to send and receive live data, from client to server, and pass live HTML changes from server to client without having to refresh the page."

<br>To install: 
```
pip install dynamicWebsite --upgrade
pip3 install dynamicWebsite --upgrade
python -m pip install dynamicWebsite --upgrade
python3 -m pip install dynamicWebsite --upgrade
```


#### <br><br>Using this program is as simple as:
```

def process_form(viewerObj: BaseViewer, form: dict):
    if form is not None:
        print(f"[{viewerObj.viewerID}] sent: ", form)
    else:
        print("Disconnected: ", viewerObj.viewerID)

def newVisitor(viewerObj: BaseViewer):
    initial = f"""
    <h2>Submit Song Name</h2>
    <div id="searchform" class="container"></div>
    <div id="audioplayer" class="container"></div>    
    <div id="status_create"></div>
    <div id="debug" class="container"></div>
    """
    viewerObj.queueTurboAction(initial, "mainDiv", viewerObj.turboApp.methods.update)
    sendForm(viewerObj)

extraHeads = ""
fernetKey = 'GNwHvssnLQVKYPZk0D_Amy9m3EeSvi6Y1FiHfTO8F48='
appName = "Song Player"
homePageRoute = "/song"
WSRoute = f"/song_ws"
title = "Song Player"
resetOnDisconnect = False
baseApp, turboApp = createApps(process_form, newVisitor, appName, homePageRoute, WSRoute, fernetKey, extraHeads, title, resetOnDisconnect)

turboApp.run("0.0.0.0", 5000)
```


### Future implementations:
* Adding ability to add classes and other HTML arguments to elements created
* Adding templates for various uses


###### <br>This project is always open to suggestions and feature requests.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dynamicWebsite",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "website, dynamic website, update website, live website, change website, websocket",
    "author": null,
    "author_email": "Bhindi <bhaskarpanja93@gmail.com>, riyapuri0710 <riyapuri0710@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/37/45/94f675aafadae413caad106487b9c9b2db8242c8d67a090aaff88301e074/dynamicwebsite-1.0.2.tar.gz",
    "platform": null,
    "description": "# dynamicWebsite v1.0.2\n\n```pip install dynamicWebsite --upgrade```\n\n###### <br>A simple way to host web server bundled with websocket to send and receive live data, from client to server, and pass live HTML changes from server to client without having to refresh the page.\"\n\n<br>To install: \n```\npip install dynamicWebsite --upgrade\npip3 install dynamicWebsite --upgrade\npython -m pip install dynamicWebsite --upgrade\npython3 -m pip install dynamicWebsite --upgrade\n```\n\n\n#### <br><br>Using this program is as simple as:\n```\n\ndef process_form(viewerObj: BaseViewer, form: dict):\n    if form is not None:\n        print(f\"[{viewerObj.viewerID}] sent: \", form)\n    else:\n        print(\"Disconnected: \", viewerObj.viewerID)\n\ndef newVisitor(viewerObj: BaseViewer):\n    initial = f\"\"\"\n    <h2>Submit Song Name</h2>\n    <div id=\"searchform\" class=\"container\"></div>\n    <div id=\"audioplayer\" class=\"container\"></div>    \n    <div id=\"status_create\"></div>\n    <div id=\"debug\" class=\"container\"></div>\n    \"\"\"\n    viewerObj.queueTurboAction(initial, \"mainDiv\", viewerObj.turboApp.methods.update)\n    sendForm(viewerObj)\n\nextraHeads = \"\"\nfernetKey = 'GNwHvssnLQVKYPZk0D_Amy9m3EeSvi6Y1FiHfTO8F48='\nappName = \"Song Player\"\nhomePageRoute = \"/song\"\nWSRoute = f\"/song_ws\"\ntitle = \"Song Player\"\nresetOnDisconnect = False\nbaseApp, turboApp = createApps(process_form, newVisitor, appName, homePageRoute, WSRoute, fernetKey, extraHeads, title, resetOnDisconnect)\n\nturboApp.run(\"0.0.0.0\", 5000)\n```\n\n\n### Future implementations:\n* Adding ability to add classes and other HTML arguments to elements created\n* Adding templates for various uses\n\n\n###### <br>This project is always open to suggestions and feature requests.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple way to host web server bundled with websocket to send and receive live data, from client to server, and pass live HTML changes from server to client without having to refresh the page.",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/BhaskarPanja93/dynamicWebsite"
    },
    "split_keywords": [
        "website",
        " dynamic website",
        " update website",
        " live website",
        " change website",
        " websocket"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e4115dc55347d9320ed07a3557b1e0d9d4de9479968caf0c7d72dc77cb7584c",
                "md5": "9941ee0e2d16bc273a355dd03cecf444",
                "sha256": "cd8e55f5d5f8a9f3d01f5b3c8671d35db842677a1c5bf0f677335d7f08fbd514"
            },
            "downloads": -1,
            "filename": "dynamicWebsite-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9941ee0e2d16bc273a355dd03cecf444",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8029,
            "upload_time": "2024-04-27T15:27:15",
            "upload_time_iso_8601": "2024-04-27T15:27:15.557849Z",
            "url": "https://files.pythonhosted.org/packages/1e/41/15dc55347d9320ed07a3557b1e0d9d4de9479968caf0c7d72dc77cb7584c/dynamicWebsite-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "374594f675aafadae413caad106487b9c9b2db8242c8d67a090aaff88301e074",
                "md5": "f8d9ecd6e6cca32a36de74ac1da0834d",
                "sha256": "d61b13b691776f618067d101e2a12da8bf9550b055a4ed33a42618d277fb0194"
            },
            "downloads": -1,
            "filename": "dynamicwebsite-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f8d9ecd6e6cca32a36de74ac1da0834d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7977,
            "upload_time": "2024-04-27T15:27:17",
            "upload_time_iso_8601": "2024-04-27T15:27:17.014863Z",
            "url": "https://files.pythonhosted.org/packages/37/45/94f675aafadae413caad106487b9c9b2db8242c8d67a090aaff88301e074/dynamicwebsite-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 15:27:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BhaskarPanja93",
    "github_project": "dynamicWebsite",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dynamicwebsite"
}
        
Elapsed time: 0.24889s