od-2.0.2
توضیحات
Shorthand syntax for building OrderedDicts
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | od-2.0.2 |
| نام | od |
| نسخه کتابخانه | 2.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yann Kaiser |
| ایمیل نویسنده | kaiser.yann@gmail.com |
| آدرس صفحه اصلی | https://github.com/epsy/od |
| آدرس اینترنتی | https://pypi.org/project/od/ |
| مجوز | MIT |
od
==
.. image:: https://github.com/epsy/od/actions/workflows/ci.yml/badge.svg?branch=master
:target: https://github.com/epsy/od/actions/workflows/ci.yml
.. image:: https://coveralls.io/repos/github/epsy/od/badge.svg?branch=master
:target: https://coveralls.io/github/epsy/od?branch=master
The ``od`` package adds a shorthand syntax to create instances of `OrderedDict
<https://docs.python.org/3/library/collections.html#collections.OrderedDict>`_
::
>>> import od
>>>
>>> od["cat": "fish", "mouse": "cheese"]
OrderedDict([('cat', 'fish'), ('mouse', 'cheese')])
>>> od["mouse": "cheese", "cat": "fish"]
OrderedDict([('mouse', 'cheese'), ('cat', 'fish')])
You can also use it like the regular constructor for ``OrderedDict``::
>>> od()
OrderedDict()
>>> an_iterable = [("cat", "fish"), ("mouse", "cheese")]
>>> od(an_iterable)
OrderedDict([('cat', 'fish'), ('mouse', 'cheese')])
Install this package using `pip <https://pip.pypa.io/en/stable/installing/>`_::
$ pip install --user od
نیازمندی
| مقدار | نام |
|---|---|
| - | repeated-test |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl od-2.0.2:
pip install od-2.0.2.whl
نصب پکیج tar.gz od-2.0.2:
pip install od-2.0.2.tar.gz