py-doubly-linked-list 0.1.0__cp314-cp314-macosx_10_15_x86_64.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.

Potentially problematic release.


This version of py-doubly-linked-list might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ from .doubly_linked_list import DoublyLinkedList
@@ -0,0 +1,21 @@
1
+ from typing import Iterable, Any
2
+
3
+ class DoublyLinkedList:
4
+ def __init__(self, Iterable: Iterable) -> None: ...
5
+ def append(self, object: Any, forward: bool = True) -> None: ...
6
+ def clear(self) -> None: ...
7
+ def copy(self) -> DoublyLinkedList: ...
8
+ def count(self, value: Any) -> int: ...
9
+ def extend(self, iterable: Iterable, forward: bool = True) -> None: ...
10
+ def index(self, value: Any, start: int, stop: int) -> int: ...
11
+ def insert(self, object: Any, index: int, forward: bool = True) -> None: ...
12
+ def pop(self, index: int = -1) -> Any: ...
13
+ def remove(self, value: Any) -> None: ...
14
+ def reverse(self) -> None: ...
15
+ def __add__(self, Iterable: Iterable) -> DoublyLinkedList: ...
16
+ def __contains__(self, Any: Any) -> bool: ...
17
+ def __delitem__(self, Any: Any) -> None: ...
18
+ def __getitem__(self, Index: int) -> Any: ...
19
+ def __iadd__(self, Iterable: Iterable) -> None: ...
20
+ def __len__(self) -> int: ...
21
+ def __setitem__(self, Index: int, Object: Any) -> None: ...
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: py-doubly-linked-list
3
+ Version: 0.1.0
4
+ Summary: A library adding doubly linked lists to python.
5
+ Author-email: Joshua Morningstar <joshuam18745@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Documentation, https://github.com/JoshuaM176/PyDoublyLinkedList/blob/main/README.MD
8
+ Project-URL: Repository, https://github.com/JoshuaM176/PyDoublyLinkedList
9
+ Project-URL: Issues, https://github.com/JoshuaM176/PyDoublyLinkedList/issues
10
+ Project-URL: Changelog, https://github.com/JoshuaM176/PyDoublyLinkedList/blob/main/CHANGES
11
+ Keywords: doubly linked list,data structure
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ License-File: README.MD
25
+ Dynamic: license-file
26
+
27
+ # py-doubly-linked-list
28
+ ## Description
29
+ This library provides an implementation of a doubly linked list for python written with the c api. It is meant to be as close as possible to a regular list in its interface, meaning you can interact with it in almost all of the same ways you interact with a regular python list.
30
+ ## Methods
31
+ - append
32
+ Append object to the end of the list. Set forward to false to append to the start.
33
+ ```Python
34
+ doubly_linked_list.append(object: Any, forward: bool = True)
35
+ ```
36
+ - clear
37
+ Remove all items from the list.
38
+ ```Python
39
+ doubly_linked_list.clear()
40
+ ```
41
+ - copy
42
+ Return a shallow copy of the list.
43
+ ```Python
44
+ doubly_linked_list.copy()
45
+ ```
46
+ - count
47
+ Return number of occurrences of value in the list.
48
+ ```Python
49
+ doubly_linked_list.count(value: Any)
50
+ ```
51
+ - extend
52
+ Extend list by appending elements from the iterable. Set forward to false to extend from the start.
53
+ ```Python
54
+ doubly_linked_list.extend(iterable: Iterable, forward: bool = True)
55
+ ```
56
+ - index
57
+ Return first index of value. Raises ValueError if the value is not present.
58
+ ```Python
59
+ doubly_linked_list.index(value: Any, start: int, stop: int)
60
+ ```
61
+ - insert
62
+ Insert object after index. Set forward to false to insert before index.
63
+ ```Python
64
+ doubly_linked_list.insert(object: Any, index: int, forward: bool = True)
65
+ ```
66
+ - pop
67
+ Remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
68
+ ```Python
69
+ doubly_linked_list.pop(index: int = -1)
70
+ ```
71
+ - remove
72
+ Remove first occurence of value. Raises ValueError if the value is not present.
73
+ ```Python
74
+ doubly_linked_list.remove(value: Any)
75
+ ```
76
+ - reverse
77
+ Reverse the order of the list.
78
+ ```Python
79
+ doubly_linked_list.reverse()
80
+ ```
81
+ The DoublyLinkedList also supports:
82
+ - concatenation with other iterables
83
+ - in-place concatenation with other iterables
84
+ - indexing and assignment by index
85
+ - slicing
86
+ - iterating
87
+
88
+ Things that are not currently supported but might be in the future:
89
+ - sorting
90
+ - assigning slices
91
+ - repeating, i.e list = [1] * 5 create a list with 1 repeated 5 times
92
+
93
+ # License
94
+ Copyright (c) 2025 Joshua A. Morningstar
95
+
96
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
97
+
98
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
1
+ py_doubly_linked_list/__init__.pyi,sha256=CzbKc1rwiJSMqON5YdXGSpYV0PaokyVIuPeFxlyQG9A,1025
2
+ py_doubly_linked_list/__init__.py,sha256=yr4gaBVd4p_p8w2baBhpKltQ_o75jiU5YIELuJ5U5zI,48
3
+ py_doubly_linked_list/doubly_linked_list.cpython-314-darwin.so,sha256=PH_z4yThUNo8cmkChM_0zPg3ZVUHbv8A-tMHf5-9pFw,27096
4
+ py_doubly_linked_list-0.1.0.dist-info/RECORD,,
5
+ py_doubly_linked_list-0.1.0.dist-info/WHEEL,sha256=4Cxp45cRJjM_RhSwJ40gZB-W75KdWWT7Z-2loeADFVA,138
6
+ py_doubly_linked_list-0.1.0.dist-info/top_level.txt,sha256=8eaqZ5zvqWobW61EaJ1AudwZk29Tp4A6Y_c4FVwxz24,22
7
+ py_doubly_linked_list-0.1.0.dist-info/METADATA,sha256=sil1fAvagDMptxnLWt46Tlqxi-6Dv0Zc6a10tkGG-oA,4301
8
+ py_doubly_linked_list-0.1.0.dist-info/licenses/LICENSE,sha256=OXmDBD9VgR2KHXaevu57Mkg9T-H1ex_G2qqXbDhHeYw,1064
9
+ py_doubly_linked_list-0.1.0.dist-info/licenses/README.MD,sha256=oCATHYWOL7zVn32oJiTDx-gv-sfPpqfgXBqg3BxjDpg,3142
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-macosx_10_15_x86_64
5
+ Generator: delocate 0.13.0
6
+
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2025 Joshua A. Morningstar
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,74 @@
1
+ # py-doubly-linked-list
2
+ ## Description
3
+ This library provides an implementation of a doubly linked list for python written with the c api. It is meant to be as close as possible to a regular list in its interface, meaning you can interact with it in almost all of the same ways you interact with a regular python list.
4
+ ## Methods
5
+ - append
6
+ Append object to the end of the list. Set forward to false to append to the start.
7
+ ```Python
8
+ doubly_linked_list.append(object: Any, forward: bool = True)
9
+ ```
10
+ - clear
11
+ Remove all items from the list.
12
+ ```Python
13
+ doubly_linked_list.clear()
14
+ ```
15
+ - copy
16
+ Return a shallow copy of the list.
17
+ ```Python
18
+ doubly_linked_list.copy()
19
+ ```
20
+ - count
21
+ Return number of occurrences of value in the list.
22
+ ```Python
23
+ doubly_linked_list.count(value: Any)
24
+ ```
25
+ - extend
26
+ Extend list by appending elements from the iterable. Set forward to false to extend from the start.
27
+ ```Python
28
+ doubly_linked_list.extend(iterable: Iterable, forward: bool = True)
29
+ ```
30
+ - index
31
+ Return first index of value. Raises ValueError if the value is not present.
32
+ ```Python
33
+ doubly_linked_list.index(value: Any, start: int, stop: int)
34
+ ```
35
+ - insert
36
+ Insert object after index. Set forward to false to insert before index.
37
+ ```Python
38
+ doubly_linked_list.insert(object: Any, index: int, forward: bool = True)
39
+ ```
40
+ - pop
41
+ Remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
42
+ ```Python
43
+ doubly_linked_list.pop(index: int = -1)
44
+ ```
45
+ - remove
46
+ Remove first occurence of value. Raises ValueError if the value is not present.
47
+ ```Python
48
+ doubly_linked_list.remove(value: Any)
49
+ ```
50
+ - reverse
51
+ Reverse the order of the list.
52
+ ```Python
53
+ doubly_linked_list.reverse()
54
+ ```
55
+ The DoublyLinkedList also supports:
56
+ - concatenation with other iterables
57
+ - in-place concatenation with other iterables
58
+ - indexing and assignment by index
59
+ - slicing
60
+ - iterating
61
+
62
+ Things that are not currently supported but might be in the future:
63
+ - sorting
64
+ - assigning slices
65
+ - repeating, i.e list = [1] * 5 create a list with 1 repeated 5 times
66
+
67
+ # License
68
+ Copyright (c) 2025 Joshua A. Morningstar
69
+
70
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
71
+
72
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ py_doubly_linked_list