معرفی شرکت ها


dry-monads-0.2.0


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Monads for python made simple and safe.
ویژگی مقدار
سیستم عامل -
نام فایل dry-monads-0.2.0
نام dry-monads
نسخه کتابخانه 0.2.0
نگهدارنده ['sobolevn']
ایمیل نگهدارنده ['mail@sobolevn.me']
نویسنده sobolevn
ایمیل نویسنده mail@sobolevn.me
آدرس صفحه اصلی https://dry-monads.readthedocs.io
آدرس اینترنتی https://pypi.org/project/dry-monads/
مجوز MIT
# dry-monads [![wemake.services](https://img.shields.io/badge/%20-wemake.services-green.svg?label=%20&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake.services) [![Build Status](https://travis-ci.org/sobolevn/dry-monads.svg?branch=master)](https://travis-ci.org/sobolevn/dry-monads) [![Coverage Status](https://coveralls.io/repos/github/sobolevn/dry-monads/badge.svg?branch=master)](https://coveralls.io/github/sobolevn/dry-monads?branch=master) [![Documentation Status](https://readthedocs.org/projects/dry-monads/badge/?version=latest)](https://dry-monads.readthedocs.io/en/latest/?badge=latest) [![Python Version](https://img.shields.io/pypi/pyversions/dry-monads.svg)](https://pypi.org/project/dry-monads/) [![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide) Monads for `python` made simple and safe. ## Features - Provides primitives to write declarative business logic - Fully typed with annotations and checked with `mypy`, allowing you to write type-safe code as well - No operator overloading or other unpythonic stuff that makes your eyes bleed ## Installation ```bash pip install dry-monads ``` ## What's inside? We have several the most iconic monads inside: - [Result, Failure, and Success](https://dry-monads.readthedocs.io/en/latest/pages/either.html) (also known as `Either`, `Left`, and `Right`) - [Maybe, Some, and Nothing](https://dry-monads.readthedocs.io/en/latest/pages/maybe.html) We also care about code readability and developer experience, so we have included some useful features to make your life easier: - [Do notation](https://dry-monads.readthedocs.io/en/latest/pages/do-notation.html) - [Helper functions](https://dry-monads.readthedocs.io/en/latest/pages/functions.html) ## Example ```python from dry_monads.do_notation import do_notation from dry_monads.either import Result, Success, Failure class CreateAccountAndUser(object): """Creates new Account-User pair.""" @do_notation def __call__(self, username: str, email: str) -> Result['User', str]: """Can return a Success(user) or Failure(str_reason).""" user_schema = self._validate_user(username, email).unwrap() account = self._create_account(user_schema).unwrap() return self._create_user(account) # Protected methods # ... ``` We are [covering what's going on in this example](https://dry-monads.readthedocs.io/en/latest/pages/do-notation.html) in the docs. ## Inspirations This module is heavily based on: - [dry-rb/dry-monads](https://github.com/dry-rb/dry-monads) - [Ø](https://github.com/dbrattli/OSlash) - [pymonad](https://bitbucket.org/jason_delaat/pymonad)


نیازمندی

مقدار نام
>=3.7,<4.0 typing-extensions


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

مقدار نام
>=3.6,<4.0 Python


نحوه نصب


نصب پکیج whl dry-monads-0.2.0:

    pip install dry-monads-0.2.0.whl


نصب پکیج tar.gz dry-monads-0.2.0:

    pip install dry-monads-0.2.0.tar.gz