ofnodes


Nameofnodes JSON
Version 2.2.1 PyPI version JSON
download
home_pageNone
SummaryA library of Data Structures and Algorithms written in Python
upload_time2024-06-13 04:29:07
maintainerNone
docs_urlNone
authorRobert Portelli
requires_python<4.0,>=3.11
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ofnodes

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Python Version](https://img.shields.io/badge/python-%3E=3.11.5-blue.svg)](https://www.python.org/downloads/release/python-3115/)
![Build Status](https://github.com/robert-portelli/ofnodes/actions/workflows/01_build.yml/badge.svg)
![Tests](https://github.com/robert-portelli/ofnodes/actions/workflows/02_test.yml/badge.svg)
[![Documentation](https://github.com/robert-portelli/ofnodes/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/robert-portelli/ofnodes/actions/workflows/pages/pages-build-deployment)
[![codecov](https://codecov.io/gh/robert-portelli/ofnodes/graph/badge.svg?token=2XI42KBTRQ)](https://codecov.io/gh/robert-portelli/ofnodes)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
![Black](https://img.shields.io/badge/code%20style-black-000000.svg)
[![PyPI - Version](https://img.shields.io/pypi/v/ofnodes)](https://pypi.org/project/ofnodes/)


**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
```python
pip install ofnodes
```

## Usage


```python
>>> 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:

```python
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/
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ofnodes",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Robert Portelli",
    "author_email": "github@robertportelli.com",
    "download_url": "https://files.pythonhosted.org/packages/9a/c9/baf2ab3e4bcc198e9d05a88d28ec360087cbbc5a8cbe88cca0b3199b42de/ofnodes-2.2.1.tar.gz",
    "platform": null,
    "description": "# ofnodes\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Python Version](https://img.shields.io/badge/python-%3E=3.11.5-blue.svg)](https://www.python.org/downloads/release/python-3115/)\n![Build Status](https://github.com/robert-portelli/ofnodes/actions/workflows/01_build.yml/badge.svg)\n![Tests](https://github.com/robert-portelli/ofnodes/actions/workflows/02_test.yml/badge.svg)\n[![Documentation](https://github.com/robert-portelli/ofnodes/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/robert-portelli/ofnodes/actions/workflows/pages/pages-build-deployment)\n[![codecov](https://codecov.io/gh/robert-portelli/ofnodes/graph/badge.svg?token=2XI42KBTRQ)](https://codecov.io/gh/robert-portelli/ofnodes)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)\n![Black](https://img.shields.io/badge/code%20style-black-000000.svg)\n[![PyPI - Version](https://img.shields.io/pypi/v/ofnodes)](https://pypi.org/project/ofnodes/)\n\n\n**ofnodes** is a Python Package providing examples of the Author's ability\nto implement data structures and algorithms in Python. It is not a substitute\nfor built-in or other third-party implementations of the same data structures\nand algorithms. It aims to illustrate the author's ability to produce a\ndistributable package of objects behind a thoughtful user interface.\n\n## Features\nHere is what ofnodes can do:\n- implement a node object with a unidirectional pointer\n- implement and manipulate a linked list object of unidirectional,\n    i.e., 'singly linked' nodes.\n\n## Installation\n```python\npip install ofnodes\n```\n\n## Usage\n\n\n```python\n>>> llist = SinglyLinkedList()\n>>> llist.head = \"first node\"\n>>> llist.head = [42.0, True, \"LGRW\"]\n>>> llist.tail = \"third node added to list\"\n>>> llist\nSinglyLinkedList(head=This node's data is 3 of type list., tail=This node's data is 24 of type str.)\n>>> llist.tail = None\n>>> llist\nSinglyLinkedList(head=This node's data is 3 of type list., tail=This node's data is of type NoneType.)\n>>> llist.head.next.data\n'first node'\n>>> llist.remove_tail()\n>>> llist.tail.data\n'third node added to list'\n```\nFor more usage examples, please refer to the [Documentation][1]\n\n## Documentation\nFor detailed usage information , API reference, and code examples,\nplease refer to the [Documentation][1].\n\n## Configuring Logging\n\nTo configure logging for the my_package library, you can use the `configure_logging` function:\n\n```python\nfrom ofnodes.structures.randomaccessarray import RandomAccessArray\n\n# Configure logging to display debug messages\nofnodes.configure_logging(level=logging.DEBUG)\n\n# Now you can use the library, and it will produce log output\nraarray = ofnodes.RandomAccessArray([8, 2, 6, 4, 5])\nraarray.index_based_insertion_sort()\n\n\n[1]: https://robert-portelli.github.io/ofnodes/",
    "bugtrack_url": null,
    "license": null,
    "summary": "A library of Data Structures and Algorithms written in Python",
    "version": "2.2.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b08fb1f314c3601b1f2c4e6783b3ecaecc5b9b26a4905333e03bab6c8b8b49c",
                "md5": "a27c9076350f1a9a879063b4d35204a3",
                "sha256": "fd01e5686b669a9ea3fd8a72a606e9c7609f4fddecbf2e20bf830568e81678c3"
            },
            "downloads": -1,
            "filename": "ofnodes-2.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a27c9076350f1a9a879063b4d35204a3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 21546,
            "upload_time": "2024-06-13T04:29:05",
            "upload_time_iso_8601": "2024-06-13T04:29:05.497436Z",
            "url": "https://files.pythonhosted.org/packages/2b/08/fb1f314c3601b1f2c4e6783b3ecaecc5b9b26a4905333e03bab6c8b8b49c/ofnodes-2.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ac9baf2ab3e4bcc198e9d05a88d28ec360087cbbc5a8cbe88cca0b3199b42de",
                "md5": "778149c410dd7e3b26e5ba8684531c25",
                "sha256": "5ca7ab2e18bb06fba0727820c93bc708b1d451b0610a18a9818553a95c077e33"
            },
            "downloads": -1,
            "filename": "ofnodes-2.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "778149c410dd7e3b26e5ba8684531c25",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 15905,
            "upload_time": "2024-06-13T04:29:07",
            "upload_time_iso_8601": "2024-06-13T04:29:07.069224Z",
            "url": "https://files.pythonhosted.org/packages/9a/c9/baf2ab3e4bcc198e9d05a88d28ec360087cbbc5a8cbe88cca0b3199b42de/ofnodes-2.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-13 04:29:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ofnodes"
}
        
Elapsed time: 0.23187s