An efficient data structure for handling a large number of IP addresses/subnets in a hierarchy.
Project description
IP-Subnet-Trie
An efficient data structure for handling a large number of IP addresses/subnets in a hierarchy.
Run tests
pytest -s tests
Generate Python protobuf classes from proto file.
cd ip_subnet_trie
protoc --python_out=. binary_trie.proto
Example code
You can see example code in tests/ directory.
Contribution
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file IP-Subnet-Trie-1.0.tar.gz.
File metadata
- Download URL: IP-Subnet-Trie-1.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa7097ea8b89dd04dfe93ff06c80579df1860fd36fae6b683b474188f9ca17a9
|
|
| MD5 |
cca77509f00e0b5584240547d017d56a
|
|
| BLAKE2b-256 |
404de584ef9d2ec840555f3998f12624fc49b3b87afbdcf84416dc3ea9ad57ee
|
File details
Details for the file IP_Subnet_Trie-1.0-py3-none-any.whl.
File metadata
- Download URL: IP_Subnet_Trie-1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf33d00806e2dac378aebc8bc2af01ca9b668ad0c410f54cb5bee828f2db1199
|
|
| MD5 |
95df226f246b33ece14ed0f2ba74e341
|
|
| BLAKE2b-256 |
b3d7c7c6df3591a7e68578ed32daa3355937a8f6a0e96420e9cec1039f3c1afe
|