معرفی شرکت ها


dictionary-search-1.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Small dictionary search utils
ویژگی مقدار
سیستم عامل -
نام فایل dictionary-search-1.0.0
نام dictionary-search
نسخه کتابخانه 1.0.0
نگهدارنده ['Daniel Garcia (cr0hn)']
ایمیل نگهدارنده ['cr0hn@cr0hn.com']
نویسنده Daniel Garcia / Cesar Gallego
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/cr0hn/python-dictionary-search
آدرس اینترنتی https://pypi.org/project/dictionary-search/
مجوز License :: OSI Approved :: MIT License
# Dictionary Search tools ![License](https://img.shields.io/badge/License-Apache2-SUCCESS) ![Pypi](https://img.shields.io/pypi/v/dictionary-search) ![Python Versions](https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10-blue) In a nutshell ``Dictionary Search`` is a small library to search in a dictionaries recursively. # Install ```bash > pip install dictionary-search ``` # Usage example ```python # File: example.py from dictionary_search import search_first, search_all d = { "a": { "b": { "c": "C value 1" } }, "e": "f", "h": [ { "i": "j" }, { "c": "C value 2" } ] } print("Search First: ", search_first(d, "c")) print("Search All: ", search_all(d, "c")) print() print("Search First (path as tuple): ", search_first(d, "c", path_as_string=False)) print("Search All (path as tuple): ", search_all(d, "c", path_as_string=False)) ``` After running the code, you will see: ``````bash > python examples/example.py Search First: ('a.b.c', 'C value 1') Search All: [('a.b.c', 'C value 1'), ('h.c', 'C value 2')] Search First (path as tuple): (('a', 'b', 'c'), 'C value 1') Search All (path as tuple): [(('a', 'b', 'c'), 'C value 1'), (('h', 'c'), 'C value 2')] ``` # Authors - [Cesar Gallego](https://github.com/CesarGallego) - [cr0hn](https://github.com/cr0hn) # License Dictionary Search is Open Source and available under the [MIT](https://github.com/cr0hn/python-dictionary-search/blob/main/LICENSE). # Contributions Contributions are very welcome. See [CONTRIBUTING.md](https://github.com/cr0hn/python-dictionary-search/blob/main/CONTRIBUTING.md>) or skim existing tickets to see where you could help out.


نحوه نصب


نصب پکیج whl dictionary-search-1.0.0:

    pip install dictionary-search-1.0.0.whl


نصب پکیج tar.gz dictionary-search-1.0.0:

    pip install dictionary-search-1.0.0.tar.gz