random-port 0.0.2__tar.gz → 0.0.3__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.

Potentially problematic release.


This version of random-port might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: random_port
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Generate a free TCP or UDP random port
5
5
  Author-email: Fabrício Barros Cabral <fabriciofx@gmail.com>
6
6
  License-Expression: MIT
@@ -34,16 +34,20 @@ in your project folder.
34
34
 
35
35
  ## Usage
36
36
 
37
- - To a TCP random port:
37
+ - To use a TCP random port:
38
38
 
39
39
  ```python
40
- port = RandomTcpPort().value()
40
+ from random_port.core import TcpRandomPort
41
+
42
+ port = TcpRandomPort().value()
41
43
  ```
42
44
 
43
- - To a UDP random port:
45
+ - To use a UDP random port:
44
46
 
45
47
  ```python
46
- port = RandomUdpPort().value()
48
+ from random_port.core import UdpRandomPort
49
+
50
+ port = UdpRandomPort().value()
47
51
  ```
48
52
 
49
53
  ## License
@@ -18,16 +18,20 @@ in your project folder.
18
18
 
19
19
  ## Usage
20
20
 
21
- - To a TCP random port:
21
+ - To use a TCP random port:
22
22
 
23
23
  ```python
24
- port = RandomTcpPort().value()
24
+ from random_port.core import TcpRandomPort
25
+
26
+ port = TcpRandomPort().value()
25
27
  ```
26
28
 
27
- - To a UDP random port:
29
+ - To use a UDP random port:
28
30
 
29
31
  ```python
30
- port = RandomUdpPort().value()
32
+ from random_port.core import UdpRandomPort
33
+
34
+ port = UdpRandomPort().value()
31
35
  ```
32
36
 
33
37
  ## License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "random_port"
7
- version = "0.0.2"
7
+ version = "0.0.3"
8
8
  description = "Generate a free TCP or UDP random port"
9
9
  authors = [{ name = "Fabrício Barros Cabral", email = "fabriciofx@gmail.com" }]
10
10
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: random_port
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Generate a free TCP or UDP random port
5
5
  Author-email: Fabrício Barros Cabral <fabriciofx@gmail.com>
6
6
  License-Expression: MIT
@@ -34,16 +34,20 @@ in your project folder.
34
34
 
35
35
  ## Usage
36
36
 
37
- - To a TCP random port:
37
+ - To use a TCP random port:
38
38
 
39
39
  ```python
40
- port = RandomTcpPort().value()
40
+ from random_port.core import TcpRandomPort
41
+
42
+ port = TcpRandomPort().value()
41
43
  ```
42
44
 
43
- - To a UDP random port:
45
+ - To use a UDP random port:
44
46
 
45
47
  ```python
46
- port = RandomUdpPort().value()
48
+ from random_port.core import UdpRandomPort
49
+
50
+ port = UdpRandomPort().value()
47
51
  ```
48
52
 
49
53
  ## License
File without changes
File without changes