Skip to main content

Build Status License Documentation Status

aiofunctools

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!

Examples:

Old code example:

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

ROP example:

async def create_user_handler(request) -> Response:
    return await compose(
        check_valid_user,
        create_user,
        return_201
    )(request)

Metadata

Release files for aiofunctools 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for aiofunctools 0.0.3
File Interpreter ABI Platform Actions
aiofunctools-0.0.3-py3-none-any.whl Python 3 none any Details for aiofunctools-0.0.3-py3-none-any.whl

Release files / aiofunctools-0.0.3-py3-none-any.whl

Download URL aiofunctools-0.0.3-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9019e4a8814a74dbdf899c31d23340b38fa4ef2fe5dd70da30cad896386aa30f
BLAKE2b-256 checksum
How to use checksums
59ff6db0ee1af66c0aff6c01d54a0bb889b5cb3005c5904f60cec308bb7da1c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

Security for aiofunctools 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page