lilliepy-bling


Namelilliepy-bling JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/websitedeb/lilliepy_server
Summarya function to run code on a server, away from the client
upload_time2024-12-28 20:32:11
maintainerNone
docs_urlNone
authorsarthak ghoshal
requires_python>=3.8
licenseMIT
keywords lilliepy server component lilliepy reactpy lilliepy bling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lilliepy Bling

this function is able to run code far from the client into a private server (the server self-destructs after the function has been ran and returns value)

## _server

_server is the function, it takes 3 args:
* name
* func
* args

### name
name takes in "__name__", just slap that in there and you are good to go

### func
func is the function you want to execute away from the client, you dont put args in the function here

### args
args takes in parameters that are needed for the function in ```func``` to run, this is an optional parameter

# Example
```python
from lilliepy_bling import _server

def expensive_fibonacci(n):
    if n <= 1:
        return n
    return expensive_fibonacci(n - 1) + expensive_fibonacci(n - 2)

def no_arg_function():
    return "This function takes no arguments."

result_1 = _server(__name__, no_arg_function)
result_2 = _server(__name__, no_arg_function)
print(result_1, result_2)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/websitedeb/lilliepy_server",
    "name": "lilliepy-bling",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "lilliepy server component, lilliepy, reactpy, lilliepy bling",
    "author": "sarthak ghoshal",
    "author_email": "sarthak22.ghoshal@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a4/40/2b1d5653c1880b5e11a3bd16ae81f03868be81af7f1782aeddae4ee085a6/lilliepy_bling-1.0.0.tar.gz",
    "platform": null,
    "description": "# Lilliepy Bling\r\n\r\nthis function is able to run code far from the client into a private server (the server self-destructs after the function has been ran and returns value)\r\n\r\n## _server\r\n\r\n_server is the function, it takes 3 args:\r\n* name\r\n* func\r\n* args\r\n\r\n### name\r\nname takes in \"__name__\", just slap that in there and you are good to go\r\n\r\n### func\r\nfunc is the function you want to execute away from the client, you dont put args in the function here\r\n\r\n### args\r\nargs takes in parameters that are needed for the function in ```func``` to run, this is an optional parameter\r\n\r\n# Example\r\n```python\r\nfrom lilliepy_bling import _server\r\n\r\ndef expensive_fibonacci(n):\r\n    if n <= 1:\r\n        return n\r\n    return expensive_fibonacci(n - 1) + expensive_fibonacci(n - 2)\r\n\r\ndef no_arg_function():\r\n    return \"This function takes no arguments.\"\r\n\r\nresult_1 = _server(__name__, no_arg_function)\r\nresult_2 = _server(__name__, no_arg_function)\r\nprint(result_1, result_2)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "a function to run code on a server, away from the client",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/websitedeb/lilliepy_server"
    },
    "split_keywords": [
        "lilliepy server component",
        " lilliepy",
        " reactpy",
        " lilliepy bling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2808d4afb28e1eff528c397dffb834d3ff237a436da8d767092242668520f4f2",
                "md5": "a3f87f0b7e6875db0e928a0d989c91d3",
                "sha256": "8a191ffbf001ef33a9968101860993fe4761feb18ef8b6bd58c81e2e25b53add"
            },
            "downloads": -1,
            "filename": "lilliepy_bling-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3f87f0b7e6875db0e928a0d989c91d3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 2720,
            "upload_time": "2024-12-28T20:31:47",
            "upload_time_iso_8601": "2024-12-28T20:31:47.640121Z",
            "url": "https://files.pythonhosted.org/packages/28/08/d4afb28e1eff528c397dffb834d3ff237a436da8d767092242668520f4f2/lilliepy_bling-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4402b1d5653c1880b5e11a3bd16ae81f03868be81af7f1782aeddae4ee085a6",
                "md5": "b5ac62cb761b981342c8c9485485aadc",
                "sha256": "cf6edfcc94af5182a81485e8317e7d7328cef4aff8b0147792d046e3427ec8b5"
            },
            "downloads": -1,
            "filename": "lilliepy_bling-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b5ac62cb761b981342c8c9485485aadc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2538,
            "upload_time": "2024-12-28T20:32:11",
            "upload_time_iso_8601": "2024-12-28T20:32:11.243617Z",
            "url": "https://files.pythonhosted.org/packages/a4/40/2b1d5653c1880b5e11a3bd16ae81f03868be81af7f1782aeddae4ee085a6/lilliepy_bling-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-28 20:32:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "websitedeb",
    "github_project": "lilliepy_server",
    "github_not_found": true,
    "lcname": "lilliepy-bling"
}
        
Elapsed time: 0.50552s