IPSet written in C
Project description
ipset_c
IPSet is written in C. Runs on Windows and Linux. Tens of times faster than pure Python netaddr.IPSet. Only for IPv4. Not picklable.
pip install ipset_c
from ipset_c import IPSet
a = IPSet(['12.12.12.0/25', '12.12.12.128/25'])
a.getCidrs() # ['12.12.12.0/24']
a.addCidr('8.8.8.8/30')
a.getCidrs() # ['8.8.8.8/30', '12.12.12.0/24']
b = IPSet(['12.12.12.0/25'])
a.isSubset(b) # False
a.isSuperset(b) # True
a == b # False
a <= b # False
a >= b # True
a.isContainsCidr("12.12.0.0/16") # False
a.isIntersectsCidr("12.12.0.0/16") # True
b.addCidr('4.4.4.4/32')
a.getCidrs() # ['8.8.8.8/30', '12.12.12.0/24']
b.getCidrs() # ['4.4.4.4/32', '12.12.12.0/25']
c = a & b
c.getCidrs() # ['12.12.12.0/25']
c = a | b
c.getCidrs() # ['4.4.4.4/32', '8.8.8.8/30', '12.12.12.0/24']
c = a - b
c.getCidrs() # ['8.8.8.8/30', '12.12.12.128/25']
a.removeCidr('8.8.8.8/30')
a.getCidrs() # ['12.12.12.0/24']
len(a) # 256
c = a.copy()
bool(IPSet([])) # False
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 Distributions
File details
Details for the file ipset_c-0.1.0.dev1.tar.gz
.
File metadata
- Download URL: ipset_c-0.1.0.dev1.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7fd02f131628a61ebb5481cecbf8190cb1d7340d6b3b4aa73575d04fe61b706 |
|
MD5 | 56f7b9b2013f89fc6067fb46700cfb6b |
|
BLAKE2b-256 | 2218c85765421ff12fc4f7fe8b3a2d17f017c51bd756824d310d84accddd0fbc |
File details
Details for the file ipset_c-0.1.0.dev1-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa075094f73ec32f31a7c1f676bc22e72c5a586b29b8f64446365fb955e62571 |
|
MD5 | 0627f5f6bf8ea6450e2e7c522c7c341e |
|
BLAKE2b-256 | 9451a12f04fcd89f306cd1afc958bfce5799316581fa8224fd0fb6e4937a5f72 |
File details
Details for the file ipset_c-0.1.0.dev1-cp312-cp312-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp312-cp312-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 42.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96feb6e912bbac14df7897b1dd4ac551d9a59f243866182099c0e79c6bbb5fc |
|
MD5 | cb707eb1959eb4775ffc778f63864c8a |
|
BLAKE2b-256 | 921225eb0fd2f3c205576f00c869a18266822e8fcc28149dd6aea441f987e9ec |
File details
Details for the file ipset_c-0.1.0.dev1-cp312-cp312-manylinux_2_31_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp312-cp312-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 55.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 018b20d3a6dd4f64cd87884983b1af5eba12284cf8d28c0aaa2899d14bb9a182 |
|
MD5 | 4b28f758be42d8ff35c2643b5cc9e589 |
|
BLAKE2b-256 | 1c3407d50ab2fc502d42dbc1676f2be50f6a8a2cf4aa14909ba16b5e51666e3c |
File details
Details for the file ipset_c-0.1.0.dev1-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 17.7 kB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d76e95a1424988943005d5902b0b42b34691715e8a76f42998fbbdf94c8713f7 |
|
MD5 | fa6d80f0f72eb187a7bf219ef2c5d224 |
|
BLAKE2b-256 | 4fab6e78f39fcd0e9df72b9cc821ffeb04577eb18a51174f46722ec40ce75060 |
File details
Details for the file ipset_c-0.1.0.dev1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96789c0a88475400fe4397e3debb6932527b9d940b9a147e541c6893aa29a35a |
|
MD5 | 57cda6601646c6175fc22dd752b8763c |
|
BLAKE2b-256 | 7cd58c833ff74c963ac2fef55123641e6e409f79c600b4742438a98ecb8365ef |
File details
Details for the file ipset_c-0.1.0.dev1-cp311-cp311-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp311-cp311-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 41.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089564bc0680946d906e07ee1414a50820488fea93277078982b93be7d8af99c |
|
MD5 | bf7c0ad00069372e68992d799faa2373 |
|
BLAKE2b-256 | a5706182c69c04b5225d405e8e7f341e13f0e17a1f4cdd755620e31a915be10b |
File details
Details for the file ipset_c-0.1.0.dev1-cp311-cp311-manylinux_2_31_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp311-cp311-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 55.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 551ff9f5111e78195bb01f8563bcdc52e785ed5c56c367720f7069c71dbb7237 |
|
MD5 | 4401ad6cfc63a1b976a15de2daefcdab |
|
BLAKE2b-256 | e5128f67a4b800895fe7f3c3280a350574149d0b1fd9bb1deba39c5ef299c116 |
File details
Details for the file ipset_c-0.1.0.dev1-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 17.4 kB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89af4c7ed1ace876e7e15f98073ee1c43e0dde78fb378662a2ce01cc5d18773d |
|
MD5 | 636422c535d41c4938ea766f613e5cdf |
|
BLAKE2b-256 | c0efe44549438655c0ed0e8cd41af8c772c75a6feb595445eda1a911dd2d3df1 |
File details
Details for the file ipset_c-0.1.0.dev1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27fb677ab391574b92ea48db82418985a27c729bdd633ea00fb8bcd4781e5526 |
|
MD5 | de1914627e3e4804cd3b6c28742af9e6 |
|
BLAKE2b-256 | 5900553095eef3a5f063245418c414517c3f3cb03603b93c56a99704c970f54b |
File details
Details for the file ipset_c-0.1.0.dev1-cp310-cp310-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp310-cp310-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 40.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e197166a64ceded9f575fb13adf32eebcc289b3097d5635d7c951f188a1bb439 |
|
MD5 | 09a26653c42b32a87deb8fe8356cb286 |
|
BLAKE2b-256 | 394ff8a9718f9d0b37529eb681c886c46dc5c2ead734d14764d8cada04093694 |
File details
Details for the file ipset_c-0.1.0.dev1-cp310-cp310-manylinux_2_31_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp310-cp310-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 53.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91e8746e731443edfcde9bb4bdb28cee4a53645f31d99bcd01c5a08a1fc0242 |
|
MD5 | 619c38cd0bf7b9c691bd4d46f28f3004 |
|
BLAKE2b-256 | c69cb77c2c19c8a9e96362bea9d1fe05699e435b76a3eb5b4e1e23550ee5a599 |
File details
Details for the file ipset_c-0.1.0.dev1-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 17.4 kB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dacbab39c851da390a9f8c4ff36da33d30bb37db5e13d125c01897acfc2b537 |
|
MD5 | 24e5cb91162522c6d341f6c19d7a8c2a |
|
BLAKE2b-256 | b764b632dfe80c3d1584e55396fc412ea2a7890409e08690ee9afcfe0eecddc6 |
File details
Details for the file ipset_c-0.1.0.dev1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84869678027af17f40e0e82ab22bf7e56c9d9a9d95b41454debf3f63a48844ac |
|
MD5 | 9576d0ad985d83028dc9baa03c167bfe |
|
BLAKE2b-256 | 5b27b2da9f476451b86c99ba01b9a4c0733104bbf5f3ecc7e5a2bb239f4d9662 |
File details
Details for the file ipset_c-0.1.0.dev1-cp39-cp39-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp39-cp39-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 40.3 kB
- Tags: CPython 3.9, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f037b87fb1afca799f9c4a80694fbcd7e42d20ff298b8bf46b09441e93cb7cd |
|
MD5 | c784c6f6db8377b14e19c8b36079f32d |
|
BLAKE2b-256 | 92e8e8f90db737348eea6c6503472d866c9c65f00d0a88f858b300383de1b43a |
File details
Details for the file ipset_c-0.1.0.dev1-cp39-cp39-manylinux_2_31_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp39-cp39-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 52.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9423b1ff81df9274d982608dbdac003262120436546e5b5913a9b303386c1c4 |
|
MD5 | bd93dfa9fbc89109bcf461db18a4e29f |
|
BLAKE2b-256 | 402cac031d4a4e9b901b69c7aba4d32db0ca5f362a0cf578733494fd785aeab8 |
File details
Details for the file ipset_c-0.1.0.dev1-cp39-cp39-macosx_14_0_arm64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp39-cp39-macosx_14_0_arm64.whl
- Upload date:
- Size: 17.4 kB
- Tags: CPython 3.9, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4366ca62c38f7211883ca09ab554451957c6c9f10537ddc77fc4a8457193bd5f |
|
MD5 | c9878022419fcbcecf12126d9404deaf |
|
BLAKE2b-256 | b0983980b082dd30ab64d00c71b34454a4ca948ece41ce8e095e02e3574345e4 |
File details
Details for the file ipset_c-0.1.0.dev1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84abe65097bb7a6ecf51ced1e3db43a9a6590dbb7f7566e82d29f4b4d255988b |
|
MD5 | 546879a4a0c1751c802b1f4208262ff1 |
|
BLAKE2b-256 | ac794edf85b3cb40b6dce50cdc8831b6a229ed3006f7c89e07319dd9a03fc304 |
File details
Details for the file ipset_c-0.1.0.dev1-cp38-cp38-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp38-cp38-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 41.1 kB
- Tags: CPython 3.8, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5cd267b3483b854652b5ed2c76b0b444b9590f7fd7902e53df8a2f807e0e65 |
|
MD5 | 1a1b30f198f8f103e3654dd7e9d8b7e4 |
|
BLAKE2b-256 | 6b84dd5675b264c1b3a7e9973d13f31c91a742708a78c77dc621d5397ebebebf |
File details
Details for the file ipset_c-0.1.0.dev1-cp38-cp38-manylinux_2_31_x86_64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp38-cp38-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 53.2 kB
- Tags: CPython 3.8, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad3a3ce901397ec9836b1b90f642a03820e9355374d6349ea22a3d00189ccd7 |
|
MD5 | a16722448d544c22fa4395abd1f04b00 |
|
BLAKE2b-256 | 902cbcb99fc30ca032bab821163abd72f361ac9beb6e44a4cf883f88a0affce4 |
File details
Details for the file ipset_c-0.1.0.dev1-cp38-cp38-macosx_14_0_arm64.whl
.
File metadata
- Download URL: ipset_c-0.1.0.dev1-cp38-cp38-macosx_14_0_arm64.whl
- Upload date:
- Size: 17.4 kB
- Tags: CPython 3.8, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ac545d7891d92ad8d9c025a1b74cfb32f56574f80a794bbef0ce9116c09b505 |
|
MD5 | d58e732b93ade2520f6af97cbee9acbf |
|
BLAKE2b-256 | e7c8100ba8b21f83ce01e5e990f09296cf7ee193314d5073b0fa5fe306b8cc86 |