pyliven


Namepyliven JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryStateful variables in Python, a new way to calculate
upload_time2024-10-27 20:16:10
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/e0/ea/2cfd1172427d4261a807da446bb6bd7edf89bbdc730628909f8899a877d3/pyliven-0.1.1.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.1",
    "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": "e3205a072e9ee8392e152c3669a5ac2cdd0714f33feee4856cab9fa4f295a72e",
                "md5": "8c8a38829b050a7e3aa511f348e69472",
                "sha256": "ed5d466f876c636e4f3029eee52a4944d71a72605c34b2aadeefd90d87013c88"
            },
            "downloads": -1,
            "filename": "pyliven-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c8a38829b050a7e3aa511f348e69472",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 5185,
            "upload_time": "2024-10-27T20:16:09",
            "upload_time_iso_8601": "2024-10-27T20:16:09.225776Z",
            "url": "https://files.pythonhosted.org/packages/e3/20/5a072e9ee8392e152c3669a5ac2cdd0714f33feee4856cab9fa4f295a72e/pyliven-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e0ea2cfd1172427d4261a807da446bb6bd7edf89bbdc730628909f8899a877d3",
                "md5": "29078c1c0388038332712405ed931ed2",
                "sha256": "7fa04f55e218a9967f45f37d7787563b4fc055f6173374933eb6a27a9c220d87"
            },
            "downloads": -1,
            "filename": "pyliven-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "29078c1c0388038332712405ed931ed2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 8307,
            "upload_time": "2024-10-27T20:16:10",
            "upload_time_iso_8601": "2024-10-27T20:16:10.650359Z",
            "url": "https://files.pythonhosted.org/packages/e0/ea/2cfd1172427d4261a807da446bb6bd7edf89bbdc730628909f8899a877d3/pyliven-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-27 20:16:10",
    "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.35431s