netsplit 0.2.0__tar.gz → 0.3.0__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.2.0
3
+ Version: 0.3.0
4
4
  Summary: Netsplit can help slice and dice your IP space
5
5
  Author: Nikos Chasiotis
6
6
  Author-email: hasiotis@gmail.com
@@ -15,9 +15,23 @@ Requires-Dist: rich (>=13.7.0,<14.0.0)
15
15
  Requires-Dist: tomli (>=2.0.1,<3.0.0)
16
16
  Description-Content-Type: text/markdown
17
17
 
18
- ## Netsplit
18
+ # Netsplit: Slice and dice your IP space
19
19
 
20
- Here is a very simply network plan:
20
+ [![PyPi version](https://badge.fury.io/py/netsplit.svg)](https://pypi.org/project/netsplit/)
21
+ [![Build status](https://github.com/hasiotis/netsplit/workflows/Pull%20Request/badge.svg)](https://github.com/hasiotis/netsplit/actions?query=workflow%3A%22Pull+Request%22)
22
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/hasiotis/netsplit/blob/master/LICENSE)
23
+
24
+
25
+ ## Installation
26
+
27
+ Install and update using:
28
+ ```
29
+ pip3 install --user --upgrade netsplit
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ Here is a very simple network plan:
21
35
  ```
22
36
  [netsplit]
23
37
  description = "Global / Subnet"
@@ -40,4 +54,12 @@ We can render it with:
40
54
  1 │ Global / RESERVED │ ..................192.168.0.192/26 │ 4 / 4 │ 64
41
55
  ╵ ╵ ╵ ╵
42
56
  ```
57
+ Make sure to check examples for complex network plans:
58
+
59
+ ![Multicloud Plan](/examples/img/netsplit-multicloud.png)
60
+
61
+ ## Links
62
+
63
+ * [Releases](https://pypi.org/project/netsplit/)
64
+ * [Code](https://github.com/hasiotis/netsplit)
43
65
 
@@ -1,6 +1,20 @@
1
- ## Netsplit
1
+ # Netsplit: Slice and dice your IP space
2
2
 
3
- Here is a very simply network plan:
3
+ [![PyPi version](https://badge.fury.io/py/netsplit.svg)](https://pypi.org/project/netsplit/)
4
+ [![Build status](https://github.com/hasiotis/netsplit/workflows/Pull%20Request/badge.svg)](https://github.com/hasiotis/netsplit/actions?query=workflow%3A%22Pull+Request%22)
5
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/hasiotis/netsplit/blob/master/LICENSE)
6
+
7
+
8
+ ## Installation
9
+
10
+ Install and update using:
11
+ ```
12
+ pip3 install --user --upgrade netsplit
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ Here is a very simple network plan:
4
18
  ```
5
19
  [netsplit]
6
20
  description = "Global / Subnet"
@@ -23,3 +37,11 @@ We can render it with:
23
37
  1 │ Global / RESERVED │ ..................192.168.0.192/26 │ 4 / 4 │ 64
24
38
  ╵ ╵ ╵ ╵
25
39
  ```
40
+ Make sure to check examples for complex network plans:
41
+
42
+ ![Multicloud Plan](/examples/img/netsplit-multicloud.png)
43
+
44
+ ## Links
45
+
46
+ * [Releases](https://pypi.org/project/netsplit/)
47
+ * [Code](https://github.com/hasiotis/netsplit)
@@ -47,7 +47,7 @@ def get_subnets(name, space, net, level=0, index=0, extend=0, slots=1):
47
47
  slot_meta[found_index-1] = m
48
48
  for i in range(1, 2**found_extend):
49
49
  slot_meta[found_index-1+i] = "SKIP"
50
- count += found_index + 2**found_extend
50
+ count += found_index + 2**found_extend - 1
51
51
  else:
52
52
  slot_meta[count] = m
53
53
  for i in range(1, 2**found_extend):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "netsplit"
3
- version = "0.2.0"
3
+ version = "0.3.0"
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"
@@ -18,6 +18,7 @@ netsplit = 'netsplit.cli:cli'
18
18
  [tool.poetry.group.dev.dependencies]
19
19
  pre-commit = "^3.6.0"
20
20
  pytest = "^7.4.3"
21
+ jsonpickle = "^3.0.2"
21
22
 
22
23
  [tool.pytest.ini_options]
23
24
  addopts = "-ra -q"
File without changes
File without changes