An efficient data structure for handling a large number of IP addresses/subnets in a hierarchy.
pytest -s tests
cd ip_subnet_trie
protoc --python_out=. binary_trie.proto
You can see example code in tests/ directory.
This project has the significant contribution of GitHub Copilot. It is my first project using an AI-assistance tool. Moreover, this is also the first project where I have uploaded a library to Pypi. I hope it will be useful to many people.