Skip to main content

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


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

Uploaded Source

File details

Details for the file obify-0.0.2.tar.gz.

File metadata

  • Download URL: obify-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6

File hashes

Hashes for obify-0.0.2.tar.gz
Algorithm Hash digest
SHA256 08fc7434c5cf69eea35f591aa818f77fbeda554af30c7d82d0916e9ce77a0f75
MD5 acc12ab81ad63980f681208fea1336c6
BLAKE2b-256 7249f934d2f4d8fc7f95872ec112ed9cc3a6541b0a11e70d871e4c610acb3eb5

See more details on using hashes here.

Supported by

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