معرفی شرکت ها


destination-1.3.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

A Regex Based Path Routing Library.
ویژگی مقدار
سیستم عامل -
نام فایل destination-1.3.0
نام destination
نسخه کتابخانه 1.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Kaede Hoshikawa
ایمیل نویسنده futursolo@icloud.com
آدرس صفحه اصلی https://github.com/futursolo/destination
آدرس اینترنتی https://pypi.org/project/destination/
مجوز MIT
=========== Destination =========== .. image:: https://github.com/futursolo/destination/actions/workflows/everything.yml/badge.svg :target: https://github.com/futursolo/destination/actions/workflows/everything.yml .. image:: https://coveralls.io/repos/github/futursolo/destination/badge.svg?branch=master :target: https://coveralls.io/github/futursolo/destination?branch=master Destination is a framework agnostic regular expression based path routing library. Installation ============ .. code-block:: shell $ pip install -U destination Thread Safety ============= Currently, destination is not thread safe. Hence, you should deepcopy instances or add a mutex lock before using dispatchers and rules in the other threads. Usage ===== The default implementation of url parsing uses regular expressions. This is similar to Django and Tornado. You can create rules and dispatchers to resolve and parse your url using regular expressions set in the rules. Generally, you should start with :code:`ReRule` and :code:`Dispatcher`. You can create a :code:`ReRule` with the regular expression that is going to be used to parse (and possibly compose) the url, and an optional identifier to help you identify which rule is parsed, if an identifier is not provided or its value is set to :code:`None`, the rule itself will be used as an identifier. A :code:`Dispatcher` may be instantiated with no arguments as a storage of multiple rules. You can add or remove rules at any time. :code:`ReSubDispatcher` is a sub-dispatcher that can be added to a dispatcher as a rule. It uses regular expressions to chop off the part matched to the regular expression and dispatches the rest part to the rules added to it. :code:`BaseRule` and :code:`BaseDispatcher` can be used to create custom rules and dispatchers. Licence ======= MIT License Copyright (c) 2021 Kaede Hoshikawa Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


نیازمندی

مقدار نام
>=4.0.1,<5.0.0) importlib-metadata


زبان مورد نیاز

مقدار نام
>=3.6.1,<4.0.0 Python


نحوه نصب


نصب پکیج whl destination-1.3.0:

    pip install destination-1.3.0.whl


نصب پکیج tar.gz destination-1.3.0:

    pip install destination-1.3.0.tar.gz