flpit 0.3.4.dev1__tar.gz → 0.4.0.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/PKG-INFO +3 -3
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/README.md +2 -2
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/pyproject.toml +4 -2
- flpit-0.4.0.dev1/src/flpit/task.py +2825 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/threading.py +71 -27
- flpit-0.3.4.dev1/src/flpit/task.py +0 -2235
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/.gitignore +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/LICENSE +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flp/__init__.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/__init__.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/__init__.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/_grouping.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/_index.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/_join.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/_lookup.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/_zip.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/async_linq.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/core/linq.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/csv.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/flp.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/json.py +0 -0
- {flpit-0.3.4.dev1 → flpit-0.4.0.dev1}/src/flpit/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: flpit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0.dev1
|
|
4
4
|
Summary: Fluent LINQ for Python — flip your iterables
|
|
5
5
|
Project-URL: Homepage, https://github.com/riemar/flpit
|
|
6
6
|
Project-URL: Repository, https://github.com/riemar/flpit
|
|
@@ -479,14 +479,14 @@ Operations such as `order_by()` necessarily materialize their input internally t
|
|
|
479
479
|
|
|
480
480
|
## ⚙️ Task Runtime
|
|
481
481
|
|
|
482
|
-
FlpIt includes a lightweight, `asyncio`-free task runtime for scheduling and coordinating concurrent work,
|
|
482
|
+
FlpIt includes a lightweight, `asyncio`-free task runtime for scheduling and coordinating concurrent work, modelled on the .NET thread pool: coroutines and synchronous callables both run on pool worker threads, without a single-threaded event loop in between.
|
|
483
483
|
|
|
484
484
|
Key features:
|
|
485
485
|
|
|
486
486
|
- **Task scheduling:** `Task.run()` schedules coroutines, awaitables, and synchronous callables.
|
|
487
487
|
- **Task coordination:** `Task.when_all()` waits for all tasks while preserving input order; `Task.when_any()` returns the first completed task; `Task.collect()` yields tasks as they complete.
|
|
488
488
|
- **Cancellation:** `CancellationToken` and `CancellationTokenSource` support cooperative cancellation, cancellation callbacks, timeouts, and linked cancellation tokens.
|
|
489
|
-
- **Resource management:** Configure worker capacity
|
|
489
|
+
- **Resource management:** Configure worker capacity with `Task.configure(min_workers=..., max_workers=...)`; work beyond that queues up (the queue is unbounded) and workers are added when the pool is starved or blocked in `Task.result()`. Calling `Task.result()` inside a task on a task that has not started yet runs it inline, as .NET does. Shut down the process-wide runtime with an observable shutdown report.
|
|
490
490
|
- **Asyncio interoperability:** FlpIt Tasks can be awaited directly inside asyncio coroutines when Task.asyncio_interop is enabled.
|
|
491
491
|
- This is disabled by default.
|
|
492
492
|
- Enabling it adds runtime-detection overhead to every pending await.
|
|
@@ -455,14 +455,14 @@ Operations such as `order_by()` necessarily materialize their input internally t
|
|
|
455
455
|
|
|
456
456
|
## ⚙️ Task Runtime
|
|
457
457
|
|
|
458
|
-
FlpIt includes a lightweight, `asyncio`-free task runtime for scheduling and coordinating concurrent work,
|
|
458
|
+
FlpIt includes a lightweight, `asyncio`-free task runtime for scheduling and coordinating concurrent work, modelled on the .NET thread pool: coroutines and synchronous callables both run on pool worker threads, without a single-threaded event loop in between.
|
|
459
459
|
|
|
460
460
|
Key features:
|
|
461
461
|
|
|
462
462
|
- **Task scheduling:** `Task.run()` schedules coroutines, awaitables, and synchronous callables.
|
|
463
463
|
- **Task coordination:** `Task.when_all()` waits for all tasks while preserving input order; `Task.when_any()` returns the first completed task; `Task.collect()` yields tasks as they complete.
|
|
464
464
|
- **Cancellation:** `CancellationToken` and `CancellationTokenSource` support cooperative cancellation, cancellation callbacks, timeouts, and linked cancellation tokens.
|
|
465
|
-
- **Resource management:** Configure worker capacity
|
|
465
|
+
- **Resource management:** Configure worker capacity with `Task.configure(min_workers=..., max_workers=...)`; work beyond that queues up (the queue is unbounded) and workers are added when the pool is starved or blocked in `Task.result()`. Calling `Task.result()` inside a task on a task that has not started yet runs it inline, as .NET does. Shut down the process-wide runtime with an observable shutdown report.
|
|
466
466
|
- **Asyncio interoperability:** FlpIt Tasks can be awaited directly inside asyncio coroutines when Task.asyncio_interop is enabled.
|
|
467
467
|
- This is disabled by default.
|
|
468
468
|
- Enabling it adds runtime-detection overhead to every pending await.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flpit"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0.dev1"
|
|
4
4
|
description = "Fluent LINQ for Python — flip your iterables"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -63,8 +63,10 @@ pythonpath = [
|
|
|
63
63
|
"src",
|
|
64
64
|
"tests"
|
|
65
65
|
]
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
addopts = "-m 'not benchmark and not stress'"
|
|
67
68
|
markers = [
|
|
68
69
|
"benchmark: performance benchmarks",
|
|
70
|
+
"stress: multi-core stress tests, run manually on a many-core machine",
|
|
69
71
|
]
|
|
70
72
|
|