Simple HashTable implementation in Python
Project description
# HashTable
Simple Hash table implementation in pyhton with fixed size.
In (key, value) pair `key` can only be integer
## Installation
### Using `pip`
```
sudo pip install HashTable
```
### From git-repo
```
git clone https://github.com/munendrasn/hash.git
cd hash
sudo python setup.py install
```
## Usage
```
>>>from hash import HashTable
>>>h = HashTable()
>>>h[20] = 'use' # only int as key
>>>h[123] = 43
>>>h # Display hash table
{ 20:use, 123:43 }
>>>h.pop(12)
'use'
>>>h.set(65, 'check')
>>>h
{ 20:use, 123:43, 65:check }
```
## Contact
For any queries, feel free to reach me at *sn.munendra52 [at] gmail [dot] com*
Simple Hash table implementation in pyhton with fixed size.
In (key, value) pair `key` can only be integer
## Installation
### Using `pip`
```
sudo pip install HashTable
```
### From git-repo
```
git clone https://github.com/munendrasn/hash.git
cd hash
sudo python setup.py install
```
## Usage
```
>>>from hash import HashTable
>>>h = HashTable()
>>>h[20] = 'use' # only int as key
>>>h[123] = 43
>>>h # Display hash table
{ 20:use, 123:43 }
>>>h.pop(12)
'use'
>>>h.set(65, 'check')
>>>h
{ 20:use, 123:43, 65:check }
```
## Contact
For any queries, feel free to reach me at *sn.munendra52 [at] gmail [dot] com*
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
HashTable-0.1a0.tar.gz
(2.0 kB
view hashes)