معرفی شرکت ها


drf-pipeline-views-0.9.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Django REST framework views using the pipeline pattern.
ویژگی مقدار
سیستم عامل -
نام فایل drf-pipeline-views-0.9.0
نام drf-pipeline-views
نسخه کتابخانه 0.9.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Matti Lamppu
ایمیل نویسنده lamppu.matti.akseli@gmail.com
آدرس صفحه اصلی https://github.com/MrThearMan/drf-pipeline-views
آدرس اینترنتی https://pypi.org/project/drf-pipeline-views/
مجوز MIT
# Django REST Framework Pipeline Views [![Coverage Status][coverage-badge]][coverage] [![Workflow Status][status-badge]][status] [![PyPI][pypi-badge]][pypi] [![Licence][licence-badge]][licence] [![Last Commit][commit-badge]][repo] [![Issues][issues-badge]][issues] [![Downloads][downloads-badge]][pypi] [![Python Version][version-badge]][pypi] [![Django Version][django-badge]][pypi] [![DRF Version][drf-badge]][pypi] ```shell pip install drf-pipeline-views ``` --- **Documentation**: [https://mrthearman.github.io/drf-pipeline-views/](https://mrthearman.github.io/drf-pipeline-views/) **Source Code**: [https://github.com/MrThearMan/drf-pipeline-views/](https://github.com/MrThearMan/drf-pipeline-views/) --- Inspired by a talk on [The Clean Architecture in Python][clean] by Brandon Rhodes, **drf-pipeline-views** aims to simplify writing testable API endpoints with [Django REST framework][drf] using the *[Pipeline Design Pattern][pipeline]*. The main idea behind the pipeline pattern is to process data in steps. Input from the previous step is passed to the next, resulting in a collection of "_data-in, data-out_" -functions. These functions can be easily unit tested, since none of the functions depend on the state of the objects in the other parts of the pipeline. Furthermore, IO can be separated into its own step, making the other parts of the logic simpler and faster to test by not having to mock or do any other special setup around the IO. This also means that the IO block, or in fact any other part of the application, can be replaced as long as the data flowing through the pipeline remains the same. ```python from pipeline_views import BasePipelineView from .my_serializers import InputSerializer, OutputSerializer from .my_validators import validator from .my_services import io_func, logging_func, integration_func class SomeView(BasePipelineView): pipelines = { "GET": [ InputSerializer, validator, io_func, integration_func, logging_func, OutputSerializer, ], } ``` Have a look at the [quickstart][quickstart] section in the documentation on basic usage. [clean]: https://archive.org/details/pyvideo_2840___The_Clean_Architecture_in_Python [drf]: https://www.django-rest-framework.org/ [pipeline]: https://java-design-patterns.com/patterns/pipeline/ [quickstart]: https://mrthearman.github.io/drf-pipeline-views/quickstart [coverage-badge]: https://coveralls.io/repos/github/MrThearMan/drf-pipeline-views/badge.svg?branch=main [status-badge]: https://img.shields.io/github/actions/workflow/status/MrThearMan/drf-pipeline-views/test.yml?branch=main [pypi-badge]: https://img.shields.io/pypi/v/drf-pipeline-views [licence-badge]: https://img.shields.io/github/license/MrThearMan/drf-pipeline-views [commit-badge]: https://img.shields.io/github/last-commit/MrThearMan/drf-pipeline-views [issues-badge]: https://img.shields.io/github/issues-raw/MrThearMan/drf-pipeline-views [version-badge]: https://img.shields.io/pypi/pyversions/drf-pipeline-views [downloads-badge]: https://img.shields.io/pypi/dm/drf-pipeline-views [django-badge]: https://img.shields.io/pypi/djversions/drf-pipeline-views [drf-badge]: https://img.shields.io/badge/drf%20versions-3.12%20%7C%203.13%20%7C%203.14-blue [coverage]: https://coveralls.io/github/MrThearMan/drf-pipeline-views?branch=main [status]: https://github.com/MrThearMan/drf-pipeline-views/actions/workflows/test.yml [pypi]: https://pypi.org/project/drf-pipeline-views [licence]: https://github.com/MrThearMan/drf-pipeline-views/blob/main/LICENSE [repo]: https://github.com/MrThearMan/drf-pipeline-views/commits/main [issues]: https://github.com/MrThearMan/drf-pipeline-views/issues


نیازمندی

مقدار نام
>=3.2 Django
>=3.12.0 djangorestframework
>=0.0.2 drf-serializer-inference
>=0.0.3 drf-openapi-schema
>=3.5.0 asgiref
>=6.0 PyYAML
>=4.4.0 typing-extensions
>=1.6.2 pydantic
>=0.16.0 uvloop
>=4.1.1 uritemplate


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

مقدار نام
>=3.9,<4 Python


نحوه نصب


نصب پکیج whl drf-pipeline-views-0.9.0:

    pip install drf-pipeline-views-0.9.0.whl


نصب پکیج tar.gz drf-pipeline-views-0.9.0:

    pip install drf-pipeline-views-0.9.0.tar.gz