flpit 0.4.2.dev12__tar.gz → 0.5.1__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.4.2.dev12 → flpit-0.5.1}/PKG-INFO +18 -16
- {flpit-0.4.2.dev12 → flpit-0.5.1}/README.md +13 -12
- flpit-0.5.1/THIRD-PARTY-NOTICES.md +33 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/pyproject.toml +5 -4
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/asyncio_bridge.py +1 -1
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/task.py +0 -15
- {flpit-0.4.2.dev12 → flpit-0.5.1}/.gitignore +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/LICENSE +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flp/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/channels.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/concurrent.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/_grouping.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/_index.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/_join.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/_lookup.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/_zip.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/async_linq.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/comparers.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/core/linq.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/csv.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/flp.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/json/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/json/_core.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/json/_msgspec.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/json/_native.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/py.typed +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.1}/src/flpit/threading.py +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: flpit
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.5.1
|
|
4
|
+
Summary: Python that feels like .NET, until you miss the real thing.
|
|
5
5
|
Project-URL: Homepage, https://github.com/riemar/flpit
|
|
6
6
|
Project-URL: Documentation, https://riemar.github.io/flpit/
|
|
7
7
|
Project-URL: Changelog, https://riemar.github.io/flpit/changelog/
|
|
8
8
|
Project-URL: Repository, https://github.com/riemar/flpit
|
|
9
9
|
Project-URL: Issues, https://github.com/riemar/flpit/issues
|
|
10
|
-
License: MIT
|
|
10
|
+
License-Expression: MIT
|
|
11
11
|
License-File: LICENSE
|
|
12
|
-
|
|
12
|
+
License-File: THIRD-PARTY-NOTICES.md
|
|
13
|
+
Keywords: async,async-enumerable,asyncio,cancellation,channels,concurrency,csharp,csv,dotnet,fluent,free-threaded,generators,iterable,json,lazy-evaluation,linq,pipeline,pyrefly,task,threadpool,tpl,type-safe
|
|
13
14
|
Classifier: Development Status :: 4 - Beta
|
|
14
15
|
Classifier: Intended Audience :: Developers
|
|
15
16
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -31,22 +32,22 @@ Description-Content-Type: text/markdown
|
|
|
31
32
|
|
|
32
33
|
# FlpIt
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
*Python that feels like .NET, until you miss the real thing.*
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
**[📖 Documentation](https://riemar.github.io/flpit/)** | **[🌐 GitHub](https://github.com/riemar/flpit)** | **[📦 PyPI](https://pypi.org/project/flpit/)**
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
> **The .NET programming model for Python: LINQ, Tasks, async streams and channels, with .NET's semantics.**
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
`FlpIt` brings .NET's programming model to Python, verified against more than 10,000 unit tests migrated from the .NET runtime.
|
|
42
|
+
Queries come with LINQ's operators and semantics over standard Python iterables. Around them come async streams (`AsyncFlpIt`),
|
|
43
|
+
an `asyncio`-free task runtime, channels, concurrent collections, and typed JSON and CSV serialization.
|
|
44
|
+
It is built for free-threaded Python and tested on 3.12 to 3.15t in CI.
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
tested on free-threaded Python (>=3.14t) in CI.
|
|
46
|
+
If you know C#, you already know most of FlpIt. Existing LINQ and TPL examples, query patterns and documentation can generally be translated directly,
|
|
47
|
+
which makes the .NET ecosystem a valuable reference for developers and AI coding assistants alike.
|
|
45
48
|
|
|
46
|
-
> **Semantic goal:**
|
|
47
|
-
>
|
|
48
|
-
> and [each deviation is documented](https://riemar.github.io/flpit/semantics/differences/).
|
|
49
|
-
> The implementation is actively developed, and further deviations may still exist.
|
|
49
|
+
> **Semantic goal:** FlpIt reproduces .NET's semantics, checked by the migrated .NET tests,
|
|
50
|
+
> and [each known deviation is documented](https://riemar.github.io/flpit/semantics/differences/).
|
|
50
51
|
|
|
51
52
|
## 💡 Quick Start
|
|
52
53
|
|
|
@@ -122,7 +123,8 @@ Distributed under the MIT License. See `LICENSE` for more information.
|
|
|
122
123
|
|
|
123
124
|
## Migrated .NET Unit Tests
|
|
124
125
|
|
|
125
|
-
|
|
126
|
+
More than 10,000 test cases from the official .NET runtime test suites, migrated to Python and run on every commit against 6 interpreters, each on Linux, Windows and macOS.
|
|
127
|
+
|
|
126
128
|
> 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.
|
|
127
129
|
> `async_linq/` is migrated from the .NET 10 `System.Linq.AsyncEnumerable` tests and exercises `AsyncFlpIt` on the flpit task runtime.
|
|
128
130
|
> `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/`).
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# FlpIt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
*Python that feels like .NET, until you miss the real thing.*
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**[📖 Documentation](https://riemar.github.io/flpit/)** | **[🌐 GitHub](https://github.com/riemar/flpit)** | **[📦 PyPI](https://pypi.org/project/flpit/)**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **The .NET programming model for Python: LINQ, Tasks, async streams and channels, with .NET's semantics.**
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`FlpIt` brings .NET's programming model to Python, verified against more than 10,000 unit tests migrated from the .NET runtime.
|
|
10
|
+
Queries come with LINQ's operators and semantics over standard Python iterables. Around them come async streams (`AsyncFlpIt`),
|
|
11
|
+
an `asyncio`-free task runtime, channels, concurrent collections, and typed JSON and CSV serialization.
|
|
12
|
+
It is built for free-threaded Python and tested on 3.12 to 3.15t in CI.
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
tested on free-threaded Python (>=3.14t) in CI.
|
|
14
|
+
If you know C#, you already know most of FlpIt. Existing LINQ and TPL examples, query patterns and documentation can generally be translated directly,
|
|
15
|
+
which makes the .NET ecosystem a valuable reference for developers and AI coding assistants alike.
|
|
14
16
|
|
|
15
|
-
> **Semantic goal:**
|
|
16
|
-
>
|
|
17
|
-
> and [each deviation is documented](https://riemar.github.io/flpit/semantics/differences/).
|
|
18
|
-
> The implementation is actively developed, and further deviations may still exist.
|
|
17
|
+
> **Semantic goal:** FlpIt reproduces .NET's semantics, checked by the migrated .NET tests,
|
|
18
|
+
> and [each known deviation is documented](https://riemar.github.io/flpit/semantics/differences/).
|
|
19
19
|
|
|
20
20
|
## 💡 Quick Start
|
|
21
21
|
|
|
@@ -91,7 +91,8 @@ Distributed under the MIT License. See `LICENSE` for more information.
|
|
|
91
91
|
|
|
92
92
|
## Migrated .NET Unit Tests
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
More than 10,000 test cases from the official .NET runtime test suites, migrated to Python and run on every commit against 6 interpreters, each on Linux, Windows and macOS.
|
|
95
|
+
|
|
95
96
|
> 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.
|
|
96
97
|
> `async_linq/` is migrated from the .NET 10 `System.Linq.AsyncEnumerable` tests and exercises `AsyncFlpIt` on the flpit task runtime.
|
|
97
98
|
> `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/`).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
flpit includes code from the projects below, used under their licenses.
|
|
4
|
+
|
|
5
|
+
## dotnet/runtime
|
|
6
|
+
|
|
7
|
+
https://github.com/dotnet/runtime
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
The MIT License (MIT)
|
|
11
|
+
|
|
12
|
+
Copyright (c) .NET Foundation and Contributors
|
|
13
|
+
|
|
14
|
+
All rights reserved.
|
|
15
|
+
|
|
16
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
17
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
18
|
+
in the Software without restriction, including without limitation the rights
|
|
19
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
20
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
21
|
+
furnished to do so, subject to the following conditions:
|
|
22
|
+
|
|
23
|
+
The above copyright notice and this permission notice shall be included in all
|
|
24
|
+
copies or substantial portions of the Software.
|
|
25
|
+
|
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
27
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
28
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
29
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
30
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
31
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
32
|
+
SOFTWARE.
|
|
33
|
+
```
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flpit"
|
|
3
|
-
version = "0.
|
|
4
|
-
description = "
|
|
3
|
+
version = "0.5.1"
|
|
4
|
+
description = "Python that feels like .NET, until you miss the real thing."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
7
|
-
license =
|
|
8
|
-
|
|
7
|
+
license = "MIT"
|
|
8
|
+
license-files = ["LICENSE", "THIRD-PARTY-NOTICES.md"]
|
|
9
|
+
keywords = ["linq", "dotnet", "csharp", "fluent", "iterable", "pipeline", "lazy-evaluation", "generators", "async", "async-enumerable", "asyncio", "task", "tpl", "cancellation", "threadpool", "concurrency", "channels", "free-threaded", "json", "csv", "type-safe", "pyrefly"]
|
|
9
10
|
classifiers = [
|
|
10
11
|
"Development Status :: 4 - Beta",
|
|
11
12
|
"Intended Audience :: Developers",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""asyncio libraries on the flpit runtime: a pool of standard asyncio event loops.
|
|
2
2
|
|
|
3
|
-
Provisional: the API of this module may change in 0.
|
|
3
|
+
Provisional: the API of this module may change in 0.6. Prefer a library's sync client where one
|
|
4
4
|
exists (``httpx.Client``, psycopg's ``ConnectionPool``): it is written for threads and can be shared.
|
|
5
5
|
|
|
6
6
|
asyncio libraries (httpx, asyncpg, redis.asyncio, aiohttp, ...) need two things: a running
|
|
@@ -256,21 +256,6 @@ class _TaskMeta(type):
|
|
|
256
256
|
_completed_task[0] = task
|
|
257
257
|
return task
|
|
258
258
|
|
|
259
|
-
@property
|
|
260
|
-
def asyncio_interop(cls: "_TaskMeta") -> bool:
|
|
261
|
-
"""Deprecated, always True: a Task can always be awaited inside asyncio coroutines."""
|
|
262
|
-
warnings.warn(_ASYNCIO_INTEROP_DEPRECATED, DeprecationWarning, stacklevel=2)
|
|
263
|
-
return True
|
|
264
|
-
|
|
265
|
-
@asyncio_interop.setter
|
|
266
|
-
def asyncio_interop(cls: "_TaskMeta", enabled: bool) -> None:
|
|
267
|
-
warnings.warn(_ASYNCIO_INTEROP_DEPRECATED + " Setting it has no effect.", DeprecationWarning, stacklevel=2)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
_ASYNCIO_INTEROP_DEPRECATED: Final = (
|
|
271
|
-
"Task.asyncio_interop is deprecated and will be removed in 0.5: awaiting a Task inside "
|
|
272
|
-
"asyncio coroutines always works, at no measurable cost to flpit awaits."
|
|
273
|
-
)
|
|
274
259
|
|
|
275
260
|
|
|
276
261
|
@dataclass(frozen=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|