nbforager 0.8.6__tar.gz → 0.8.7__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.
Files changed (51) hide show
  1. {nbforager-0.8.6 → nbforager-0.8.7}/PKG-INFO +2 -2
  2. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/ipv4.py +11 -0
  3. {nbforager-0.8.6 → nbforager-0.8.7}/pyproject.toml +2 -2
  4. {nbforager-0.8.6 → nbforager-0.8.7}/LICENSE.txt +0 -0
  5. {nbforager-0.8.6 → nbforager-0.8.7}/README.rst +0 -0
  6. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/__init__.py +0 -0
  7. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/__init__.py +0 -0
  8. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/base_ac.py +0 -0
  9. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/base_c.py +0 -0
  10. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/circuits.py +0 -0
  11. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/connector.py +0 -0
  12. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/core.py +0 -0
  13. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/dcim.py +0 -0
  14. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/extended_get.py +0 -0
  15. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/extras.py +0 -0
  16. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/ip_addresses.py +0 -0
  17. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/ipam.py +0 -0
  18. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/plugins_ca.py +0 -0
  19. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/status.py +0 -0
  20. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/tenancy.py +0 -0
  21. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/users.py +0 -0
  22. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/virtualization.py +0 -0
  23. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/api/wireless.py +0 -0
  24. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/constants.py +0 -0
  25. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/exceptions.py +0 -0
  26. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/__init__.py +0 -0
  27. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/base_fa.py +0 -0
  28. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/circuits.py +0 -0
  29. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/core.py +0 -0
  30. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/dcim.py +0 -0
  31. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/extras.py +0 -0
  32. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/forager.py +0 -0
  33. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/ipam.py +0 -0
  34. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/joiner.py +0 -0
  35. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/tenancy.py +0 -0
  36. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/users.py +0 -0
  37. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/virtualization.py +0 -0
  38. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/foragers/wireless.py +0 -0
  39. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/helpers.py +0 -0
  40. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/log.py +0 -0
  41. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/messages.py +0 -0
  42. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/nb_api.py +0 -0
  43. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/nb_cache.py +0 -0
  44. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/nb_forager.py +0 -0
  45. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/nb_tree.py +0 -0
  46. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/parser/__init__.py +0 -0
  47. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/parser/nb_custom.py +0 -0
  48. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/parser/nb_parser.py +0 -0
  49. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/parser/nb_value.py +0 -0
  50. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/py.typed +0 -0
  51. {nbforager-0.8.6 → nbforager-0.8.7}/nbforager/types_.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nbforager
3
- Version: 0.8.6
3
+ Version: 0.8.7
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.6.tar.gz
25
+ Project-URL: Download URL, https://github.com/vladimirs-git/nbforager/archive/refs/tags/0.8.7.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
@@ -69,6 +69,17 @@ class IPv4:
69
69
  """IPv4 address with prefixlen, A.B.C.D/LEN."""
70
70
  return str(self.interface.with_prefixlen)
71
71
 
72
+ @property
73
+ def is_private(self) -> bool:
74
+ """IPv4 address is private."""
75
+ return bool(self.interface.ip.is_private)
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
+
72
83
  @property
73
84
  def net(self) -> str:
74
85
  """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.6"
3
+ version = "0.8.7"
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.6.tar.gz"
22
+ "Download URL" = "https://github.com/vladimirs-git/nbforager/archive/refs/tags/0.8.7.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