Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.1.dev3

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.1.dev3
File Size Uploaded
flpit-0.1.1.dev3.tar.gz 7.6 kB Details

Built distribution (wheel)

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

Total release size: 16.3 kB

Release files / flpit-0.1.1.dev3.tar.gz

Download URL flpit-0.1.1.dev3.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e44a34ad2da6c5e6e36684082150b3c30739b271d66a187afc3e95cc6569f699
BLAKE2b-256 checksum
How to use checksums
c21f27599cd6f830484ef115508b277843617b4171ae78ae35780ccc81700527
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.1.dev3-py3-none-any.whl

Download URL flpit-0.1.1.dev3-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
876af977317bdb4d7f37ad9768f316b46aa00567b794bc3425d293c98995b3e0
BLAKE2b-256 checksum
How to use checksums
6286f6c11932d53c3dc9b8f0f60df29ad72885f34fd8fe4c2ff62b5dc4fab670
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