core-data-structures
A Python library providing common data structures including graphs, trees, and lists, with built-in traversal, path-finding, and search algorithms.
Features
Graphs — directed weighted graph with adjacency dictionary representation.
Breadth-first search (BFS)
Depth-first search (DFS)
Path finding (single path, all paths, shortest path)
Trees — binary tree and simple nested-dictionary tree.
Pre-order, in-order, post-order, and level-order traversal
Recursive and iterative variants
Tree depth calculation
Lists — singly and doubly linked lists sharing a common IList/ILinkedList interface.
Value-based CRUD: append, prepend, insert, get/__getitem__, index, pop/pop_front/pop_back, remove (single or all occurrences)
reverse, extend, clear, to_list/from_list
__iter__/__contains__ support, plus O(1) head/end node access
DoubleLinkedList additionally maintains .prev links for backward traversal and locates positions from whichever end (head/end) is closer
Quick Start
Installation
Install from PyPI using pip:
pip install core-data-structures
uv pip install core-data-structures # Or using UV...
pip install -e ".[dev]" # For development...
Setting Up Environment
Install required libraries:
pip install --upgrade pip
pip install virtualenv
Create Python virtual environment:
virtualenv --python=python3.12 .venv
Activate the virtual environment:
source .venv/bin/activate
Install packages:
pip install .
pip install -e ".[dev]"
Check tests and coverage
python manager.py run-tests
python manager.py run-coverage
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Write tests for new functionality
Ensure all tests pass: python manager.py run-tests
Run linting: pylint data_structures
Run security checks: bandit -r data_structures
Submit a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Links
Documentation: https://core-data-structures.readthedocs.io/en/latest/
Repository: https://gitlab.com/bytecode-solutions/core/core-data-structures
Issues: https://gitlab.com/bytecode-solutions/core/core-data-structures/-/issues
Changelog: https://gitlab.com/bytecode-solutions/core/core-data-structures/-/blob/master/CHANGELOG.md
Support
For questions or support, please open an issue on GitLab or contact the maintainers.
Metadata
Release files for core-data-structures 1.4.3
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 |
|---|---|---|---|---|
| core_data_structures-1.4.3.tar.gz | 12.3 kB | With provenance | Details for core_data_structures-1.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| core_data_structures-1.4.3-py3-none-any.whl | Python 3 | none | any | Details for core_data_structures-1.4.3-py3-none-any.whl |
Total release size: 28.4 kB
Release files / core_data_structures-1.4.3.tar.gz
| Download URL | core_data_structures-1.4.3.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c4a1adb19fd966fe9ee8687f8d31a30c70f394fb8f53b602d022916cf1fa055
|
|
BLAKE2b-256 checksum How to use checksums |
47a8a69173db348b79f975ae348145dc33e0e1170fe98096a45a767723df4524
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitLab CI/CD, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / core_data_structures-1.4.3-py3-none-any.whl
| Download URL | core_data_structures-1.4.3-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dd60caa3130ac7bd328cf776054e2917ae1609120b0c08d9d628c69e89b4e56
|
|
BLAKE2b-256 checksum How to use checksums |
dc7b055df3ff3c06e6d554b237b55271cc8fb5451c1d4fbff4e74f33f7384381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitLab CI/CD, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for core-data-structures 1.4.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for core_data_structures-1.4.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitLab CI/CD, verified by PyPI on Nov 16, 2026.
Transparency logA 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.