All Projects → sfermigier → Awesome Functional Python

sfermigier / Awesome Functional Python

A curated list of awesome things related to functional programming in Python.

Projects that are alternatives of or similar to Awesome Functional Python

React Collection Helpers
A suite of composable utility components to manipulate collections.
Stars: ✭ 109 (-93.34%)
Mutual labels:  functional-programming
F
Functional stuff for Python
Stars: ✭ 113 (-93.1%)
Mutual labels:  functional-programming
Functional Way
Write small programs (eg -algorithms) in a functional way.
Stars: ✭ 115 (-92.97%)
Mutual labels:  functional-programming
Masala Parser
Javascript Generalized Parser Combinators
Stars: ✭ 110 (-93.28%)
Mutual labels:  functional-programming
Ddd On Scala
DDD sample implementation by Scala.
Stars: ✭ 113 (-93.1%)
Mutual labels:  functional-programming
Ramda Debug
🐏 Debugging for Ramda.
Stars: ✭ 113 (-93.1%)
Mutual labels:  functional-programming
Python Memoization
A powerful caching library for Python, with TTL support and multiple algorithm options.
Stars: ✭ 109 (-93.34%)
Mutual labels:  functional-programming
Pointless
Pointless: a scripting language for learning and fun
Stars: ✭ 116 (-92.91%)
Mutual labels:  functional-programming
Wonder Editor
Functional 3D Webgl Editor
Stars: ✭ 113 (-93.1%)
Mutual labels:  functional-programming
Cilib
Typesafe, purely functional Computational Intelligence
Stars: ✭ 114 (-93.04%)
Mutual labels:  functional-programming
Scalajs React
Facebook's React on Scala.JS
Stars: ✭ 1,524 (-6.9%)
Mutual labels:  functional-programming
Freasy Monad
Easy way to create Free Monad using Scala macros with first-class Intellij support.
Stars: ✭ 112 (-93.16%)
Mutual labels:  functional-programming
Combinators Js
🐦 Some combinators
Stars: ✭ 114 (-93.04%)
Mutual labels:  functional-programming
Purescript Spec
Testing framework for Purescript
Stars: ✭ 108 (-93.4%)
Mutual labels:  functional-programming
Dunai
Classic and Arrowized Functional Reactive Programming, Reactive Programming, and Stream programming, all via Monadic Stream Functions
Stars: ✭ 115 (-92.97%)
Mutual labels:  functional-programming
Y Combinator For Non Programmers
🍱 Y Combinator for Non-programmers: A Wild Introduction to Computer Science
Stars: ✭ 109 (-93.34%)
Mutual labels:  functional-programming
Rxtuples
Simple tuples to use with RxJava [STABLE]
Stars: ✭ 113 (-93.1%)
Mutual labels:  functional-programming
Cyclejs
A functional and reactive JavaScript framework for predictable code
Stars: ✭ 9,996 (+510.63%)
Mutual labels:  functional-programming
Articles
thoughts on programming
Stars: ✭ 1,515 (-7.45%)
Mutual labels:  functional-programming
Kind
A modern proof language
Stars: ✭ 2,075 (+26.76%)
Mutual labels:  functional-programming

Awesome Functional Python

A curated list of awesome things related to functional programming in Python.

Awesome

Official documentation

  • Functional Programming HOWTO - "In this document, we’ll take a tour of Python’s features suitable for implementing programs in a functional style".

Books

Free books / ebooks

Non-free books

Talks

Introductory

  • Functional Programming with Python (slides) - Alexey Kachayev, UA PYCon 2012.
  • Purely Functional Programming in Python: Pure Fun (slides) - Christopher Armstrong, PyTenessee 2015.
  • Side Effects are a Public API (video) - Christopher Armstrong, Strangeloop 2015
  • Functional Programming with Python (video) - Mike Müller, PyCon US 2013.
  • Using Functional Programming for efficient Data Processing and Analysis (video) - Reuben Cummings, PyCon US 2017.
  • Immutable Programming Writing Functional Python (slides, video), Calen Pennington, PyCon 2017.
  • Functional Programming inside OOP? It’s possible with Python (Slides) - Carlos Villavicencio, EuroPython 2021.
  • A Hitchhiker’s Guide to functools (Slides) - Scott Irwin, EuroPython 2021.

Advanced or specialized

  • Functionalish programming in Python with effect (video), Robert Collins, NZ PyCon 2015.
  • Monadic Parsing in Python (slides), Alexey Kachayev, KyivPy 2014.
  • Immutability and Python - Introducing Pyrsistent (slides), Tobias Gustafsson, 2014.
  • Understanding Transducers (slides, video), Austin Bingham, PyCon Belarus 2015.

Data science oriented

  • Functional Performance with Core Data Structures (video), Matthew Rocklin, PyData SV 2014.
  • Old School - Functional Data Analysis (video), Matthew Rocklin, PyData NYC 2013.
  • Learning Data Science Using Functional Python (video, slides), Joel Grus, PyData Seattle 2015.

Other resources

Video lectures (not free)

Blog posts

Scientific papers

Presentation slides

