This code is a Python implementation of a doubly linked list. I needed it for a very narrow scope, so the functionality might not have what you’re looking for. If you’d like a feature added, please email AWNystrom@gmail.com
INSTALLATION To instal, run the following command: python setup.py install
TESTING To run unit tests, run the following command: python doubly_linked_list/test_doubly_linked_list.py
USAGE Here’s some example usage:
>>> from doubly_linked_list import DoublyLinkedList >>> dll = DoublyLinkedList(range(10)) >>> print dll [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> dll.moveToHead(dll.tail) >>> print dll [9, 0, 1, 2, 3, 4, 5, 6, 7, 8] >>> dll.removeHead() >>> print dll [0, 1, 2, 3, 4, 5, 6, 7, 8] >>> from random import shuffle >>> shuffle(dll) >>> print dll [1, 4, 0, 2, 6, 3, 5, 7, 8] >>> dll.moveToHead(dll.getNodeByIndex(4)) >>> print dll [6, 1, 4, 0, 2, 3, 5, 7, 8]
Metadata
Release files for doubly_linked_list 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doubly_linked_list-1.0.0.tar.gz | 3.1 kB | Without provenance | Details for doubly_linked_list-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| doubly_linked_list-1.0.0.macosx-10.5-x86_64.exe | Details for doubly_linked_list-1.0.0.macosx-10.5-x86_64.exe |
Total release size: 68.2 kB
Release files / doubly_linked_list-1.0.0.tar.gz
| Download URL | doubly_linked_list-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c27dd9005268318bea7c76e1a3876e8f5e156253dee26d8a154f72dcec880f3
|
|
BLAKE2b-256 checksum How to use checksums |
9ac2b51513908bbc02ed2cbe4aa3a7f5285293c6a87507a93532f411c3656d21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / doubly_linked_list-1.0.0.macosx-10.5-x86_64.exe
| Download URL | doubly_linked_list-1.0.0.macosx-10.5-x86_64.exe |
|---|---|
| Size | 65.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35f1f5adaad77c668f79ef6b2d87ac656d7b9409e93373bbf55e762af9ae2ad3
|
|
BLAKE2b-256 checksum How to use checksums |
26431d3b2093d8b2686446e622b0d5953003504bca05ec83eb0fe0d394e18813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for doubly_linked_list 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.