Skip to main content

A library of Data Structures and Algorithms written in Python

Project description

ofnodes

License Python Version Build Status Tests Documentation codecov Poetry pre-commit Black PyPI - Version

ofnodes is a Python Package providing examples of the Author's ability to implement data structures and algorithms in Python. It is not a substitute for built-in or other third-party implementations of the same data structures and algorithms. It aims to illustrate the author's ability to produce a distributable package of objects behind a thoughtful user interface.

Features

Here is what ofnodes can do:

  • implement a node object with a unidirectional pointer
  • implement and manipulate a linked list object of unidirectional, i.e., 'singly linked' nodes.

Installation

pip install ofnodes

Usage

>>> llist = SinglyLinkedList()
>>> llist.head = "first node"
>>> llist.head = [42.0, True, "LGRW"]
>>> llist.tail = "third node added to list"
>>> llist
SinglyLinkedList(head=This node's data is 3 of type list., tail=This node's data is 24 of type str.)
>>> llist.tail = None
>>> llist
SinglyLinkedList(head=This node's data is 3 of type list., tail=This node's data is of type NoneType.)
>>> llist.head.next.data
'first node'
>>> llist.remove_tail()
>>> llist.tail.data
'third node added to list'

For more usage examples, please refer to the [Documentation][1]

Documentation

For detailed usage information , API reference, and code examples, please refer to the [Documentation][1].

Configuring Logging

To configure logging for the my_package library, you can use the configure_logging function:

from ofnodes.structures.randomaccessarray import RandomAccessArray

# Configure logging to display debug messages
ofnodes.configure_logging(level=logging.DEBUG)

# Now you can use the library, and it will produce log output
raarray = ofnodes.RandomAccessArray([8, 2, 6, 4, 5])
raarray.index_based_insertion_sort()


[1]: https://robert-portelli.github.io/ofnodes/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ofnodes-2.2.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ofnodes-2.2.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file ofnodes-2.2.1.tar.gz.

File metadata

  • Download URL: ofnodes-2.2.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/5.4.0-182-generic

File hashes

Hashes for ofnodes-2.2.1.tar.gz
Algorithm Hash digest
SHA256 5ca7ab2e18bb06fba0727820c93bc708b1d451b0610a18a9818553a95c077e33
MD5 778149c410dd7e3b26e5ba8684531c25
BLAKE2b-256 9ac9baf2ab3e4bcc198e9d05a88d28ec360087cbbc5a8cbe88cca0b3199b42de

See more details on using hashes here.

File details

Details for the file ofnodes-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: ofnodes-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.18 Linux/5.4.0-182-generic

File hashes

Hashes for ofnodes-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd01e5686b669a9ea3fd8a72a606e9c7609f4fddecbf2e20bf830568e81678c3
MD5 a27c9076350f1a9a879063b4d35204a3
BLAKE2b-256 2b08fb1f314c3601b1f2c4e6783b3ecaecc5b9b26a4905333e03bab6c8b8b49c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page