全部搜尋項
trixie  ] [  forky  ] [  sid  ]
[ 原始碼: python-returns  ]

套件:python3-returns(0.25.0-1)

python3-returns 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 python-returns

維護小組:

外部的資源:

相似套件:

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.

其他與 python3-returns 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-returns

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 144。9 kB708。0 kB [檔案列表]