Skip to main content

flp

Fluent LINQ for Python – flip your iterables

flp brings a LINQ-inspired fluent API to standard Python iterables with full static typing.

⚡ Key Features

  • ⚡ Lazy Evaluation (FlpIt): Deferred execution using Python iterators and generators.
  • 📦 Materialized Container (FlpList): Eager, mutable container backed by collections.UserList.
  • 🔹 Static-First Typing: Built for full mypy and pyright inference without plugins.
  • 🔄 No Implicit Caching: Query results are not cached unless explicitly documented, such as order_by.

⚙️ Installation

uv add flpit

💡 Quick Start

import flp
from flp import FlpIt, FlpList

# Deferred iterable via shorthand
data: FlpIt[int] = flp.it([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

# Deferred / lazy pipeline
query: FlpIt[int] = (
    data
    .where(lambda x: x % 2 == 0)
    .select(lambda x: x * 10)
)

# Materialize query results explicitly
result: FlpList[int] = query.to_list()  # [20, 40, 60, 80, 100]

# Or start directly with an eager container
eager_list: FlpList[int] = flp.lst([1, 2, 3, 4])

📜 License

Distributed under the MIT License. See LICENSE for more information.

Release files for flpit 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flpit 0.1.2
File Size Uploaded
flpit-0.1.2.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flpit 0.1.2
File Interpreter ABI Platform
flpit-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / flpit-0.1.2.tar.gz

Download URL flpit-0.1.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0456fa2ecfc0708de3f2b8264fd6cf30e50e6cce764843dab1847daf761e58e5
BLAKE2b-256 checksum
How to use checksums
1a5fa348265d9426cd986a6d149a609c4f03ea4c76cd6700033f36452ecde84d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / flpit-0.1.2-py3-none-any.whl

Download URL flpit-0.1.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faf0d74463b3ecbb86d84f09881b6d3d305eb0222b216839ec56574b3de06d26
BLAKE2b-256 checksum
How to use checksums
98a8c549aa096da7a4a5ef53f4c180c8643971631669c75745e10c72673e85bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page