nbforager 0.8.7__tar.gz → 0.8.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nbforager-0.8.7 → nbforager-0.8.8}/PKG-INFO +2 -2
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/ipv4.py +3 -9
- {nbforager-0.8.7 → nbforager-0.8.8}/pyproject.toml +2 -2
- {nbforager-0.8.7 → nbforager-0.8.8}/LICENSE.txt +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/README.rst +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/__init__.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/__init__.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/base_ac.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/base_c.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/circuits.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/connector.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/core.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/dcim.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/extended_get.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/extras.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/ip_addresses.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/ipam.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/plugins_ca.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/status.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/tenancy.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/users.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/virtualization.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/api/wireless.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/constants.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/exceptions.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/__init__.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/base_fa.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/circuits.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/core.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/dcim.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/extras.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/forager.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/ipam.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/joiner.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/tenancy.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/users.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/virtualization.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/foragers/wireless.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/helpers.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/log.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/messages.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/nb_api.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/nb_cache.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/nb_forager.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/nb_tree.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/parser/__init__.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/parser/nb_custom.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/parser/nb_parser.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/parser/nb_value.py +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/py.typed +0 -0
- {nbforager-0.8.7 → nbforager-0.8.8}/nbforager/types_.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: nbforager
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.8
|
4
4
|
Summary: Python package designed to assist in working with the Netbox REST API. The filter parameters are identical to those in the Web UI filter form. It replaces brief data with full information, and Netbox objects are represented as a recursive multidimensional dictionary.
|
5
5
|
License: Apache-2.0
|
6
6
|
Keywords: netbox
|
@@ -22,7 +22,7 @@ Requires-Dist: requests (>=2,<3)
|
|
22
22
|
Requires-Dist: tabulate (>=0.9,<0.10)
|
23
23
|
Requires-Dist: vhelpers (>=0.3)
|
24
24
|
Project-URL: Bug Tracker, https://github.com/vladimirs-git/nbforager/issues
|
25
|
-
Project-URL: Download URL, https://github.com/vladimirs-git/nbforager/archive/refs/tags/0.8.
|
25
|
+
Project-URL: Download URL, https://github.com/vladimirs-git/nbforager/archive/refs/tags/0.8.8.tar.gz
|
26
26
|
Project-URL: homepage, https://github.com/vladimirs-git/nbforager
|
27
27
|
Project-URL: repository, https://github.com/vladimirs-git/nbforager
|
28
28
|
Description-Content-Type: text/x-rst
|
@@ -23,14 +23,14 @@ class IPv4:
|
|
23
23
|
|
24
24
|
def __repr__(self):
|
25
25
|
"""Representation of the object."""
|
26
|
-
return f"IPv4('{self.
|
26
|
+
return f"IPv4('{self.cidr}')"
|
27
27
|
|
28
28
|
def __str__(self):
|
29
29
|
"""String representation
|
30
30
|
|
31
31
|
:return: IPv4 address with prefixlen, A.B.C.D/LEN.
|
32
32
|
"""
|
33
|
-
return self.
|
33
|
+
return self.cidr
|
34
34
|
|
35
35
|
def __hash__(self) -> int:
|
36
36
|
"""Hash value of the object."""
|
@@ -65,7 +65,7 @@ class IPv4:
|
|
65
65
|
return str(self.interface.ip)
|
66
66
|
|
67
67
|
@property
|
68
|
-
def
|
68
|
+
def cidr(self) -> str:
|
69
69
|
"""IPv4 address with prefixlen, A.B.C.D/LEN."""
|
70
70
|
return str(self.interface.with_prefixlen)
|
71
71
|
|
@@ -74,12 +74,6 @@ class IPv4:
|
|
74
74
|
"""IPv4 address is private."""
|
75
75
|
return bool(self.interface.ip.is_private)
|
76
76
|
|
77
|
-
@property
|
78
|
-
def prefixlen(self) -> int:
|
79
|
-
"""IPv4 network with prefixlen, A.B.C.D/LEN."""
|
80
|
-
return self.interface.network.prefixlen
|
81
|
-
|
82
|
-
|
83
77
|
@property
|
84
78
|
def net(self) -> str:
|
85
79
|
"""IPv4 network with prefixlen, A.B.C.D/LEN."""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "nbforager"
|
3
|
-
version = "0.8.
|
3
|
+
version = "0.8.8"
|
4
4
|
description = "Python package designed to assist in working with the Netbox REST API. The filter parameters are identical to those in the Web UI filter form. It replaces brief data with full information, and Netbox objects are represented as a recursive multidimensional dictionary."
|
5
5
|
authors = ["Vladimirs Prusakovs <vladimir.prusakovs@gmail.com>"]
|
6
6
|
readme = "README.rst"
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
19
19
|
homepage = "https://github.com/vladimirs-git/nbforager"
|
20
20
|
repository = "https://github.com/vladimirs-git/nbforager"
|
21
21
|
"Bug Tracker" = "https://github.com/vladimirs-git/nbforager/issues"
|
22
|
-
"Download URL" = "https://github.com/vladimirs-git/nbforager/archive/refs/tags/0.8.
|
22
|
+
"Download URL" = "https://github.com/vladimirs-git/nbforager/archive/refs/tags/0.8.8.tar.gz"
|
23
23
|
|
24
24
|
[tool.poetry.dependencies]
|
25
25
|
python = "^3.11"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|