Skip to main content

A library of Data Structures and Algorithms written in Python

Reason this release was yanked:

bug

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

Documentation

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

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-1.11.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

ofnodes-1.11.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ofnodes-1.11.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.4 Linux/6.5.0-28-generic

File hashes

Hashes for ofnodes-1.11.0.tar.gz
Algorithm Hash digest
SHA256 abc7d92a6c20f15d650ac41c2140467525165ae2a055c51d2cdd72ad71c10bfc
MD5 f3fec639f891583c5cc6f9532ee087cc
BLAKE2b-256 b73b0362d045c4c01ee0502c26d3f5b79d1adc30251f7701b1ae8699534938eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ofnodes-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.4 Linux/6.5.0-28-generic

File hashes

Hashes for ofnodes-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd73a6ae08b5461ad469544c62b1784263bd20387ac9ed1ff234a9d21822b30
MD5 dd7e960f9ecf404e1279ef48a5a21ec6
BLAKE2b-256 56113313deb8d0fc8dcc7f78ea673365975c0b451ef658ebdaabba3d08d6c5cd

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