Name | magic-import JSON |
Version |
0.2.2
JSON |
| download |
home_page | |
Summary | Import python object from string and return the reference of the object. The object can be a class, instance, variable and anything else, and can be from class, instance, module, global/local environment. |
upload_time | 2023-09-08 02:40:27 |
maintainer | Zhao JianRu |
docs_url | None |
author | Zhao JianRu |
requires_python | |
license | MIT |
keywords |
magic-import
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# magic-import
Import python object from string and return the reference of the object. The object can be a class, instance, variable and anything else, and can be from class, instance, module, global/local environment.
## Install
```
pip install magic-import
```
## Test Passed On Python Versions
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
## Usage
```
from magic_import import import_from_string
listdir = import_from_string("os.listdir")
files = listdir(".")
```
## Release
### 0.1.0
- First release
### 0.1.1
### 0.1.2
### 0.1.3
### 0.2.0
- Some updates.
### 0.2.2
- Test passed on all python versions.
Raw data
{
"_id": null,
"home_page": "",
"name": "magic-import",
"maintainer": "Zhao JianRu",
"docs_url": null,
"requires_python": "",
"maintainer_email": "zhaojianru@zencore.cn",
"keywords": "magic-import",
"author": "Zhao JianRu",
"author_email": "zhaojianru@zencore.cn",
"download_url": "https://files.pythonhosted.org/packages/48/47/47041dbd2590678d470b4c3d9ef2f3ca779603dc336eee3684e06c0b681b/magic-import-0.2.2.tar.gz",
"platform": null,
"description": "# magic-import\n\nImport python object from string and return the reference of the object. The object can be a class, instance, variable and anything else, and can be from class, instance, module, global/local environment.\n\n## Install\n\n```\npip install magic-import\n```\n\n## Test Passed On Python Versions\n\n- 2.7\n- 3.2\n- 3.3\n- 3.4\n- 3.5\n- 3.6\n- 3.7\n- 3.8\n- 3.9\n- 3.10\n- 3.11\n\n## Usage\n\n```\nfrom magic_import import import_from_string\n\nlistdir = import_from_string(\"os.listdir\")\nfiles = listdir(\".\")\n```\n\n\n## Release\n\n### 0.1.0\n\n- First release\n\n### 0.1.1\n### 0.1.2\n### 0.1.3\n### 0.2.0\n\n- Some updates.\n\n### 0.2.2\n\n- Test passed on all python versions.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Import python object from string and return the reference of the object. The object can be a class, instance, variable and anything else, and can be from class, instance, module, global/local environment.",
"version": "0.2.2",
"project_urls": null,
"split_keywords": [
"magic-import"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3ff523855a79e9bf59e83e7ed14c371de0b9b8c0c34be3cbe7ff35058d867e72",
"md5": "c4925a8e546d5837f52d78146a9c3ede",
"sha256": "63ff636371c240c39f38bec5ae5bd87310df386d0343efbf3a6d66e27e5314aa"
},
"downloads": -1,
"filename": "magic_import-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c4925a8e546d5837f52d78146a9c3ede",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3297,
"upload_time": "2023-09-08T02:40:25",
"upload_time_iso_8601": "2023-09-08T02:40:25.966713Z",
"url": "https://files.pythonhosted.org/packages/3f/f5/23855a79e9bf59e83e7ed14c371de0b9b8c0c34be3cbe7ff35058d867e72/magic_import-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "484747041dbd2590678d470b4c3d9ef2f3ca779603dc336eee3684e06c0b681b",
"md5": "19b37264c836b7c15c4f5b584fc99f68",
"sha256": "662592f5d6c21f71d9c79a76da56cfdc0f445cbeec8f3b73d3c8423c8fc85b62"
},
"downloads": -1,
"filename": "magic-import-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "19b37264c836b7c15c4f5b584fc99f68",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3512,
"upload_time": "2023-09-08T02:40:27",
"upload_time_iso_8601": "2023-09-08T02:40:27.920005Z",
"url": "https://files.pythonhosted.org/packages/48/47/47041dbd2590678d470b4c3d9ef2f3ca779603dc336eee3684e06c0b681b/magic-import-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-08 02:40:27",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "magic-import"
}