4 个仓库
Libraries providing functional programming primitives and collection manipulation tools specifically for Python.
Distinct from Functional Utility Libraries: Distinct from Functional Utility Libraries: specifically targets Python, providing iterable transformations, function composition, and lazy evaluation for that language.
Explore 4 awesome GitHub repositories matching programming languages & runtimes · Python Functional Programming Libraries. Refine with filters or upvote what's useful.
Toolz is a Python library that implements functional programming utilities for iterable transformation, dictionary manipulation, function composition, and lazy evaluation. It provides a set of pure functions designed to work with Python's built-in data structures, enabling concise and composable data processing workflows. What distinguishes toolz is its support for curried partial application, allowing functions to be incrementally applied and reused. It includes dictionary-centric operations that handle nested structures, and offers iterable chain transformers that combine mapping, filtering
A Python library providing functional tools including iterable transformations, function composition, and lazy evaluation.
Coconut 是一种编译为 Python 的函数式编程语言。它作为一个源到源编译器,将高级函数式语法转换为兼容的 Python 代码,以保持运行时兼容性。 该语言引入了一种用于模式匹配和解构复杂数据结构的逻辑系统。它提供了一种尾调用优化机制,以防止深度递归函数调用期间的栈溢出错误,并采用惰性求值引擎来推迟计算,直到明确需要结果为止。 该项目包括对代数数据类型、管道运算符和部分应用的支持。它还提供了一个通过跨多个 CPU 核心分发映射操作来进行并行数据处理的框架。
Brings functional programming primitives like piping and partial application to the Python environment.
Returns 是一个 Python 函数式编程库,提供用于管理状态、错误处理和可选性的类型安全容器。它作为一个单子 (monadic) 容器库和类型安全错误处理框架,用 Result 和 Optional 容器替换传统的 try-catch 块和空值检查,从而将异常视为数据。 该项目的特色在于使用专门的 Mypy 静态分析插件来验证函数式流水线并模拟高阶类型。它提供了通过 IO 容器隔离副作用的机制,并提供了一个类型安全依赖注入框架,将依赖项的提供推迟到计算的最终执行阶段。 该库涵盖了广泛的函数式原语,包括柯里化、部分应用和声明式数据流水线的组合。它通过将协程包装在容器中来链式处理非阻塞操作,从而支持异步工作流管理,并包括用于资源生命周期管理和自定义容器代数定律验证的实用程序。
Provides a comprehensive toolkit of functional programming primitives and type-safe containers specifically for Python.
more-itertools 是一个 Python 可迭代对象工具库,提供用于操作、过滤和转换数据序列的高级函数。它作为一个数据流处理工具包和一组用于迭代器状态管理的工具,扩展了标准 Python itertools 模块的功能。 该库包括一个用于生成排列、组合和幂集的组合数学工具包,以及用于数论计算和矩阵运算的例程。它还提供了用于流状态管理的工具,允许用户查看即将到来的元素或在序列内搜索,以控制数据的消费方式。 附加功能涵盖了用于分块、交错和展平复杂序列的数据处理例程。该工具包还包括分析可迭代对象属性和同步并发数据流的函数。
Provides an advanced collection of functional primitives and iterable transformation tools that extend the standard Python itertools module.