Python Functional programming

Open-source Python projects categorized as Functional programming

Top 23 Python Functional programming Projects

Functional programming
  1. Toolz

    A functional standard library for Python.

    Project mention: This Week In Python | dev.to | 2025-01-24

    toolz – A functional standard library for Python

  2. Judoscale

    Save 47% on cloud hosting with autoscaling that just works. Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.

    Judoscale logo
  3. Coconut

    Simple, elegant, Pythonic functional programming.

    Project mention: Haskelling My Python | news.ycombinator.com | 2025-04-21

    not too far from that there's https://coconut-lang.org/

  4. returns

    Make your functions return something meaningful, typed, and safe!

    Project mention: Top FP technologies | dev.to | 2024-10-29

    Python is not functional language itself. And as I can relate does not want to be: look at lambda for instance. But this package allows to write more robust applications. Link to lib: GitHub - dry-python/returns: Make your functions return something meaningful, typed, and safe!

  5. funcy

    A fancy and practical functional tools

  6. fn.py

    Functional programming in Python: implementation of missing features to enjoy FP

  7. thinc

    🔮 A refreshing functional take on deep learning, compatible with your favorite libraries

  8. PyFunctional

    Python library for creating data pipelines with chain functional programming

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. Pyrsistent

    Persistent/Immutable/Functional data structures for Python

  11. result

    NOT MAINTAINED - A simple Rust like Result type for Python 3. Fully type annotated. (by rustedpy)

  12. articles

    thoughts on programming

    Project mention: Simple collaborative filtering in pure PostgreSQL | news.ycombinator.com | 2025-02-15
  13. shell-functools

    Functional programming tools for the shell

  14. CyToolz

    Cython implementation of Toolz: High performance functional utilities

  15. Deal

    🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.

  16. classes

    Smart, pythonic, ad-hoc, typed polymorphism for Python

  17. Expression

    Functional programming for Python (by dbrattli)

  18. torchopt

    TorchOpt is an efficient library for differentiable optimization built upon PyTorch.

  19. scrapscript

    A functional, content-addressable programming language.

    Project mention: Into CPS, Never to Return | news.ycombinator.com | 2024-12-25

    * https://bernsteinbear.com/blog/row-poly/

    and the repo for the main implementation: https://github.com/tekknolagi/scrapscript

  20. contracts

    PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API. (by AndreaCensi)

  21. aioreactive

    Async/await reactive tools for Python 3.10+

  22. effect

    effect isolation in Python, to facilitate more purely functional code (by python-effect)

  23. icontract

    Design-by-contract in Python3 with informative violation messages and inheritance

    Project mention: Astral – "We're building a new static type checker for Python" | news.ycombinator.com | 2025-01-29

    pycontracts: https://github.com/AlexandruBurlacu/pycontracts

    icontract: https://github.com/Parquery/icontract

    The DbC Design-by-Contract patterns supported by icontract probably have code quality returns beyond saving work.

    Safety critical coding guidelines specify that there must be runtime type and value checks at the top of every function.

  24. funcparserlib

    Recursive descent parsing library for Python based on functional combinators

  25. contracts

    An implementation of contracts for Python. (by deadpixi)

  26. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Functional programming discussion

Log in or Post with

Python Functional programming related posts

  • Simple collaborative filtering in pure PostgreSQL

    1 project | news.ycombinator.com | 15 Feb 2025
  • Feeling deceived when receiving (non-labeled) LLM-generated messages

    1 project | news.ycombinator.com | 22 Jan 2025
  • Toolz: A functional standard library for Python with no dependencies

    1 project | news.ycombinator.com | 20 Jan 2025
  • All Lisp Indentation Schemes Are Ugly

    3 projects | news.ycombinator.com | 19 Jan 2025
  • KlongPy: High-Performance Array Programming in Python

    7 projects | news.ycombinator.com | 1 Dec 2024
  • Oxygene: A modern language built on the foundation of Object Pascal

    1 project | news.ycombinator.com | 10 Sep 2024
  • Coconut Programming Language

    1 project | news.ycombinator.com | 10 Aug 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 29 Apr 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Functional programming projects in Python? This list will help you:

# Project Stars
1 Toolz 4,839
2 Coconut 4,179
3 returns 3,889
4 funcy 3,419
5 fn.py 3,363
6 thinc 2,844
7 PyFunctional 2,421
8 Pyrsistent 2,076
9 result 1,657
10 articles 1,586
11 shell-functools 1,224
12 CyToolz 1,039
13 Deal 790
14 classes 702
15 Expression 620
16 torchopt 581
17 scrapscript 427
18 contracts 407
19 aioreactive 386
20 effect 374
21 icontract 363
22 funcparserlib 351
23 contracts 345

Sponsored
Save 47% on cloud hosting with autoscaling that just works
Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.
judoscale.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?