Cidrize

Latest version: v2.1.0

Safety actively analyzes 629232 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.5.2

==================

- Reworked the way bracket parsing works; removed PyParsing as a dependency
(too slow)
- Broke hyphenated (4th octect only) parsing into its own function

0.5.1

==================

- Fixed a bug in cidrize() when hostnames were passed in. Now explicitly
checking for hostnames and raising an exception.
- Added a test for this.

0.5

================

- Added a feature to parse a comma-separted input string. New parse_commas()
function to do this.
- Modified most parsing methods to accept strict vs. loose parsing except where
it doesn't make sense (e.g. CIDR will always be strict).
- Added optimize_network_range() to do exactly that based on a specified usage
ratio.

0.4.1

==================

- Re-arranged parsing order inside of cidrize(); will now parse EVERYTHING FIRST.
- Added '0.0.0.0-255.255.255.255' to EVERYTHING

0.4

================

- Added normalize_address() to cleanup non-standard IP strings (e.g. unicode).
- Added normalize_address to __all__.
- Added netaddr_to_ipy() to turn a list of netaddr objects into IPy objects.
- cidrize() can now translate keywords such as "any" or "internet" into 0.0.0.0/0.
- cidrize() now defaults to loose parsing & will return a spanning CIDR; you may
negate this behavior by passing strict=True.

0.3.1

==================

- Added unittests, however weak they may be.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.