Skip to main content

Python functools for async!

Project description

Build Status License Documentation Status


Library to help in Python functional programing. It’s asyncio compatible.

Basic idea behind it is Railway Oriented Programing.

This allows us to:

  • simplify our code.
  • improve error management.
  • be cool! be functional!


Old code example:

async def create_user_handler(request) -> Response:
        user = check_valid_user(request)
    except InvalidBody:
        return_422('Invalid body')
    except UserAlreadyExists:
        return_409('User already exists')

ROP example:

async def create_user_handler(request) -> Response:
    return await compose(

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiofunctools, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size aiofunctools-0.0.3-py3-none-any.whl (14.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page