pythonic-fp.queues 5.2.0__tar.gz → 6.0.0__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.
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/PKG-INFO +9 -10
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/README.md +2 -2
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/pyproject.toml +18 -9
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/src/pythonic_fp/queues/de.py +3 -2
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/src/pythonic_fp/queues/fifo.py +3 -2
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/src/pythonic_fp/queues/lifo.py +3 -2
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/LICENSE +0 -0
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/src/pythonic_fp/queues/__init__.py +0 -0
- {pythonic_fp_queues-5.2.0 → pythonic_fp_queues-6.0.0}/src/pythonic_fp/queues/py.typed +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pythonic-fp-queues
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Queues
|
|
3
|
+
Version: 6.0.0
|
|
4
|
+
Summary: Queues useful for different algorithmic use cases.
|
|
5
5
|
Keywords: queue,fifo,lifo,dqueue
|
|
6
6
|
Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
|
|
7
7
|
Requires-Python: >=3.14
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Classifier: Development Status ::
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: Framework :: Pytest
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -15,12 +15,11 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.15
|
|
16
16
|
Classifier: Typing :: Typed
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: pythonic-fp-circulararray>=6.
|
|
19
|
-
Requires-Dist: pythonic-fp-fptools>=6.
|
|
20
|
-
Requires-Dist: pythonic-fp-gadgets>=4.5,<6
|
|
18
|
+
Requires-Dist: pythonic-fp-circulararray>=6.4,<7
|
|
19
|
+
Requires-Dist: pythonic-fp-fptools>=6.2,<7
|
|
21
20
|
Project-URL: Changelog, https://github.com/grscheller/pythonic-fp-queues/blob/main/CHANGELOG.md
|
|
22
|
-
Project-URL: Documentation, https://grscheller.github.io/pythonic-fp-queues
|
|
23
|
-
Project-URL: Homepage, https://grscheller.github.io/pythonic-fp
|
|
21
|
+
Project-URL: Documentation, https://grscheller.github.io/pythonic-fp-queues
|
|
22
|
+
Project-URL: Homepage, https://grscheller.github.io/pythonic-fp
|
|
24
23
|
Project-URL: Source, https://github.com/grscheller/pythonic-fp-queues
|
|
25
24
|
|
|
26
25
|
# Pythonic FP - Queues
|
|
@@ -30,13 +29,13 @@ Queue-like datastructures.
|
|
|
30
29
|
PyPI project
|
|
31
30
|
[pythonic-fp-queues](https://pypi.org/project/pythonic-fp-queues).
|
|
32
31
|
Part of the
|
|
33
|
-
[pythonic-fp](https://grscheller.github.io/pythonic-fp
|
|
32
|
+
[pythonic-fp](https://grscheller.github.io/pythonic-fp)
|
|
34
33
|
PyPI projects.
|
|
35
34
|
|
|
36
35
|
## Documentation
|
|
37
36
|
|
|
38
37
|
Documentation and other links for this project are hosted on
|
|
39
|
-
[GitHub Pages](https://grscheller.github.io/pythonic-fp
|
|
38
|
+
[GitHub Pages](https://grscheller.github.io/pythonic-fp-queues).
|
|
40
39
|
|
|
41
40
|
| module | class | name |
|
|
42
41
|
|:------ |:-----:|:---- |
|
|
@@ -5,13 +5,13 @@ Queue-like datastructures.
|
|
|
5
5
|
PyPI project
|
|
6
6
|
[pythonic-fp-queues](https://pypi.org/project/pythonic-fp-queues).
|
|
7
7
|
Part of the
|
|
8
|
-
[pythonic-fp](https://grscheller.github.io/pythonic-fp
|
|
8
|
+
[pythonic-fp](https://grscheller.github.io/pythonic-fp)
|
|
9
9
|
PyPI projects.
|
|
10
10
|
|
|
11
11
|
## Documentation
|
|
12
12
|
|
|
13
13
|
Documentation and other links for this project are hosted on
|
|
14
|
-
[GitHub Pages](https://grscheller.github.io/pythonic-fp
|
|
14
|
+
[GitHub Pages](https://grscheller.github.io/pythonic-fp-queues).
|
|
15
15
|
|
|
16
16
|
| module | class | name |
|
|
17
17
|
|:------ |:-----:|:---- |
|
|
@@ -4,10 +4,10 @@ build-backend = "flit_core.buildapi"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pythonic-fp-queues"
|
|
7
|
-
version = "
|
|
8
|
-
description = "Queues
|
|
7
|
+
version = "6.0.0"
|
|
8
|
+
description = "Queues useful for different algorithmic use cases."
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.14" # floor: PEP 649/749 deferred annotations — class-level self-reference
|
|
10
|
+
requires-python = ">=3.14" # floor: PEP 649/749 deferred annotations — class-level self-reference NameErrors on <3.14
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "Geoffrey R. Scheller", email = "geoffrey@scheller.com" },
|
|
13
13
|
]
|
|
@@ -18,7 +18,7 @@ keywords = [
|
|
|
18
18
|
"dqueue",
|
|
19
19
|
]
|
|
20
20
|
classifiers = [
|
|
21
|
-
"Development Status ::
|
|
21
|
+
"Development Status :: 4 - Beta",
|
|
22
22
|
"Framework :: Pytest",
|
|
23
23
|
"Intended Audience :: Developers",
|
|
24
24
|
"License :: OSI Approved :: Apache Software License",
|
|
@@ -28,15 +28,14 @@ classifiers = [
|
|
|
28
28
|
"Typing :: Typed",
|
|
29
29
|
]
|
|
30
30
|
dependencies = [
|
|
31
|
-
"pythonic-fp-circulararray>=6.
|
|
32
|
-
"pythonic-fp-fptools>=6.
|
|
33
|
-
"pythonic-fp-gadgets>=4.5,<6",
|
|
31
|
+
"pythonic-fp-circulararray>=6.4,<7",
|
|
32
|
+
"pythonic-fp-fptools>=6.2,<7",
|
|
34
33
|
]
|
|
35
34
|
|
|
36
35
|
[project.urls]
|
|
37
36
|
Changelog = "https://github.com/grscheller/pythonic-fp-queues/blob/main/CHANGELOG.md"
|
|
38
|
-
Documentation ="https://grscheller.github.io/pythonic-fp-queues
|
|
39
|
-
Homepage = "https://grscheller.github.io/pythonic-fp
|
|
37
|
+
Documentation ="https://grscheller.github.io/pythonic-fp-queues"
|
|
38
|
+
Homepage = "https://grscheller.github.io/pythonic-fp"
|
|
40
39
|
Source = "https://github.com/grscheller/pythonic-fp-queues"
|
|
41
40
|
|
|
42
41
|
[dependency-groups]
|
|
@@ -71,10 +70,15 @@ testpaths = ["tests/"]
|
|
|
71
70
|
explicit_package_bases = true
|
|
72
71
|
local_partial_types = true
|
|
73
72
|
namespace_packages = true
|
|
73
|
+
strict = true
|
|
74
74
|
warn_redundant_casts = true
|
|
75
75
|
warn_return_any = true
|
|
76
76
|
warn_unused_configs = true
|
|
77
77
|
|
|
78
|
+
[[tool.mypy.overrides]]
|
|
79
|
+
module = ["tests.*"]
|
|
80
|
+
strict_equality = false
|
|
81
|
+
|
|
78
82
|
[tool.ruff]
|
|
79
83
|
target-version = "py314"
|
|
80
84
|
|
|
@@ -93,3 +97,8 @@ docstring-quotes = "double"
|
|
|
93
97
|
[tool.ruff.format]
|
|
94
98
|
quote-style = "single"
|
|
95
99
|
docstring-code-line-length = 72
|
|
100
|
+
|
|
101
|
+
[tool.uv.sources]
|
|
102
|
+
pythonic-fp-circulararray = { path = "../pythonic-fp-circulararray", editable = true }
|
|
103
|
+
pythonic-fp-fptools = { path = "../pythonic-fp-fptools", editable = true }
|
|
104
|
+
pythonic-fp-gadgets = { path = "../pythonic-fp-gadgets", editable = true }
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
from collections.abc import Callable, Iterable, Iterator
|
|
16
16
|
from typing import cast, overload
|
|
17
|
+
|
|
17
18
|
from pythonic_fp.circulararray.auto import CA
|
|
18
19
|
from pythonic_fp.fptools.maybe import MayBe
|
|
19
20
|
|
|
@@ -138,7 +139,7 @@ class DEQueue[D]:
|
|
|
138
139
|
"""
|
|
139
140
|
return '>< ' + ' | '.join(map(str, self)) + ' ><'
|
|
140
141
|
|
|
141
|
-
def copy(self) ->
|
|
142
|
+
def copy(self) -> DEQueue[D]:
|
|
142
143
|
"""
|
|
143
144
|
.. admonition:: Copy
|
|
144
145
|
|
|
@@ -273,7 +274,7 @@ class DEQueue[D]:
|
|
|
273
274
|
return MayBe(cast(R, self._ca.foldr(cast(Callable[[D, D], D], f)))) # R = D
|
|
274
275
|
return MayBe(self._ca.foldr(f, start))
|
|
275
276
|
|
|
276
|
-
def map[U](self, f: Callable[[D], U]) ->
|
|
277
|
+
def map[U](self, f: Callable[[D], U]) -> DEQueue[U]:
|
|
277
278
|
"""
|
|
278
279
|
.. admonition:: Map
|
|
279
280
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
from collections.abc import Callable, Iterable, Iterator
|
|
16
16
|
from typing import cast, overload
|
|
17
|
+
|
|
17
18
|
from pythonic_fp.circulararray.auto import CA
|
|
18
19
|
from pythonic_fp.fptools.maybe import MayBe
|
|
19
20
|
|
|
@@ -126,7 +127,7 @@ class FIFOQueue[D]:
|
|
|
126
127
|
"""
|
|
127
128
|
return '<< ' + ' < '.join(map(str, self)) + ' <<'
|
|
128
129
|
|
|
129
|
-
def copy(self) ->
|
|
130
|
+
def copy(self) -> FIFOQueue[D]:
|
|
130
131
|
"""
|
|
131
132
|
.. admonition:: Copy
|
|
132
133
|
|
|
@@ -213,7 +214,7 @@ class FIFOQueue[D]:
|
|
|
213
214
|
return MayBe(cast(T, self._ca.foldl(cast(Callable[[D, D], D], f)))) # T = D
|
|
214
215
|
return MayBe(self._ca.foldl(f, start))
|
|
215
216
|
|
|
216
|
-
def map[U](self, f: Callable[[D], U]) ->
|
|
217
|
+
def map[U](self, f: Callable[[D], U]) -> FIFOQueue[U]:
|
|
217
218
|
"""
|
|
218
219
|
.. admonition:: Map
|
|
219
220
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
from collections.abc import Callable, Iterable, Iterator
|
|
16
16
|
from typing import cast, overload
|
|
17
|
+
|
|
17
18
|
from pythonic_fp.circulararray.auto import CA
|
|
18
19
|
from pythonic_fp.fptools.function import swap
|
|
19
20
|
from pythonic_fp.fptools.maybe import MayBe
|
|
@@ -126,7 +127,7 @@ class LIFOQueue[D]:
|
|
|
126
127
|
"""
|
|
127
128
|
return '|| ' + ' > '.join(map(str, self)) + ' ><'
|
|
128
129
|
|
|
129
|
-
def copy(self) ->
|
|
130
|
+
def copy(self) -> LIFOQueue[D]:
|
|
130
131
|
"""
|
|
131
132
|
.. admonition:: Copy
|
|
132
133
|
|
|
@@ -198,7 +199,7 @@ class LIFOQueue[D]:
|
|
|
198
199
|
return MayBe(cast(T, self._ca.foldl(cast(Callable[[D, D], D], f)))) # T = D
|
|
199
200
|
return MayBe(self._ca.foldr(swap(f), start))
|
|
200
201
|
|
|
201
|
-
def map[U](self, f: Callable[[D], U]) ->
|
|
202
|
+
def map[U](self, f: Callable[[D], U]) -> LIFOQueue[U]:
|
|
202
203
|
"""
|
|
203
204
|
.. admonition:: Map
|
|
204
205
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|