flpit 0.3.4.dev1__tar.gz → 0.4.0.dev2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: flpit
3
- Version: 0.3.4.dev1
3
+ Version: 0.4.0.dev2
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, with synchronous callables executed through a bounded worker pool.
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 and pending background-work limits, handle queue saturation explicitly, and shut down the process-wide runtime with an observable shutdown report.
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, with synchronous callables executed through a bounded worker pool.
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 and pending background-work limits, handle queue saturation explicitly, and shut down the process-wide runtime with an observable shutdown report.
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.4.dev1"
3
+ version = "0.4.0.dev2"
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
- addopts = "-m 'not benchmark'"
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