Skip to content

informatter/lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lookup πŸ”

Custom Hash table implementation in Python 🐍 just for fun, but also to understand a little deeper the different types of implementations that can be done for resizing and collision handling πŸ€– Who knows, perhaps I will end up implementing a basic cache system which can be deployed in a cloud provider! lets see 🀷

In the future I would also like to implement it in Golang as an excuse to start learning the language πŸš€

All the coding sessions will be recorded live πŸŽ₯ and uploaded to nicodes

Initial Resources πŸ“–

Install dependencies

The only dependency used is pytest

pip install -r requirements.txt

Tests πŸ§ͺ

Activate virtual environment

Windows πŸͺŸ

env/scripts/activate.ps1

macOS 🍎 / Linux 🐧

source env/bin/activate

Run tests

To run all unit tests:

  • pytest to include print statements : pytest -s

To run a specific test:

  • pytest tests/test_lookup.py::test_resize_up

Stress test:

  • python main.py

TODO

  • Turn in to cache?
  • API?
  • CLI client?
  • How does it handle concurrency?
  • Make a Go version

About

A custom hashtable implementation in python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages