netsplit 0.3.0__tar.gz → 0.3.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: netsplit
3
- Version: 0.3.0
3
+ Version: 0.3.4
4
4
  Summary: Netsplit can help slice and dice your IP space
5
5
  Author: Nikos Chasiotis
6
6
  Author-email: hasiotis@gmail.com
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
- Requires-Dist: click (>=8.1.3,<9.0.0)
12
+ Requires-Dist: click (>=8.0,<9.0)
13
13
  Requires-Dist: ipaddress (>=1.0.23,<2.0.0)
14
14
  Requires-Dist: rich (>=13.7.0,<14.0.0)
15
15
  Requires-Dist: tomli (>=2.0.1,<3.0.0)
@@ -58,8 +58,7 @@ Make sure to check examples for complex network plans:
58
58
 
59
59
  ![Multicloud Plan](/examples/img/netsplit-multicloud.png)
60
60
 
61
- ## Links
61
+ # Similar projects:
62
62
 
63
- * [Releases](https://pypi.org/project/netsplit/)
64
- * [Code](https://github.com/hasiotis/netsplit)
63
+ * [Visual Subnet Calculator](https://github.com/ckabalan/visualsubnetcalc)
65
64
 
@@ -41,7 +41,6 @@ Make sure to check examples for complex network plans:
41
41
 
42
42
  ![Multicloud Plan](/examples/img/netsplit-multicloud.png)
43
43
 
44
- ## Links
44
+ # Similar projects:
45
45
 
46
- * [Releases](https://pypi.org/project/netsplit/)
47
- * [Code](https://github.com/hasiotis/netsplit)
46
+ * [Visual Subnet Calculator](https://github.com/ckabalan/visualsubnetcalc)
@@ -81,7 +81,7 @@ def pprint_plan(options, prefixes, max_level, keyword, reserved):
81
81
  t.add_column(" #", justify="right")
82
82
  t.add_column(options["description"])
83
83
  t.add_column("Subnet")
84
- t.add_column("idx+ext/slots", justify="right")
84
+ t.add_column("idx/slots", justify="right")
85
85
  t.add_column("IPs", justify="right")
86
86
 
87
87
  for p in prefixes:
@@ -98,9 +98,9 @@ def pprint_plan(options, prefixes, max_level, keyword, reserved):
98
98
  index_value = ""
99
99
  if p['slots'] != 1:
100
100
  if p['extend'] == 0:
101
- index_value = f"{p['index']:3} / {p['slots']:3}"
101
+ index_value = f"{p['index']:3} / {p['slots']:3}"
102
102
  else:
103
- index_value = f"{p['index']:3} + {p['extend']} / {p['slots']:3}"
103
+ index_value = f"{p['index']:3} → {p['index']+2**p['extend']-1:2} / {p['slots']:3}"
104
104
 
105
105
  t.add_row(
106
106
  f"{STYLE}{RESERVED}{p['level']}",
@@ -1,16 +1,16 @@
1
1
  [tool.poetry]
2
2
  name = "netsplit"
3
- version = "0.3.0"
3
+ version = "0.3.4"
4
4
  description = "Netsplit can help slice and dice your IP space"
5
5
  authors = ["Nikos Chasiotis <hasiotis@gmail.com>"]
6
6
  readme = "README.md"
7
7
 
8
8
  [tool.poetry.dependencies]
9
9
  python = "^3.10"
10
- click = "^8.1.3"
11
10
  tomli = "^2.0.1"
12
11
  ipaddress = "^1.0.23"
13
12
  rich = "^13.7.0"
13
+ click = "^8.0"
14
14
 
15
15
  [tool.poetry.scripts]
16
16
  netsplit = 'netsplit.cli:cli'
@@ -19,10 +19,19 @@ netsplit = 'netsplit.cli:cli'
19
19
  pre-commit = "^3.6.0"
20
20
  pytest = "^7.4.3"
21
21
  jsonpickle = "^3.0.2"
22
+ commitizen = "^3.13.0"
22
23
 
23
24
  [tool.pytest.ini_options]
24
25
  addopts = "-ra -q"
25
26
 
27
+ [tool.commitizen]
28
+ name = "cz_conventional_commits"
29
+ tag_format = "v$version"
30
+ version_scheme = "semver"
31
+ version_provider = "poetry"
32
+ update_changelog_on_bump = true
33
+ major_version_zero = true
34
+
26
35
  [build-system]
27
36
  requires = ["poetry-core"]
28
37
  build-backend = "poetry.core.masonry.api"
File without changes
File without changes