Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A awesome-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 317
    • Merge requests 317
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vinta Chen
  • awesome-python
  • Merge requests
  • !1439

Adds dry-python/returns

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/sobolevn/patch-3 into master Nov 22, 2019
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: sobolevn

What is this Python project?

Make your functions return something meaningful, typed, and safe!

Features

  • Provides a bunch of primitives to write declarative business logic
  • Enforces better architecture
  • Fully typed with annotations and checked with mypy, PEP561 compatible
  • Has a bunch of helpers for better composition
  • Pythonic and pleasant to write and to read (!)
  • Support functions and coroutines, framework agnostic
  • Easy to start: has lots of docs, tests, and tutorials

Link: https://github.com/dry-python/returns

Related:

  • https://returns.readthedocs.io/en/latest/
  • https://github.com/dry-python/classes
  • https://sobolevn.me/2019/02/python-exceptions-considered-an-antipattern
  • https://sobolevn.me/2019/03/enforcing-srp
  • https://github.com/typeddjango/awesome-python-typing

What's the difference between this Python project and similar ones?

Currently it is the only typed monads implementation I know. Other packages are not typed and not checked with mypy

Other similar projects are listed here: https://returns.readthedocs.io/en/latest/#inspirations

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/sobolevn/patch-3