Libraries

General

  • toolz ★3752 - "A functional standard library for Python".

  • fn.py ★3163 - "Functional programming in Python: implementation of missing features to enjoy FP" (unmaintained since 2014).

  • funcy ★2689 - "A fancy and practical functional tools".

  • more-itertools ★2244 - "More routines for operating on iterables, beyond itertools".

  • PyFunctional ★1941 - "Python library for functional programming with collections in a data pipeline style".

  • hask ★838 - "Haskell language features and standard libraries in pure Python".

  • Pydash ★886 - "The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library".

  • Expression ★159 - "Pragmatic functional programming for Python inspired by F#". Successor of OSlash.

  • OSlash ★626 - "Functors, Applicatives, And Monads in Python".

  • Effect ★333 - "Effect isolation in Python, to facilitate more purely functional code".

  • result ★384 - A simple Rust like Result type for Python 3. Fully type annotated.

  • Underscore.py ★277 - "A Python port of excellent javascript library underscore.js".

  • pyramda ★123 - "Python package supporting heavy functional programming through currying. Translation of the Ramda library from javascript to python".

  • Phi ★121 - "A library that intends to remove as much of the pain as possible from your functional programming experience in Python."

  • fnc ★139 - "Functional programming in Python with generators and other utilities".

  • pfun ★114 - "Pure functional programming in python".

  • PyMonad - "a small library implementing monads and related data abstractions -- functors, applicative functors, and monoids -- for use in implementing functional style programs".

  • pyMonet ★28 - "High abstract python library for functional programming. Contains algebraic data structures known from Haskell or Scala".

  • unpythonic ★46 - "Supercharge your Python with parts of Lisp and Haskell."

  • ziopy ★41 - "ZIO for Python (with ZIO = A type-safe, composable library for async and concurrent programming in Scala)"

Return types

  • returns ★2015 - "Make your functions return something meaningful, typed, and safe!"
  • Option ★15 - Rust-like Option and Result types in Python.
  • Meiga ★18 - A simple, typed and monad-based Result type for Python.
  • Safetywrap ★22 - Fully typesafe, Rust-like Result and Option types for Python.

Immutable / persistent data structures

  • Pyrsistent ★1618 - "Persistent/Immutable/Functional data structures for Python".
  • Immutables ★898 - "An immutable mapping type for Python."
  • Discodb ★95 - "An efficient, immutable, persistent mapping object".
  • Funktown ★74 - "Immutable Data Structures for Python".
  • Amino ★31 - "functional data structures and type classes".
  • Pysistence - "Pysistence is a project that seeks to make functional programming in python easier".

Pattern matching

(Pattern matching is now a standard feature in Python 3.10).

  • pampy ★3419 - "Pampy: The Pattern Matching for Python you always dreamed of."
  • python-pattern-matching ★156 - "Python pattern matching like functional languages."
  • patmat ★32 - "Functional-style recursive pattern matching in Python. Crazy stuff."
  • apm ★89 - "Pattern Matching for Python 3.8+ in a simple, yet powerful, extensible manner."

Tranducers

  • Tranducers-Python ★190 - "Transducers are composable algorithmic transformations".
  • Transducers ★51 - "This is a port of the transducer concept from Clojure to Python, with an emphasis on providing as Pythonic as interpretation of transducers as possible, rather than reproducing Clojurisms more literally".

Support for reactive style

  • RxPy ★4081 - "Reactive Extensions for Python".
  • broqer ★64 - "Library to operate with continuous streams of data in a reactive style"

Lenses and declarative data manipulations

  • Glom ★1438 - "Python's nested data operator (and CLI), for all your declarative restructuring needs.".
  • python-lenses ★208 - "A python lens library for manipulating deeply nested immutable structures".

Other / specialized

  • deal ★268 - "Design by contract for Python with many validators support."
  • chainable ★167 - "Method chaining built on generators".
  • ADT ★137 - Algebraic data types for Python
  • sumtypes ★36 - "Sum Types, aka Tagged Unions, for Python".
  • python-mini-lambda ★10 - "Simple Lambda functions without lambda x: and with string conversion capability"

Languages

Functional programming languages that are not Python but are related to the Python ecosystem:

  • Hy - "A dialect of Lisp that's embedded in Python".
  • Coconut - "Simple, elegant, Pythonic functional programming".
  • Mochi ★906 - "A dynamically typed programming language for functional programming and actor-style programming.".
  • Tydy ★49 - "Tydy is a statically typed, functional-first programming language in the ML tradition. tydy is an implementation of Tydy as a Python library."
  • dg (aka dogelang) - "A programming language that compiles to CPython bytecode, much like Scala compiles to JVM's. That essentially means that dg is an alternative syntax for Python 3."
  • pixie ★2305 - "A lightweight and native lisp built in RPython". (Discussion on HN)
  • Pycket ★219 - "A rudimentary Racket implementation using RPython".
  • (How to Write a (Lisp) Interpreter (in Python)) and (An ((Even Better) Lisp) Interpreter (in Python)) - a couple of famous articles by Peter Norvig.

More languages that compile to Python.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].