PYPI PACKAGE AUDIT v0.4.1 Healthy Package

flpit

Fluent LINQ for Python โ€” flip your iterables

PyPkgScore flpit
Methodology & Criteria โ™ฅ Donate
755 / 1000
Quick Install
pip install flpit
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
150/200
4. Docs & SEO
155/200
5. CI Engineering
200/200
๐Ÿ“ฃ Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
1430
Last 30 days
2619
Total (180 days)
5249
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) โ€” PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) โœ• Not detected PyPI Integrity / Sigstore
Django Packages โ€” djangopackages.org
PyTech / PyPkgScore 755 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 โ–พ
LICENSEโœ“ 50 pts
SECURITY.mdโœ• 0 pts
CONTRIBUTING.mdโœ• 0 pts
CODE_OF_CONDUCT.mdโœ• 0 pts
2. PEP Metadata & Packaging200 / 200 โ–พ
Wheel (.whl)โœ“ 50 pts
pyproject.tomlโœ“ 50 pts
Project URLsโœ“ 50 pts
Trove Classifiersโœ“ 50 pts
3. Security & Supply Chain150 / 200 โ–พ
Zero CVEs (OSV)โœ“ 60 pts
Trusted Publishing (OIDC)โœ• 0 pts
Snyk / Audit Linkโœ“ 40 pts
HTTPS Repositoryโœ“ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 โ–พ
Structured READMEโœ“ 60 pts
Read the Docsโœ“ 50 pts
Django Packagesโœ• 0 pts
Website / Technical Articlesโœ“ 45 pts
5. Engineering, CI & Quality200 / 200 โ–พ
Automated Testsโœ“ 65 pts
GitHub Actions CIโœ“ 65 pts
CHANGELOG.mdโœ“ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)โœ“ 35 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide โ€” flpit

PyPI Metadata v0.4.1
Show full original documentation (English README) โ–พ

FlpIt

๐Ÿ“– Documentation | ๐ŸŒ GitHub | ๐Ÿ“ฆ PyPI

Fluent LINQ for Python โ€” LINQ semantics, Python-native execution

FlpIt brings a strongly typed, LINQ-style API to standard Python iterables. It combines the fluent query model and semantics of .NET LINQ with Python's native iterable and generator model.

If you know C# LINQ, you already know most of FlpIt. Existing LINQ examples, query patterns and documentation can generally be translated directly, which makes the .NET LINQ ecosystem a valuable reference for developers and AI coding assistants alike.

Queries are the doorway. Around them FlpIt carries over other parts of the .NET programming model: async streams (AsyncFlpIt), typed JSON and CSV serialization, an asyncio-free task runtime, channels and concurrent collections. It is tested on free-threaded Python (>=3.14t) in CI.

Semantic goal: flp strives to faithfully reproduce .NET LINQ semantics. Where Python's language or type system requires a different API contract, the contract is adapted accordingly, and each deviation is documented. The implementation is actively developed, and further deviations may still exist.

๐Ÿ’ก Quick Start

uv add flpit        # or: pip install flpit
from flpit import flp, FlpIt, FlpList

# A lazy, streaming pipeline: nothing has run yet.
query: FlpIt[int] = (
    flp.it(range(1, 11))
    .where(lambda x: x % 2 == 0)
    .select(lambda x: x * 10)
)

# Explicit materialization.
result: FlpList[int] = query.to_list()
# [20, 40, 60, 80, 100]

๐Ÿคธ Flipping the Pipeline

Native Python functional operations read inside-out. A FlpIt pipeline reads in the order things happen:

# ๐Ÿ” Native built-ins
result = list(map(lambda x: x * 10, filter(lambda x: x % 2 == 0, range(1, 11))))

# ๐Ÿคธ FlpIt pipeline
result = (
    flp.it(range(1, 11))
    .where(lambda x: x % 2 == 0)
    .select(lambda x: x * 10)
    .to_list()
)

โšก What's in the Box

  • Lazy queries (FlpIt) and materialized lists (FlpList): deferred, streaming execution over any Iterable[T], with where, select, select_many, order_by, group_by, joins and the rest of System.Linq.Enumerable. Guide
  • Async queries (AsyncFlpIt): the IAsyncEnumerable<T> counterpart, with async callbacks, cancellation and cleanup. Docs
  • Faithful semantics: when work happens, how much is read, what comes out and how it fails match .NET, also when operators are chained. Derived queries never affect each other. Semantics
  • Typed JSON and CSV: dataclasses to and from JSON and CSV, with msgspec or a pure-Python backend. JSON, CSV
  • Task runtime: an asyncio-free runtime modelled on the .NET thread pool, built for free-threaded Python, with Task.when_all, when_each, continuations and cooperative cancellation. Blocking and async def functions mix freely. Docs, sync and async
  • Channels, concurrent collections and threading primitives: Channel[T], ConcurrentDictionary, SemaphoreSlim and friends. Docs
  • Static-first typing: designed for precise pyrefly inference without plugins (mypy and pyright may give varying results).

