dictpath-0.1.3
توضیحات
Object-oriented dictionary paths
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dictpath-0.1.3 |
| نام | dictpath |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Artur Maciag |
| ایمیل نویسنده | maciag.artur@gmail.com |
| آدرس صفحه اصلی | https://github.com/p1c2u/dictpath |
| آدرس اینترنتی | https://pypi.org/project/dictpath/ |
| مجوز | - |
********
dictpath
********
About
#####
Object-oriented dictionary paths
Key features
************
* Traverse resources like paths
* Access resources on demand with separate accessor layer
Usage
#####
.. code-block:: python
from dictpath import DictPath
d = {
"parts": {
"part1": {
"name": "Part One",
},
"part2": {
"name": "Part Two",
},
},
}
dp = DictPath(d)
# Concatenate paths with /
parts = dp / "parts"
# Stat path keys
"part2" in parts
# Open path dict
with parts.open() as parts_dict:
print(parts_dict)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*, != 3.4.* | Python |
نحوه نصب
نصب پکیج whl dictpath-0.1.3:
pip install dictpath-0.1.3.whl
نصب پکیج tar.gz dictpath-0.1.3:
pip install dictpath-0.1.3.tar.gz