pythonic-fp-circulararray 6.0.0__py3-none-any.whl → 6.0.2__py3-none-any.whl
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/circulararray/__init__.py +12 -13
- pythonic_fp/circulararray/__init__.pyi +0 -0
- pythonic_fp/circulararray/auto.py +230 -138
- pythonic_fp/circulararray/auto.pyi +49 -0
- pythonic_fp/circulararray/fixed.py +196 -109
- pythonic_fp/circulararray/fixed.pyi +39 -0
- {pythonic_fp_circulararray-6.0.0.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/METADATA +7 -7
- pythonic_fp_circulararray-6.0.2.dist-info/RECORD +11 -0
- pythonic_fp_circulararray-6.0.0.dist-info/RECORD +0 -8
- {pythonic_fp_circulararray-6.0.0.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/WHEEL +0 -0
- {pythonic_fp_circulararray-6.0.0.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from collections.abc import Callable, Iterable, Iterator
|
|
2
|
+
from typing import overload
|
|
3
|
+
|
|
4
|
+
__all__ = ['CAF', 'caf']
|
|
5
|
+
|
|
6
|
+
class CAF[X]:
|
|
7
|
+
def __init__(self, *xs: Iterable[X], cap: int = 2) -> None: ...
|
|
8
|
+
def __iter__(self) -> Iterator[X]: ...
|
|
9
|
+
def __reversed__(self) -> Iterator[X]: ...
|
|
10
|
+
def __bool__(self) -> bool: ...
|
|
11
|
+
def __len__(self) -> int: ...
|
|
12
|
+
def __getitem__(self, idx: int) -> X: ...
|
|
13
|
+
def __setitem__(self, idx: int, val: X) -> None: ...
|
|
14
|
+
def __delitem__(self, idx: int) -> None: ...
|
|
15
|
+
def __eq__(self, other: object) -> bool: ...
|
|
16
|
+
def pushl(self, item: X) -> None: ...
|
|
17
|
+
def pushr(self, item: X) -> None: ...
|
|
18
|
+
def popl(self) -> X: ...
|
|
19
|
+
def popr(self) -> X: ...
|
|
20
|
+
def popld(self, default: X) -> X: ...
|
|
21
|
+
def poprd(self, default: X) -> X: ...
|
|
22
|
+
def poplt(self, maximum: int) -> tuple[X, ...]: ...
|
|
23
|
+
def poprt(self, maximum: int) -> tuple[X, ...]: ...
|
|
24
|
+
def rotl(self, n: int = 1) -> None: ...
|
|
25
|
+
def rotr(self, n: int = 1) -> None: ...
|
|
26
|
+
def map[Y](self, f: Callable[[X], Y]) -> CAF[Y]: ...
|
|
27
|
+
@overload
|
|
28
|
+
def foldl[L](self, f: Callable[[X, X], X]) -> X: ...
|
|
29
|
+
@overload
|
|
30
|
+
def foldl[L](self, f: Callable[[L, X], L], start: L) -> L: ...
|
|
31
|
+
@overload
|
|
32
|
+
def foldr[R](self, f: Callable[[X, X], X]) -> X: ...
|
|
33
|
+
@overload
|
|
34
|
+
def foldr[R](self, f: Callable[[X, R], R], start: R) -> R: ...
|
|
35
|
+
def capacity(self) -> int: ...
|
|
36
|
+
def empty(self) -> None: ...
|
|
37
|
+
def fraction_filled(self) -> float: ...
|
|
38
|
+
|
|
39
|
+
def caf[T](*ts: T, cap: int = 2) -> CAF[T]: ...
|
{pythonic_fp_circulararray-6.0.0.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pythonic-fp-circulararray
|
|
3
|
-
Version: 6.0.
|
|
3
|
+
Version: 6.0.2
|
|
4
4
|
Summary: Circular Array
|
|
5
5
|
Keywords: auto resizing,circular array,circulararray,dequeue,indexable,pop,push
|
|
6
6
|
Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
|
|
@@ -11,14 +11,14 @@ Classifier: Framework :: Pytest
|
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
15
|
Classifier: Typing :: Typed
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: pythonic-fp-gadgets>=
|
|
17
|
+
Requires-Dist: pythonic-fp-gadgets>=4.0.2
|
|
18
18
|
Requires-Dist: pytest>=8.4.1 ; extra == "test"
|
|
19
19
|
Project-URL: Changelog, https://github.com/grscheller/pythonic-fp-circulararray/blob/main/CHANGELOG.rst
|
|
20
|
-
Project-URL: Documentation, https://grscheller.github.io/pythonic-fp/circulararray/development/build/html/
|
|
21
|
-
Project-URL: Homepage, https://github.
|
|
20
|
+
Project-URL: Documentation, https://grscheller.github.io/pythonic-fp/circulararray/development/build/html/
|
|
21
|
+
Project-URL: Homepage, https://grscheller.github.io/pythonic-fp/homepage/build/html/
|
|
22
22
|
Project-URL: Source, https://github.com/grscheller/pythonic-fp-circulararray
|
|
23
23
|
Provides-Extra: test
|
|
24
24
|
|
|
@@ -54,7 +54,7 @@ Python module implementing stateful circular array data structures.
|
|
|
54
54
|
|
|
55
55
|
Part of the
|
|
56
56
|
`pythonic-fp
|
|
57
|
-
<https://grscheller.github.io/pythonic-fp
|
|
57
|
+
<https://grscheller.github.io/pythonic-fp>`_
|
|
58
58
|
PyPI projects.
|
|
59
59
|
|
|
60
60
|
Documentation
|
|
@@ -62,7 +62,7 @@ Documentation
|
|
|
62
62
|
|
|
63
63
|
Documentation for this project is hosted on
|
|
64
64
|
`GitHub Pages
|
|
65
|
-
<https://grscheller.github.io/pythonic-fp/circulararray
|
|
65
|
+
<https://grscheller.github.io/pythonic-fp/circulararray>`_.
|
|
66
66
|
|
|
67
67
|
Copyright and License
|
|
68
68
|
---------------------
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
pythonic_fp/circulararray/__init__.py,sha256=MYPgNiLNoBf84VldZ7r0iszP13kaG0AxJF3pOOUETJg,1193
|
|
2
|
+
pythonic_fp/circulararray/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
pythonic_fp/circulararray/auto.py,sha256=u7PPffiRhCs3EXDkH65REi0ZYGLEnEgOf7NT8RQHQ5c,21119
|
|
4
|
+
pythonic_fp/circulararray/auto.pyi,sha256=kSJ3b7tleHTZIWy3QmYPTmJJ54xNb4lC8ipNBhtyGsA,1786
|
|
5
|
+
pythonic_fp/circulararray/fixed.py,sha256=SJ6vlp0g3NlTAwWRk3PPTtA8uoJlg0kMg5JCBg13Ji0,17125
|
|
6
|
+
pythonic_fp/circulararray/fixed.pyi,sha256=SUtEp8QWNKwJKJ5PzqL3MIuAHfAkIJU1Dy_BlqaWb48,1503
|
|
7
|
+
pythonic_fp/circulararray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
pythonic_fp_circulararray-6.0.2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
9
|
+
pythonic_fp_circulararray-6.0.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
10
|
+
pythonic_fp_circulararray-6.0.2.dist-info/METADATA,sha256=LTlgphEld80AAKcIbjUoUEg75kT5X_sobPv9po-CS80,2697
|
|
11
|
+
pythonic_fp_circulararray-6.0.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
pythonic_fp/circulararray/__init__.py,sha256=uR0KASmw1Zraz9l3VPbqPm9WUKzWk-0_tUGT0opabzQ,1515
|
|
2
|
-
pythonic_fp/circulararray/auto.py,sha256=7aT4l93zAPWIuIWjqxnLpXyJJZ349CCPqPGS-yXJxho,19486
|
|
3
|
-
pythonic_fp/circulararray/fixed.py,sha256=usGVbw2wy4idhhMSZq_DFzROTrXUeiCjVpMYfetXiWs,15456
|
|
4
|
-
pythonic_fp/circulararray/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
pythonic_fp_circulararray-6.0.0.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
6
|
-
pythonic_fp_circulararray-6.0.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
7
|
-
pythonic_fp_circulararray-6.0.0.dist-info/METADATA,sha256=W9GQEAUwxQi-yzQU2yGqhanDDXYe-piRV5ZxZJYpYpk,2761
|
|
8
|
-
pythonic_fp_circulararray-6.0.0.dist-info/RECORD,,
|
{pythonic_fp_circulararray-6.0.0.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|