FlpIt models in-memory LINQ (IEnumerable). It does not model IQueryable or expression trees.

โš™๏ธ Installation

uv add flpit

msgspec is installed automatically on CPython. On other interpreters (PyPy, Pyodide) flpit installs without it and uses the native JSON backend. Free-threaded CPython 3.13t is not supported by msgspec: install there with --no-deps, or use 3.14t.

๐Ÿ’ฌ Feedback

FlpIt is in beta. Bug reports and questions are welcome as GitHub issues.

๐Ÿงญ Like FlpIt? Give .NET a try.

Enjoying FlpIt's .NET-inspired programming model? Here's where it comes from: try C# in your browser, explore LINQ, or keep your Python and call it from .NET.

๐Ÿ“œ License

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

Migrated .NET Unit Tests

Migrated from the official .NET Runtime LINQ Tests. Note: The test cases exercise both core types, FlpIt and FlpList, with transitions between lazy and eager execution occurring as part of the individual test cases. async_linq/ is migrated from the .NET 10 System.Linq.AsyncEnumerable tests and exercises AsyncFlpIt on the flpit task runtime. channels/ is migrated from the System.Threading.Channels tests; concurrent/ from the System.Collections.Concurrent tests, including the shared IEnumerable / ICollection / IDictionary suites of Common/tests (ported to common/).

