This library provides a set of data structures that will work on python objects similar to collections framework in java
Project description
obify
A python library that will provide all algorithms working on object
This library can be used following way
from obify import heap
class Node():
def __init__(self, data):
self.data = data
def compare(self, node):
if self.data < node.data:
return -1
elif self.data > node.data:
return 1
else:
return 0
def test_heap():
h = heap.MinHeap()
h.insert(Node(12))
h.insert(Node(2))
h.insert(Node(20))
h.remove()
h.insert(Node(0))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
obify-0.0.3.tar.gz
(2.8 kB
view details)
File details
Details for the file obify-0.0.3.tar.gz
.
File metadata
- Download URL: obify-0.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/0.23 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11eb0aef64b8fb558add6b4ce9cb2b4f2512a2d3cf53481e1147230228ecd4d |
|
MD5 | ee5971cb10e18c392290bd0e37e15aa6 |
|
BLAKE2b-256 | fdfd119defbc5826efb84c843ea2bd48c9763c5d7ec646e4352fe2199801ddb9 |