good examples of functional-like python code that one can study?

This page summarizes the projects mentioned and recommended in the original post on /r/functionalprogramming

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. jax

    Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more

    thinc - defining neural nets in functional way jax, a new deep learning framework puts emphasis on functions rather than tensors, I've tested it for a couple of applications and it's really cool, you can write stuff like you'd write math expressions in papers using numpy. That speeds up development significantly, and makes code much more readable

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Coconut

    Simple, elegant, Pythonic functional programming.

    If you want to do FP style programming in Python you technically can, but it's been made to make the whole thing less pleasant and the language and community continues to reflect that. It would make more sense to try using something like Coconut, which is to Python what Scala is to Java: essentially a superset of the language that works in the same ecosystem. Or use an entirely different language like F# or OCaml, but that's a bigger jump than going from Python to Coconut.

  4. thinc

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

    thinc - defining neural nets in functional way jax, a new deep learning framework puts emphasis on functions rather than tensors, I've tested it for a couple of applications and it's really cool, you can write stuff like you'd write math expressions in papers using numpy. That speeds up development significantly, and makes code much more readable

  5. pfun

    Functional, composable, asynchronous, type-safe Python.

    Another examples: pfun - stuff you'd find in FP language, but in Python (like using monads for effects)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • 5 Open Source Python Projects You Should Know About in 2024

    5 projects | dev.to | 17 Sep 2024
  • [P] pytorch-widedeep model alert: SAINT and the FT-Transformer are now available in the library

    3 projects | /r/MachineLearning | 13 Aug 2021
  • The $100 ChatGPT: Why Karpathy's nanochat Represnts the Next Big Thing

    9 projects | dev.to | 4 May 2026
  • Adding Authentication and SSO to a Streamlit App

    4 projects | dev.to | 3 Apr 2026
  • Show HN: Tinyvision:-Building Ultra-Lightweight Models for Image Tasks

    1 project | news.ycombinator.com | 29 Mar 2026

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