pythonic-fp-circulararray 5.3.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_circulararray-5.3.0/.gitignore +6 -0
- pythonic_fp_circulararray-5.3.0/CHANGELOG.rst +405 -0
- pythonic_fp_circulararray-5.3.0/LICENSE +176 -0
- pythonic_fp_circulararray-5.3.0/PKG-INFO +57 -0
- pythonic_fp_circulararray-5.3.0/README.rst +33 -0
- pythonic_fp_circulararray-5.3.0/pyproject.toml +74 -0
- pythonic_fp_circulararray-5.3.0/src/pythonic_fp/circulararray/__init__.py +33 -0
- pythonic_fp_circulararray-5.3.0/src/pythonic_fp/circulararray/auto.py +631 -0
- pythonic_fp_circulararray-5.3.0/src/pythonic_fp/circulararray/auto.pyi +103 -0
- pythonic_fp_circulararray-5.3.0/src/pythonic_fp/circulararray/fixed.py +511 -0
- pythonic_fp_circulararray-5.3.0/src/pythonic_fp/circulararray/fixed.pyi +89 -0
- pythonic_fp_circulararray-5.3.0/src/pythonic_fp/circulararray/py.typed +0 -0
- pythonic_fp_circulararray-5.3.0/tests/auto/test_ca.py +488 -0
- pythonic_fp_circulararray-5.3.0/tests/auto/test_ca_capacity.py +116 -0
- pythonic_fp_circulararray-5.3.0/tests/auto/test_repr_str_auto.py +71 -0
- pythonic_fp_circulararray-5.3.0/tests/fixed/test_caf.py +492 -0
- pythonic_fp_circulararray-5.3.0/tests/fixed/test_caf_capacity.py +102 -0
- pythonic_fp_circulararray-5.3.0/tests/fixed/test_repr_str_fixed.py +81 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
CHANGELOG
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
Latest version of
|
|
5
|
+
`PyPI pythonic-fp.circulararray project changelog
|
|
6
|
+
<https://github.com/grscheller/pythonic-fp-circulararray/blob/main/README.rst>`_.
|
|
7
|
+
|
|
8
|
+
Semantic Versioning
|
|
9
|
+
-------------------
|
|
10
|
+
|
|
11
|
+
Strict 3 digit semantic versioning adopted 2025-05-19.
|
|
12
|
+
|
|
13
|
+
- **MAJOR** version incremented for incompatible API changes
|
|
14
|
+
- **MINOR** version incremented for backward compatible added functionality
|
|
15
|
+
- **PATCH** version incremented for backward compatible bug fixes
|
|
16
|
+
|
|
17
|
+
See `Semantic Versioning 2.0.0 <https://semver.org>`_.
|
|
18
|
+
|
|
19
|
+
Releases and Important Milestones
|
|
20
|
+
---------------------------------
|
|
21
|
+
|
|
22
|
+
5.3.0 - TBD
|
|
23
|
+
~~~~~~~~~~~
|
|
24
|
+
|
|
25
|
+
Added a second version of circulararray which has a fixed capacity.
|
|
26
|
+
|
|
27
|
+
Also, significant docstring changes as the maintainer irons out
|
|
28
|
+
how best to leverage Sphinx.
|
|
29
|
+
|
|
30
|
+
5.2.0 - 2025-07-13
|
|
31
|
+
~~~~~~~~~~~~~~~~~~
|
|
32
|
+
|
|
33
|
+
API addition, removed position only parameters from API `/`
|
|
34
|
+
|
|
35
|
+
- new API should not affect old code
|
|
36
|
+
- adapted overall Sphinx documentation structure from pythonic-fp.queues
|
|
37
|
+
- document generation now done in pythonic-fp repo
|
|
38
|
+
- pythonic_fp.circulararray docstrings still a bit rough
|
|
39
|
+
- fixed broken PyPI links
|
|
40
|
+
|
|
41
|
+
5.1.2 - 2025-07-06
|
|
42
|
+
~~~~~~~~~~~~~~~~~~
|
|
43
|
+
|
|
44
|
+
Documentation across pythonic-fp namespace projects brought closer into agreement.
|
|
45
|
+
|
|
46
|
+
5.1.1 - 2025-07-06
|
|
47
|
+
~~~~~~~~~~~~~~~~~~
|
|
48
|
+
|
|
49
|
+
Devel environment and documentation changes only.
|
|
50
|
+
|
|
51
|
+
- documentation improvements
|
|
52
|
+
- forgot to updated changelog.rst before PyPI release
|
|
53
|
+
- Pythonic FP homepage now points to its GitHub README.md
|
|
54
|
+
|
|
55
|
+
- used to point to its GH-Pages
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
5.1.0 - 2025-07-04
|
|
59
|
+
~~~~~~~~~~~~~~~~~~
|
|
60
|
+
|
|
61
|
+
First PyPI Release with Sphinx replacing pdoc.
|
|
62
|
+
|
|
63
|
+
- switched from ``pdoc`` to ``sphinx`` for document generation
|
|
64
|
+
|
|
65
|
+
- no longer source code controlling generated HTML (too wasteful)
|
|
66
|
+
- using ``sphinx.ext.githubpages`` extension to publish from this repo
|
|
67
|
+
- using ``sphinx.ext.autodoc`` to generate detailed API documentation
|
|
68
|
+
- using the ``piccolo-theme at https://pypi.org/project/piccolo-theme/``
|
|
69
|
+
|
|
70
|
+
- beautiful dark mode
|
|
71
|
+
- plays nice with ``autodoc`` and ``DarkReader``
|
|
72
|
+
|
|
73
|
+
- some formatting changes
|
|
74
|
+
|
|
75
|
+
- no actual code changes
|
|
76
|
+
- did remove TypeVar hack used for pdoc
|
|
77
|
+
|
|
78
|
+
- made pyproject.toml improvements
|
|
79
|
+
|
|
80
|
+
- better tooling configurations
|
|
81
|
+
- removed all version caps from pyproject.toml, see this
|
|
82
|
+
`blog post <https://iscinumpy.dev/post/bound-version-constraints>`_.
|
|
83
|
+
|
|
84
|
+
5.0.0 - 2025-05-23
|
|
85
|
+
~~~~~~~~~~~~~~~~~~
|
|
86
|
+
|
|
87
|
+
First PyPI release as ``pythonic-fp.circular-array``.
|
|
88
|
+
|
|
89
|
+
- there was already a PyPI project with the dtools name
|
|
90
|
+
- the name pythonic-fp was not taken
|
|
91
|
+
|
|
92
|
+
- using it as the namespace name for the entire group
|
|
93
|
+
- does exist as an "skeleton" project just to claim the name
|
|
94
|
+
- installing it will break all the namespace packages
|
|
95
|
+
- didn't want any confusion caused by someone else claiming the name
|
|
96
|
+
|
|
97
|
+
3.14.0 - 2025-05-10
|
|
98
|
+
~~~~~~~~~~~~~~~~~~~
|
|
99
|
+
|
|
100
|
+
Made package just a single module.
|
|
101
|
+
|
|
102
|
+
- dtools.circular_array.ca -> dtools.circular_array
|
|
103
|
+
- docstring consolidations/updates
|
|
104
|
+
|
|
105
|
+
3.13.0 - 2025-05-06
|
|
106
|
+
~~~~~~~~~~~~~~~~~~~
|
|
107
|
+
|
|
108
|
+
Version no longer determined dynamically.
|
|
109
|
+
|
|
110
|
+
- made all non-splatted method parameters position only
|
|
111
|
+
- version now set in pyproject.toml
|
|
112
|
+
- no longer doing 4 part development versioning
|
|
113
|
+
- version will either denote
|
|
114
|
+
|
|
115
|
+
- the current PyPI release - if no substantive changes made
|
|
116
|
+
- the next PyPI release - what development is working toward
|
|
117
|
+
|
|
118
|
+
3.12.1 - 2025-04-22
|
|
119
|
+
~~~~~~~~~~~~~~~~~~~
|
|
120
|
+
|
|
121
|
+
- docstring changes
|
|
122
|
+
- pyproject.toml standardization
|
|
123
|
+
|
|
124
|
+
3.12.0 - 2025-04-07
|
|
125
|
+
~~~~~~~~~~~~~~~~~~~
|
|
126
|
+
|
|
127
|
+
API change.
|
|
128
|
+
|
|
129
|
+
- class CA[D] no longer inherits from Sequence[D]
|
|
130
|
+
- typing improvements
|
|
131
|
+
|
|
132
|
+
3.11.0 - 2025-04-06
|
|
133
|
+
~~~~~~~~~~~~~~~~~~~
|
|
134
|
+
|
|
135
|
+
Major API change.
|
|
136
|
+
|
|
137
|
+
- swapped names `ca` and `CA`
|
|
138
|
+
|
|
139
|
+
- class name now `CA`
|
|
140
|
+
- factory function taking variable number of arguments is now `ca`
|
|
141
|
+
|
|
142
|
+
- class initializer still takes `1` or `0` iterables
|
|
143
|
+
|
|
144
|
+
- still want this class to behave like a builtin
|
|
145
|
+
- but got tired fighting linters
|
|
146
|
+
- maybe being "Pythonic" means
|
|
147
|
+
|
|
148
|
+
- that only builtins should break naming conventions
|
|
149
|
+
- naming conventions being
|
|
150
|
+
|
|
151
|
+
- snake_case for functions and method names
|
|
152
|
+
- CamelCase for class names
|
|
153
|
+
|
|
154
|
+
- perhaps a visual distinction is useful to tell when you
|
|
155
|
+
- are dealing with user/library Python code
|
|
156
|
+
- C code presenting itself as a Python class
|
|
157
|
+
|
|
158
|
+
- typing improvements
|
|
159
|
+
|
|
160
|
+
3.10.1 - 2025-04-03
|
|
161
|
+
~~~~~~~~~~~~~~~~~~~
|
|
162
|
+
|
|
163
|
+
Major API changes.
|
|
164
|
+
|
|
165
|
+
- class name still `ca`
|
|
166
|
+
|
|
167
|
+
- initializer takes 1 or 0 iterables
|
|
168
|
+
|
|
169
|
+
- like Python builtin types `list` or `tuple`
|
|
170
|
+
|
|
171
|
+
- factory function `CA` provided to create a `ca` from mult args
|
|
172
|
+
|
|
173
|
+
- like `[]` or `{}`
|
|
174
|
+
|
|
175
|
+
- otherwise, method names are all snake_case compatible
|
|
176
|
+
|
|
177
|
+
- examples
|
|
178
|
+
|
|
179
|
+
- popL -> popl
|
|
180
|
+
- pushR -> pushr
|
|
181
|
+
- fractionFilled -> fraction_filled
|
|
182
|
+
|
|
183
|
+
- updated pyproject.toml
|
|
184
|
+
- to better match other dtools namespace projects
|
|
185
|
+
|
|
186
|
+
3.9.1 - 2025-02-16
|
|
187
|
+
~~~~~~~~~~~~~~~~~~
|
|
188
|
+
|
|
189
|
+
Fixed pdoc issues with new typing notation.
|
|
190
|
+
|
|
191
|
+
- updated docstrings
|
|
192
|
+
- had to add TypeVars
|
|
193
|
+
|
|
194
|
+
3.9.0 - 2025-01-16
|
|
195
|
+
~~~~~~~~~~~~~~~~~~
|
|
196
|
+
|
|
197
|
+
First release as dtools.circular-array,
|
|
198
|
+
was previously grscheller.circular-array.
|
|
199
|
+
|
|
200
|
+
3.8.0 - 2025-01-03
|
|
201
|
+
~~~~~~~~~~~~~~~~~~
|
|
202
|
+
|
|
203
|
+
Now circular-array indexing methods fully support slicing, also added
|
|
204
|
+
the rotL(n) and rotR(n) methods.
|
|
205
|
+
|
|
206
|
+
3.7.1 - 2024-11-18
|
|
207
|
+
~~~~~~~~~~~~~~~~~~
|
|
208
|
+
|
|
209
|
+
For internal changes. Mostly for consistency across PyPI namespace projects
|
|
210
|
+
|
|
211
|
+
3.7.0 - 2024-10-26
|
|
212
|
+
~~~~~~~~~~~~~~~~~~
|
|
213
|
+
|
|
214
|
+
Regenerated docs for PyPI release.
|
|
215
|
+
|
|
216
|
+
3.6.3.2 - 2024-10-20
|
|
217
|
+
~~~~~~~~~~~~~~~~~~~~
|
|
218
|
+
|
|
219
|
+
Just a commit, preparing for a 3.7.0 PyPI release.
|
|
220
|
+
|
|
221
|
+
- renamed class ca -> CA
|
|
222
|
+
- created factory function for original constructor use case
|
|
223
|
+
- generated docs in docs repo
|
|
224
|
+
|
|
225
|
+
3.6.2 - 2024-10-20
|
|
226
|
+
~~~~~~~~~~~~~~~~~~
|
|
227
|
+
|
|
228
|
+
Removed docs from repo, now docs for all grscheller namespace projects located
|
|
229
|
+
[here](https://grscheller.github.io/grscheller-pypi-namespace-docs/).
|
|
230
|
+
|
|
231
|
+
3.6.1 - 2024-10-18
|
|
232
|
+
~~~~~~~~~~~~~~~~~~
|
|
233
|
+
|
|
234
|
+
Infrastructure and minor docstring changes. Should be compatible with
|
|
235
|
+
version 3.6.0.
|
|
236
|
+
|
|
237
|
+
3.6.0 - 2024-09-21
|
|
238
|
+
~~~~~~~~~~~~~~~~~~
|
|
239
|
+
|
|
240
|
+
No future changes planned for the foreseeable future
|
|
241
|
+
|
|
242
|
+
- feature complete
|
|
243
|
+
- no external dependencies
|
|
244
|
+
- well tested with other grscheller namespace packages
|
|
245
|
+
- final API tweaks made
|
|
246
|
+
- several more pytest tests added
|
|
247
|
+
- made the `compact` method private, now called `_compact_storage_capacity`
|
|
248
|
+
|
|
249
|
+
3.5.0 - 2024-09-21
|
|
250
|
+
~~~~~~~~~~~~~~~~~~
|
|
251
|
+
|
|
252
|
+
- made the `double` method
|
|
253
|
+
- O(1) amortized pushes and pops either end.
|
|
254
|
+
- O(1) indexing
|
|
255
|
+
- fully supports slicing
|
|
256
|
+
- safely mutates over previous cached state, now called `_double_storage_capacity`
|
|
257
|
+
- major docstring improvements
|
|
258
|
+
- improved indentation and code alignment, now much more Pythonic
|
|
259
|
+
|
|
260
|
+
3.4.1 - 2024-08-17
|
|
261
|
+
~~~~~~~~~~~~~~~~~~
|
|
262
|
+
|
|
263
|
+
- updated README.md to reflect name changes of CA methods
|
|
264
|
+
- docstring improvements
|
|
265
|
+
|
|
266
|
+
3.4.0 - 2024-08-15
|
|
267
|
+
~~~~~~~~~~~~~~~~~~
|
|
268
|
+
|
|
269
|
+
Updated `__eq__` comparisons.
|
|
270
|
+
|
|
271
|
+
- first compare elements by identity before equality
|
|
272
|
+
|
|
273
|
+
- I noticed that is what Python builtins do
|
|
274
|
+
- makes dealing with grscheller.fp.nada module easier
|
|
275
|
+
|
|
276
|
+
- standardizing docstrings across grscheller PyPI projects
|
|
277
|
+
|
|
278
|
+
3.3.0.1 - 2024-08-05
|
|
279
|
+
~~~~~~~~~~~~~~~~~~~~
|
|
280
|
+
|
|
281
|
+
Just a commit, made a paradigm "regression".
|
|
282
|
+
|
|
283
|
+
- made a paradigm "regression", preparing for a 3.4.0 release
|
|
284
|
+
- felt CA was becoming way too complicated
|
|
285
|
+
- grscheller.datastructures needed it to fully embrace type annotations
|
|
286
|
+
|
|
287
|
+
- but I was shifting too many features back into grscheller.circular-array
|
|
288
|
+
- want ca to be useful for non-functional applications
|
|
289
|
+
|
|
290
|
+
The changes made were
|
|
291
|
+
|
|
292
|
+
- removed grscheller.fp dependency
|
|
293
|
+
- remove `_sentinel` and `_storable` slots from CA class
|
|
294
|
+
- remove copy method, just use `ca2 = CA(*ca1)` to make a shallow copy
|
|
295
|
+
- adjust `__repr__` and `__str__` methods
|
|
296
|
+
- experimenting with Sphinx syntax in docstrings (still using pdoc3)
|
|
297
|
+
- changed nomenclature from "left/right" to "front/rear"
|
|
298
|
+
- unsafe and safe versions of pop & fold functionality
|
|
299
|
+
- left and right folds improvements
|
|
300
|
+
|
|
301
|
+
- consolidated `foldL, foldL1, foldR, foldR1` into `foldL` & `foldR`
|
|
302
|
+
|
|
303
|
+
- tests working
|
|
304
|
+
|
|
305
|
+
- basically I changed pops to unsafe pops and added `try except` blocks
|
|
306
|
+
- safe versions tests needed
|
|
307
|
+
|
|
308
|
+
- safe pops return multiple values in tuples
|
|
309
|
+
- will take a `default` value to return
|
|
310
|
+
|
|
311
|
+
- if only asked to return 1 value and CA is empty
|
|
312
|
+
- seems to work properly from iPython
|
|
313
|
+
|
|
314
|
+
3.2.0 - 2024-07-26
|
|
315
|
+
~~~~~~~~~~~~~~~~~~
|
|
316
|
+
|
|
317
|
+
The class name was changed ``CircularArray -> CA`` Now takes a "sentinel" or "fallback" value in its
|
|
318
|
+
initializer, formally used ``None`` for this.
|
|
319
|
+
|
|
320
|
+
3.1.0 - 2024-07-11
|
|
321
|
+
~~~~~~~~~~~~~~~~~~
|
|
322
|
+
|
|
323
|
+
Generic typing now being used, first PyPI release where multiple values can be
|
|
324
|
+
pushed on CircularArray.
|
|
325
|
+
|
|
326
|
+
3.0.0 - 2024-06-28
|
|
327
|
+
~~~~~~~~~~~~~~~~~~
|
|
328
|
+
Just a commit, not a PyPI release.
|
|
329
|
+
|
|
330
|
+
CircularArray class now using Generic Type Parameter. new epoch in development,
|
|
331
|
+
start of 3.0 series. Now using TypeVars.
|
|
332
|
+
|
|
333
|
+
API changes:
|
|
334
|
+
|
|
335
|
+
- ``foldL(self, f: Callable[[T, T], T]) -> T|None``
|
|
336
|
+
- ``foldR(self, f: Callable[[T, T], T]) -> T|None``
|
|
337
|
+
- ``foldL1(self, f: Callable[[S, T], S], initial: S) -> S``
|
|
338
|
+
- ``foldR1(self, f: Callable[[T, S], S], initial: S) -> S``
|
|
339
|
+
|
|
340
|
+
2.0.0 - 2024-03-08
|
|
341
|
+
~~~~~~~~~~~~~~~~~~
|
|
342
|
+
|
|
343
|
+
New "epoch" due to resizing bug fixed on previous commit.
|
|
344
|
+
|
|
345
|
+
- much improved and cleaned up
|
|
346
|
+
- better test suite
|
|
347
|
+
- method `_double()` made "public" and renamed `double()`
|
|
348
|
+
- method `resize(new_size)` now resizes to at least new_size
|
|
349
|
+
|
|
350
|
+
1.1.0.0 - 2024-03-08
|
|
351
|
+
~~~~~~~~~~~~~~~~~~~~
|
|
352
|
+
|
|
353
|
+
Just a commit to prepare for PyPI release 2.0.0!!!
|
|
354
|
+
|
|
355
|
+
- BUGFIX: Fixed a subtle resizing bug
|
|
356
|
+
|
|
357
|
+
- bug probably present in all previous versions
|
|
358
|
+
- not previously identified due to inadequate test coverage
|
|
359
|
+
- test coverage improved vastly
|
|
360
|
+
|
|
361
|
+
- made some major code API changes
|
|
362
|
+
|
|
363
|
+
- upon initialization minimizing size of the CircularArray
|
|
364
|
+
- have some ideas on how to improve API for resizing CircularArrays
|
|
365
|
+
- need to test my other 2 PyPI projects, both use circular-array as a dependency
|
|
366
|
+
|
|
367
|
+
1.0.1 - 2024-03-01
|
|
368
|
+
~~~~~~~~~~~~~~~~~~
|
|
369
|
+
|
|
370
|
+
Docstring updates to match other grscheller PyPI repos.
|
|
371
|
+
|
|
372
|
+
1.0.0 - 2024-02-10
|
|
373
|
+
~~~~~~~~~~~~~~~~~~
|
|
374
|
+
|
|
375
|
+
First stable PyPI release, dropped minimum Python requirement to 3.10.
|
|
376
|
+
|
|
377
|
+
0.1.1 - 2024-01-30
|
|
378
|
+
~~~~~~~~~~~~~~~~~~
|
|
379
|
+
|
|
380
|
+
Changed circular-array from a package to just a module, actually a breaking API
|
|
381
|
+
change. Version number should have been 0.2.0 Also, gave CircularArray class
|
|
382
|
+
`foldL` & `foldR` methods.
|
|
383
|
+
|
|
384
|
+
0.1.0 - 2024-01-28
|
|
385
|
+
~~~~~~~~~~~~~~~~~~
|
|
386
|
+
|
|
387
|
+
- initial PyPI grscheller.circular-array release
|
|
388
|
+
- migrated Circulararray class from grscheller.datastructures
|
|
389
|
+
- update docstrings to reflect current nomenclature
|
|
390
|
+
|
|
391
|
+
0.0.3 - 2024-01-28
|
|
392
|
+
~~~~~~~~~~~~~~~~~~
|
|
393
|
+
|
|
394
|
+
Got gh-pages working for the repo.
|
|
395
|
+
|
|
396
|
+
0.0.2 - 2024-01-28
|
|
397
|
+
~~~~~~~~~~~~~~~~~~
|
|
398
|
+
|
|
399
|
+
Pushed repo up to GitHub, created README.md file for project.
|
|
400
|
+
|
|
401
|
+
0.0.1 - 2024-01-28
|
|
402
|
+
~~~~~~~~~~~~~~~~~~
|
|
403
|
+
|
|
404
|
+
Decided to split Circulararray class out of grscheller.datastructures, will make it its own PyPI
|
|
405
|
+
project. Got it working with datastructures locally.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pythonic-fp-circulararray
|
|
3
|
+
Version: 5.3.0
|
|
4
|
+
Summary: Package implementing stateful circular array data structures.
|
|
5
|
+
Keywords: auto resizing,circular array,dequeue,indexable,pop,push
|
|
6
|
+
Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
|
|
7
|
+
Requires-Python: >=3.12
|
|
8
|
+
Description-Content-Type: text/x-rst
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Framework :: Pytest
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Typing :: Typed
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: pytest>=8.4.1 ; extra == "test"
|
|
18
|
+
Project-URL: Changelog, https://github.com/grscheller/pythonic-fp-circulararray/blob/main/CHANGELOG.rst
|
|
19
|
+
Project-URL: Documentation, https://grscheller.github.io/pythonic-fp/circulararray/development/build/html/releases.html
|
|
20
|
+
Project-URL: Homepage, https://github.com/grscheller/pythonic-fp/blob/main/README.rst
|
|
21
|
+
Project-URL: Source, https://github.com/grscheller/pythonic-fp-circulararray
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
|
|
24
|
+
PPythonic FP - Circular Array
|
|
25
|
+
=============================
|
|
26
|
+
|
|
27
|
+
PyPI project
|
|
28
|
+
`pythonic-fp.circulararray
|
|
29
|
+
<https://pypi.org/project/pythonic-fp.circulararray>`_.
|
|
30
|
+
|
|
31
|
+
Python module implementing stateful circular array data structures.
|
|
32
|
+
|
|
33
|
+
- O(1) pops either end
|
|
34
|
+
- O(1) amortized pushes either end
|
|
35
|
+
- O(1) indexing, fully supports slicing
|
|
36
|
+
- Auto-resizing larger when necessary, manually compatible
|
|
37
|
+
- iterable, can safely mutate while iterators continue iterating over previous state
|
|
38
|
+
- comparisons compare identity before equality, like builtins
|
|
39
|
+
- in boolean context returns true when not empty, false when empty
|
|
40
|
+
|
|
41
|
+
This PyPI project is part of of the grscheller
|
|
42
|
+
`pythonic-fp namespace projects
|
|
43
|
+
<https://github.com/grscheller/pythonic-fp/blob/main/README.md>`_
|
|
44
|
+
|
|
45
|
+
Documentation
|
|
46
|
+
-------------
|
|
47
|
+
|
|
48
|
+
Documentation for this project is hosted on
|
|
49
|
+
`GitHub Pages
|
|
50
|
+
<https://grscheller.github.io/pythonic-fp/circulararray/development/build/html>`_.
|
|
51
|
+
|
|
52
|
+
Copyright and License
|
|
53
|
+
---------------------
|
|
54
|
+
|
|
55
|
+
Copyright (c) 2023-2025 Geoffrey R. Scheller. Licensed under the Apache
|
|
56
|
+
License, Version 2.0. See the LICENSE file for details.
|
|
57
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
PPythonic FP - Circular Array
|
|
2
|
+
=============================
|
|
3
|
+
|
|
4
|
+
PyPI project
|
|
5
|
+
`pythonic-fp.circulararray
|
|
6
|
+
<https://pypi.org/project/pythonic-fp.circulararray>`_.
|
|
7
|
+
|
|
8
|
+
Python module implementing stateful circular array data structures.
|
|
9
|
+
|
|
10
|
+
- O(1) pops either end
|
|
11
|
+
- O(1) amortized pushes either end
|
|
12
|
+
- O(1) indexing, fully supports slicing
|
|
13
|
+
- Auto-resizing larger when necessary, manually compatible
|
|
14
|
+
- iterable, can safely mutate while iterators continue iterating over previous state
|
|
15
|
+
- comparisons compare identity before equality, like builtins
|
|
16
|
+
- in boolean context returns true when not empty, false when empty
|
|
17
|
+
|
|
18
|
+
This PyPI project is part of of the grscheller
|
|
19
|
+
`pythonic-fp namespace projects
|
|
20
|
+
<https://github.com/grscheller/pythonic-fp/blob/main/README.md>`_
|
|
21
|
+
|
|
22
|
+
Documentation
|
|
23
|
+
-------------
|
|
24
|
+
|
|
25
|
+
Documentation for this project is hosted on
|
|
26
|
+
`GitHub Pages
|
|
27
|
+
<https://grscheller.github.io/pythonic-fp/circulararray/development/build/html>`_.
|
|
28
|
+
|
|
29
|
+
Copyright and License
|
|
30
|
+
---------------------
|
|
31
|
+
|
|
32
|
+
Copyright (c) 2023-2025 Geoffrey R. Scheller. Licensed under the Apache
|
|
33
|
+
License, Version 2.0. See the LICENSE file for details.
|