================================================================================
| Test Module File                                               |  Test Cases |
--------------------------------------------------------------------------------
| tests/nettests/                                                |             |
| โ”œโ”€โ”€ async_linq/                                                |             |
| โ”‚   โ”œโ”€โ”€ test_aggregate.py                                      |          11 |
| โ”‚   โ”œโ”€โ”€ test_all.py                                            |           7 |
| โ”‚   โ”œโ”€โ”€ test_any.py                                            |           8 |
| โ”‚   โ”œโ”€โ”€ test_append.py                                         |          20 |
| โ”‚   โ”œโ”€โ”€ test_average.py                                        |          10 |
| โ”‚   โ”œโ”€โ”€ test_cast.py                                           |           6 |
| โ”‚   โ”œโ”€โ”€ test_chunk.py                                          |           5 |
| โ”‚   โ”œโ”€โ”€ test_concat.py                                         |          24 |
| โ”‚   โ”œโ”€โ”€ test_contains.py                                       |          11 |
| โ”‚   โ”œโ”€โ”€ test_count.py                                          |           8 |
| โ”‚   โ”œโ”€โ”€ test_default_if_empty.py                               |           7 |
| โ”‚   โ”œโ”€โ”€ test_distinct.py                                       |          10 |
| โ”‚   โ”œโ”€โ”€ test_distinct_by.py                                    |          11 |
| โ”‚   โ”œโ”€โ”€ test_element_at.py                                     |           8 |
| โ”‚   โ”œโ”€โ”€ test_empty.py                                          |           2 |
| โ”‚   โ”œโ”€โ”€ test_except.py                                         |          12 |
| โ”‚   โ”œโ”€โ”€ test_except_by.py                                      |          13 |
| โ”‚   โ”œโ”€โ”€ test_first.py                                          |           8 |
| โ”‚   โ”œโ”€โ”€ test_first_or_default.py                               |           8 |
| โ”‚   โ”œโ”€โ”€ test_full_join.py                                      |          11 |
| โ”‚   โ”œโ”€โ”€ test_group_by.py                                       |           5 |
| โ”‚   โ”œโ”€โ”€ test_group_join.py                                     |           9 |
| โ”‚   โ”œโ”€โ”€ test_index.py                                          |           8 |
| โ”‚   โ”œโ”€โ”€ test_intersect.py                                      |          12 |
| โ”‚   โ”œโ”€โ”€ test_join.py                                           |           9 |
| โ”‚   โ”œโ”€โ”€ test_last.py                                           |           8 |
| โ”‚   โ”œโ”€โ”€ test_last_or_default.py                                |           8 |
| โ”‚   โ”œโ”€โ”€ test_left_join.py                                      |          10 |
| โ”‚   โ”œโ”€โ”€ test_max.py                                            |          11 |
| โ”‚   โ”œโ”€โ”€ test_max_by.py                                         |          13 |
| โ”‚   โ”œโ”€โ”€ test_min.py                                            |          11 |
| โ”‚   โ”œโ”€โ”€ test_min_by.py                                         |          13 |
| โ”‚   โ”œโ”€โ”€ test_of_type.py                                        |           5 |
| โ”‚   โ”œโ”€โ”€ test_order_by.py                                       |          18 |
| โ”‚   โ”œโ”€โ”€ test_prepend.py                                        |          19 |
| โ”‚   โ”œโ”€โ”€ test_range.py                                          |           3 |
| โ”‚   โ”œโ”€โ”€ test_repeat.py                                         |           3 |
| โ”‚   โ”œโ”€โ”€ test_reverse.py                                        |           8 |
| โ”‚   โ”œโ”€โ”€ test_select.py                                         |           9 |
| โ”‚   โ”œโ”€โ”€ test_select_await.py                                   |          10 |
| โ”‚   โ”œโ”€โ”€ test_select_many.py                                    |           5 |
| โ”‚   โ”œโ”€โ”€ test_single.py                                         |           9 |
| โ”‚   โ”œโ”€โ”€ test_single_or_default.py                              |           9 |
| โ”‚   โ”œโ”€โ”€ test_skip.py                                           |           9 |
| โ”‚   โ”œโ”€โ”€ test_skip_last.py                                      |           9 |
| โ”‚   โ”œโ”€โ”€ test_sum.py                                            |          10 |
| โ”‚   โ”œโ”€โ”€ test_take.py                                           |           9 |
| โ”‚   โ”œโ”€โ”€ test_take_last.py                                      |           9 |
| โ”‚   โ”œโ”€โ”€ test_to_async_enumerable.py                            |          10 |
| โ”‚   โ”œโ”€โ”€ test_to_dictionary.py                                  |           5 |
| โ”‚   โ”œโ”€โ”€ test_to_list.py                                        |           9 |
| โ”‚   โ”œโ”€โ”€ test_to_lookup.py                                      |           4 |
| โ”‚   โ”œโ”€โ”€ test_union.py                                          |          12 |
| โ”‚   โ”œโ”€โ”€ test_where.py                                          |           9 |
| โ”‚   โ”œโ”€โ”€ test_where_await.py                                    |           6 |
| โ”‚   โ””โ”€โ”€ test_zip.py                                            |          12 |
| โ”œโ”€โ”€ channels/                                                  |             |
| โ”‚   โ”œโ”€โ”€ test_bounded_channel.py                                |         139 |
| โ”‚   โ”œโ”€โ”€ test_channel.py                                        |          16 |
| โ”‚   โ”œโ”€โ”€ test_channel_closed_exception.py                       |           2 |
| โ”‚   โ”œโ”€โ”€ test_debug_attribute.py                                |           0 |
| โ”‚   โ”œโ”€โ”€ test_priority_unbounded_channel.py                     |          85 |
| โ”‚   โ”œโ”€โ”€ test_rendezvous_channel.py                             |         104 |
| โ”‚   โ””โ”€โ”€ test_unbounded_channel.py                              |         338 |
| โ”œโ”€โ”€ concurrent/                                                |             |
| โ”‚   โ”œโ”€โ”€ test_concurrent_bag.py                                 |         130 |
| โ”‚   โ”œโ”€โ”€ test_concurrent_dictionary.py                          |          56 |
| โ”‚   โ”œโ”€โ”€ test_concurrent_dictionary_generic.py                  |        1236 |
| โ”‚   โ”œโ”€โ”€ test_concurrent_queue.py                               |         130 |
| โ”‚   โ”œโ”€โ”€ test_concurrent_stack.py                               |         124 |
| โ”‚   โ””โ”€โ”€ test_etw.py                                            |           0 |
| โ”œโ”€โ”€ linq/                                                      |             |
| โ”‚   โ”œโ”€โ”€ test_aggregate.py                                      |          42 |
| โ”‚   โ”œโ”€โ”€ test_all.py                                            |          80 |
| โ”‚   โ”œโ”€โ”€ test_any.py                                            |          90 |
| โ”‚   โ”œโ”€โ”€ test_append_prepend.py                                 |          36 |
| โ”‚   โ”œโ”€โ”€ test_average.py                                        |         572 |
| โ”‚   โ”œโ”€โ”€ test_cast.py                                           |          45 |
| โ”‚   โ”œโ”€โ”€ test_chunk.py                                          |          22 |
| โ”‚   โ”œโ”€โ”€ test_concat.py                                         |          64 |
| โ”‚   โ”œโ”€โ”€ test_contains.py                                       |         108 |
| โ”‚   โ”œโ”€โ”€ test_count.py                                          |          37 |
| โ”‚   โ”œโ”€โ”€ test_default_if_empty.py                               |          37 |
| โ”‚   โ”œโ”€โ”€ test_distinct.py                                       |          87 |
| โ”‚   โ”œโ”€โ”€ test_element_at.py                                     |          43 |
| โ”‚   โ”œโ”€โ”€ test_except.py                                         |          68 |
| โ”‚   โ”œโ”€โ”€ test_first.py                                          |          29 |
| โ”‚   โ”œโ”€โ”€ test_first_or_default.py                               |          50 |
| โ”‚   โ”œโ”€โ”€ test_full_join.py                                      |          37 |
| โ”‚   โ”œโ”€โ”€ test_generic_list.py                                   |          95 |
| โ”‚   โ”œโ”€โ”€ test_group_by.py                                       |          23 |
| โ”‚   โ”œโ”€โ”€ test_group_join.py                                     |          53 |
| โ”‚   โ”œโ”€โ”€ test_index.py                                          |           6 |
| โ”‚   โ”œโ”€โ”€ test_intersect.py                                      |          42 |
| โ”‚   โ”œโ”€โ”€ test_join.py                                           |          47 |
| โ”‚   โ”œโ”€โ”€ test_last.py                                           |          29 |
| โ”‚   โ”œโ”€โ”€ test_last_or_default.py                                |          45 |
| โ”‚   โ”œโ”€โ”€ test_left_join.py                                      |          47 |
| โ”‚   โ”œโ”€โ”€ test_max.py                                            |        1100 |
| โ”‚   โ”œโ”€โ”€ test_min.py                                            |         968 |
| โ”‚   โ”œโ”€โ”€ test_of_type.py                                        |          38 |
| โ”‚   โ”œโ”€โ”€ test_order_by.py                                       |         100 |
| โ”‚   โ”œโ”€โ”€ test_order_descending_by.py                            |          45 |
| โ”‚   โ”œโ”€โ”€ test_reverse.py                                        |          35 |
| โ”‚   โ”œโ”€โ”€ test_select.py                                         |         140 |
| โ”‚   โ”œโ”€โ”€ test_select_many.py                                    |          85 |
| โ”‚   โ”œโ”€โ”€ test_single.py                                         |          34 |
| โ”‚   โ”œโ”€โ”€ test_single_or_default.py                              |          48 |
| โ”‚   โ”œโ”€โ”€ test_skip.py                                           |          75 |
| โ”‚   โ”œโ”€โ”€ test_skip_last.py                                      |        1221 |
| โ”‚   โ”œโ”€โ”€ test_sum.py                                            |         134 |
| โ”‚   โ”œโ”€โ”€ test_take.py                                           |          39 |
| โ”‚   โ”œโ”€โ”€ test_take_last.py                                      |        1221 |
| โ”‚   โ”œโ”€โ”€ test_then_by.py                                        |          40 |
| โ”‚   โ”œโ”€โ”€ test_then_descending_by.py                             |          34 |
| โ”‚   โ”œโ”€โ”€ test_to_dictionary.py                                  |          32 |
| โ”‚   โ”œโ”€โ”€ test_to_list.py                                        |          40 |
| โ”‚   โ”œโ”€โ”€ test_to_lookup.py                                      |          26 |
| โ”‚   โ”œโ”€โ”€ test_union.py                                          |          62 |
| โ”‚   โ”œโ”€โ”€ test_where.py                                          |          76 |
| โ”‚   โ””โ”€โ”€ test_zip.py                                            |         101 |
| โ”œโ”€โ”€ task/                                                      |             |
| โ”‚   โ”œโ”€โ”€ test_cancellation.py                                   |          69 |
| โ”‚   โ”œโ”€โ”€ test_task_completion_source.py                         |          26 |
| โ”‚   โ”œโ”€โ”€ test_task_continue_with.py                             |          15 |
| โ”‚   โ”œโ”€โ”€ test_task_continue_with_func_and_action.py             |          16 |
| โ”‚   โ”œโ”€โ”€ test_task_continue_with_func_and_action_args.py        |          20 |
| โ”‚   โ”œโ”€โ”€ test_task_factory.py                                   |           3 |
| โ”‚   โ”œโ”€โ”€ test_task_rt.py                                        |          13 |
| โ”‚   โ”œโ”€โ”€ test_task_rt_core.py                                   |          27 |
| โ”‚   โ””โ”€โ”€ test_task_wait_all_any.py                              |          62 |
| โ””โ”€โ”€ threading/                                                 |             |
|     โ”œโ”€โ”€ test_semaphore_slim.py                                 |          39 |
|     โ”œโ”€โ”€ test_semaphore_slim_cancellation.py                    |           4 |
|     โ””โ”€โ”€ test_thread_local.py                                   |          15 |
--------------------------------------------------------------------------------
| GRAND TOTALS                                                   |       10725 |
================================================================================