Name | portlive JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | Install and import libraries in the current environment. |
upload_time | 2024-09-28 17:02:12 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2024 Soumyo Deep Gupta 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 |
d33pster
d33p0st
portlive
import
same-script
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Overview
`portlive` facilitates installation and usage of python modules from the same script. You can install them in one line and use them on the next.
### Usage
```python
# import the portlive method
>>> from portlive import portlive
# use it with `with` keyword
>>> with portlive(modules=['wrapper-bar.wrapper'], aliases=['wrapper']) as pl:
... # I know that there is a Wrapper class inside the `wrapper-bar.wrapper` module
... # I would have used this following import normally:
... # from wrapper_bar.wrapper import Wrapper
... wrapper_class = pl.wrapper.Wrapper()
... # Portlive created a property named `wrapper`
... # which is an alias for `wrapper-bar.wrapper`.
```
### Installation
Install using `pip`.
```bash
pip install portlive
```
### Issues
Submit any issues found or feature request [here](https://github.com/d33p0st/portlive/issues).
### Pull Requests
Submit pull requests [here](https://github.com/d33p0st/portlive/pulls).
Raw data
{
"_id": null,
"home_page": null,
"name": "portlive",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Soumyo Deep Gupta <deep.main.ac@gmail.com>",
"keywords": "d33pster, d33p0st, portlive, import, same-script",
"author": null,
"author_email": "Soumyo Deep Gupta <deep.main.ac@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6e/20/aef80ccb3cf45ab0625ab8e300593519a218a439f2b1102a7cbc191c3c6a/portlive-1.0.0.tar.gz",
"platform": null,
"description": "# Overview\n\n`portlive` facilitates installation and usage of python modules from the same script. You can install them in one line and use them on the next.\n\n### Usage\n\n```python\n# import the portlive method\n>>> from portlive import portlive\n\n# use it with `with` keyword\n>>> with portlive(modules=['wrapper-bar.wrapper'], aliases=['wrapper']) as pl:\n... # I know that there is a Wrapper class inside the `wrapper-bar.wrapper` module\n... # I would have used this following import normally:\n... # from wrapper_bar.wrapper import Wrapper\n... wrapper_class = pl.wrapper.Wrapper()\n... # Portlive created a property named `wrapper`\n... # which is an alias for `wrapper-bar.wrapper`.\n```\n\n### Installation\n\nInstall using `pip`.\n\n```bash\npip install portlive\n```\n\n### Issues\n\nSubmit any issues found or feature request [here](https://github.com/d33p0st/portlive/issues).\n\n### Pull Requests\n\nSubmit pull requests [here](https://github.com/d33p0st/portlive/pulls).\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Soumyo Deep Gupta 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": "Install and import libraries in the current environment.",
"version": "1.0.0",
"project_urls": {
"GitHub": "https://github.com/d33p0st/portlive",
"Issues": "https://github.com/d33p0st/portlive/pulls",
"Pull-Requests": "https://github.com/d33p0st/portlive/pulls"
},
"split_keywords": [
"d33pster",
" d33p0st",
" portlive",
" import",
" same-script"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3978a55219b6b77e1e39ecb64e2bd39739f35ac16807b145b0b47f504ab839a0",
"md5": "0d0b9c0e7b31837cd1538afb4e4c4b6b",
"sha256": "5f76fe248784a5ef974e80e41600e83780cfdd35dd11674bfa13e30865d7291d"
},
"downloads": -1,
"filename": "portlive-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0d0b9c0e7b31837cd1538afb4e4c4b6b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5876,
"upload_time": "2024-09-28T17:02:11",
"upload_time_iso_8601": "2024-09-28T17:02:11.011877Z",
"url": "https://files.pythonhosted.org/packages/39/78/a55219b6b77e1e39ecb64e2bd39739f35ac16807b145b0b47f504ab839a0/portlive-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6e20aef80ccb3cf45ab0625ab8e300593519a218a439f2b1102a7cbc191c3c6a",
"md5": "6a556f2c58fdcf15ef10fca365d12544",
"sha256": "de9f156c426fb9ff2d006f8310622a575ff3007ac31c9173404f0d66422c13f1"
},
"downloads": -1,
"filename": "portlive-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "6a556f2c58fdcf15ef10fca365d12544",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4906,
"upload_time": "2024-09-28T17:02:12",
"upload_time_iso_8601": "2024-09-28T17:02:12.986222Z",
"url": "https://files.pythonhosted.org/packages/6e/20/aef80ccb3cf45ab0625ab8e300593519a218a439f2b1102a7cbc191c3c6a/portlive-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-28 17:02:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "d33p0st",
"github_project": "portlive",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "portlive"
}