TriOTP, the OTP framework for Python Trio

See documentation for more informations.

License Development Status Latest release Supported Python versions Supported Python implementations Download format Build status Code test coverage Downloads


This project is a simplified implementation of the Erlang/Elixir OTP framework.

It is built on top of the Trio async library and provides:

  • applications: the root of a supervision tree

  • supervisors: automatic restart of children tasks

  • mailboxes: message-passing between tasks

  • gen_servers: generic server task

Why ?

Since I started writing Erlang/Elixir code, I’ve always wanted to use its concepts in other languages.

I made this library for fun and most importantly: to see if it was possible. As it turns out, it is!

Getting Started

Indices and tables