Expression

screenshot of Expression

Functional programming for Python

Overview

Expression is a Python library that aims to facilitate pragmatic and high-performance functional programming in Python 3.11+. Inspired by F#, Expression provides functional features to enhance Python's capabilities without over-abstracting or requiring purely functional programming. It enables Python developers to work with concepts such as Railway Oriented Programming (ROP) and pipelining while maintaining Pythonic simplicity.

Features

  • Pragmatic Functional Programming: Enables practical and productive functional programming in Python without being overly abstract.
  • Inspired by F#: Provides functional features inspired by F# to enhance Python's capabilities.
  • Railway Oriented Programming (ROP): Facilitates better and predictable error handling through ROP concepts.
  • Type-Safe: Ensures type safety in code to make refactoring safer and more reliable.
  • Ease for F# Developers: Makes it easier for F# developers to use Python by incorporating familiar concepts and abstractions.
  • Pythonic Approach: Enhances Python by allowing functional programming in a Pythonic manner.