dicti-0.0.1
توضیحات
Dictionary with case-insensitive keys
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dicti-0.0.1 |
| نام | dicti |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thomas Levine |
| ایمیل نویسنده | occurrence@thomaslevine.com |
| آدرس صفحه اصلی | https://github.com/tlevine/dicti |
| آدرس اینترنتی | https://pypi.org/project/dicti/ |
| مجوز | AGPL |
dicti
=======
`dicti` is a dictionary with case-insensitive keys.
It works like the normal `dict` except that key matching
is case-insensitive.
Instantiate like you would instantiate a normal dict;
for example, these work.
dict(foo = 'bar', answer = 42)
dicti(foo = 'bar', answer = 42)
dict({'foo': 'bar', 'answer': 42})
dicti({'foo': 'bar', 'answer': 42})
Methods that accept keys and have side-effects record
the original case, just as a normal dictionary does.
di = dicti()
di['cAsE'] = 1
di.keys() == ['cAsE']
di['Case'] = 1
di.keys() == ['Case']
di['caSE'] == 1
Methods that accept keys do the same thing regardless
of what case you pass the key in.
Keys are still stored in their original case, however;
the original keys are presented when you request them
with methods like `dicti.keys`.
نحوه نصب
نصب پکیج whl dicti-0.0.1:
pip install dicti-0.0.1.whl
نصب پکیج tar.gz dicti-0.0.1:
pip install dicti-0.0.1.tar.gz