toutes les options
trixie  ] [  forky  ] [  sid  ]
[ Paquet source : python-returns  ]

Paquet : python3-returns (0.26.0-1)

Liens pour python3-returns

Screenshot

Ressources Debian :

Télécharger le paquet source python-returns :

Responsables :

Ressources externes :

Paquets similaires :

Make your functions return something meaningful, typed, and safe

Basically, the answer is that returns provides useful abstractions that solve some problems every developer has:

 * ``Maybe`` helps to work with None in a type-safe way
 * ``Result`` helps to work with exceptions in a type-safe way
 * ``IO`` helps to separate pure code from impure code to make your
   architecture better
 * ``Future`` helps to write await free code
 * ``RequiresContext`` helps to inject dependencies in a very readable,
   explicit, type-safe, and clean way
 * ``Pipelines`` can be used independently or together with the types above to
   create complex, declarative, and type-safe data pipelines

On top of that ``returns`` provides useful interfaces that allows you to switch implementation on the fly. For example, you can write code that works the same way for sync and async execution flows. While being fully type-safe at the same time.

And you can write your own primitives that will solve any other problem you can possible have based on ``returns`` existing or your custom interfaces.

Autres paquets associés à python3-returns

  • dépendances
  • recommandations
  • suggestions
  • enhances

Télécharger python3-returns

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 145,1 ko709,0 ko [liste des fichiers]