Skip to main content

HashTable implementation in python

Project description

HashTable

HashTable is a python library (Data Structure) it has almost all functionality of dictionary in python.

Installation

Use the package manager pip to install HashTable.

pip install hashtable-python

Usage

from hashtable import HashTable

my_hashtable = HashTable(5)  # Create instance of hashtable with fixed sized 5
my_hashtable['mango'] = 100  # Creating key='mango' and value=100
my_hashtable.items()         # Returns list of tuples of key and value [(kay, value),...)
my_hashtable.keys()          # Returns list of keys
my_hashtable.values()        # Returns list of values
my_hashtable['mango']        # Returns value of specified key
my_hashtable.delete('mango') # Deletes item in the specified key

License

MIT License

Copyright (c) 2021 Rosun GV

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

hashtable-python-1.0.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

hashtable_python-1.0.3-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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