pyliven


Namepyliven JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryStateful variables in Python, a new way to calculate
upload_time2024-07-19 05:38:32
maintainerNone
docs_urlNone
authorNone
requires_python>=3.5
licenseMIT License Copyright (c) 2024 Abhijat Bharadwaj Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords live numeric python stateful variables
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pyliven
Pronounced /ˈpaɪlʌɪvɛn/

Pyliven is an initiative to add stateful computation in the Python programming language. With this package, your python variables with automatically update if a dependency variable is updated. It's a new way to calculate in python.

## Use
Pyliven can be leveraged in multiple ways. One use-case can be to write formulae in python. Let's try with the classic Electrostatic force formula:
```python
from pyliven.liven import LiveNum

k = 9e9
q1 = LiveNum(2e-3)
q2 = LiveNum(3e-3)

r = LiveNum(1)

Force = k*q1*q2/r**2
```
Now we can directly update any of `q1`, `q2`, and `r`, and the value of `Force` will update.
```python
r.update(5)
print(Force)
```

You can find the complete documentation at [https://keymii.github.io/pyliven](https://keymii.github.io/pyliven)
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyliven",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "Abhijat Bharadwaj <bharadwaj.abhijat@yahoo.com>",
    "keywords": "live, numeric, python, stateful, variables",
    "author": null,
    "author_email": "Abhijat Bharadwaj <bharadwaj.abhijat@yahoo.com>",
    "download_url": "https://files.pythonhosted.org/packages/77/2a/fed4fc1d461e739171795d805cc05670111741911014ad8b89110ee505db/pyliven-0.1.0.tar.gz",
    "platform": null,
    "description": "# Pyliven\nPronounced /\u02c8pa\u026al\u028c\u026av\u025bn/\n\nPyliven is an initiative to add stateful computation in the Python programming language. With this package, your python variables with automatically update if a dependency variable is updated. It's a new way to calculate in python.\n\n## Use\nPyliven can be leveraged in multiple ways. One use-case can be to write formulae in python. Let's try with the classic Electrostatic force formula:\n```python\nfrom pyliven.liven import LiveNum\n\nk = 9e9\nq1 = LiveNum(2e-3)\nq2 = LiveNum(3e-3)\n\nr = LiveNum(1)\n\nForce = k*q1*q2/r**2\n```\nNow we can directly update any of `q1`, `q2`, and `r`, and the value of `Force` will update.\n```python\nr.update(5)\nprint(Force)\n```\n\nYou can find the complete documentation at [https://keymii.github.io/pyliven](https://keymii.github.io/pyliven)",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Abhijat Bharadwaj  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Stateful variables in Python, a new way to calculate",
    "version": "0.1.0",
    "project_urls": {
        "Documentation": "https://keymii.github.io/pyliven/",
        "Issues": "https://github.com/Keymii/pyliven/issues",
        "Repository": "https://github.com/Keymii/pyliven/"
    },
    "split_keywords": [
        "live",
        " numeric",
        " python",
        " stateful",
        " variables"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41ca55d72bbd31749e59b15b3c56d1cc934ef81450aacf76dbcb2980ac76fe59",
                "md5": "861449ca0094d198ab89e275ade9ea82",
                "sha256": "8b773ea67520ae2f4aceb72a30297320c9595bab9be21c93995a1613bf3bdaf2"
            },
            "downloads": -1,
            "filename": "pyliven-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "861449ca0094d198ab89e275ade9ea82",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 5178,
            "upload_time": "2024-07-19T05:38:30",
            "upload_time_iso_8601": "2024-07-19T05:38:30.728929Z",
            "url": "https://files.pythonhosted.org/packages/41/ca/55d72bbd31749e59b15b3c56d1cc934ef81450aacf76dbcb2980ac76fe59/pyliven-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "772afed4fc1d461e739171795d805cc05670111741911014ad8b89110ee505db",
                "md5": "18d0d17c678de5c17420a0deac738191",
                "sha256": "89a44958857a2efd2c60e0630d7139efd62b23742b5241a134bb76aee0e7f960"
            },
            "downloads": -1,
            "filename": "pyliven-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "18d0d17c678de5c17420a0deac738191",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 8287,
            "upload_time": "2024-07-19T05:38:32",
            "upload_time_iso_8601": "2024-07-19T05:38:32.414526Z",
            "url": "https://files.pythonhosted.org/packages/77/2a/fed4fc1d461e739171795d805cc05670111741911014ad8b89110ee505db/pyliven-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-19 05:38:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Keymii",
    "github_project": "pyliven",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyliven"
}
        
Elapsed time: 0.57097s