Skip to main content

py-simple-trees

This package is a implementation collection of tree data structures.

Test Publish Coverage Package version Downloads

PyPI - Python Version


Documentation: https://lpthong90.dev/py-simple-trees

Source Code: https://github.com/lpthong90/py-simple-trees


This package is a implementation collection of tree data structures.

Installation

$ pip install py-simple-trees

---> 100%

Successfully installed py-simple-trees

Tree Types

  • Binary Tree
  • Binary Search Tree (BST)
  • AVL Tree

Basic Usage

from py_simple_trees import AVLTree

if __name__ == "__main__":
    tree = AVLTree()

    tree.insert(1, 1)
    tree.insert(2, 2)
    tree.insert(3, 3)
    tree.insert(4, 4)
    tree.insert(5, 5)
    tree.insert(6, 6)
    tree.insert(7, 7)

    tree.print()

Output

4 --L--> 2
4 --R--> 6
2 --L--> 1
2 --R--> 3
6 --L--> 5
6 --R--> 7

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for py-simple-trees 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-simple-trees 0.1.3
File Size Uploaded Provenance Actions
py_simple_trees-0.1.3.tar.gz 4.1 kB Without provenance Details for py_simple_trees-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-simple-trees 0.1.3
File Interpreter ABI Platform Actions
py_simple_trees-0.1.3-py3-none-any.whl Python 3 none any Details for py_simple_trees-0.1.3-py3-none-any.whl

Total release size: 9.2 kB

Release files / py_simple_trees-0.1.3.tar.gz

Download URL py_simple_trees-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
616e4c4dc322bfbc65c2bb924364e70f2146bf3364f0ba368ac68863f681a3c7
BLAKE2b-256 checksum
How to use checksums
e47cc709a0c6c29b48f105c86420fcd58bf2bbde62bf2e61af0ef789354212bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure

Release files / py_simple_trees-0.1.3-py3-none-any.whl

Download URL py_simple_trees-0.1.3-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99b48a26d831a48bf2c92249a9bf3cc0be7fd4db460e04069a8c295cb4ced425
BLAKE2b-256 checksum
How to use checksums
f24ef4043cbf98b1ab24a28e7cb6f803b1760df54d681319b6383b364f38770e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1019-azure

Security for py-simple-trees 0.1.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.

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page