getpubip 0.1.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.
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: getpubip
3
+ Version: 0.1.0
4
+ Summary: Get the public IP address
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+
8
+ # getpubip
9
+
10
+ Get your public IP address.
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ pip install getpubip
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```python
21
+ from getpubip import get_ip
22
+
23
+ print(get_ip())
24
+ ```
25
+
26
+ Or from the terminal:
27
+
28
+ ```bash
29
+ python -m getpubip
30
+ ```
@@ -0,0 +1,23 @@
1
+ # getpubip
2
+
3
+ Get your public IP address.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install getpubip
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from getpubip import get_ip
15
+
16
+ print(get_ip())
17
+ ```
18
+
19
+ Or from the terminal:
20
+
21
+ ```bash
22
+ python -m getpubip
23
+ ```
@@ -0,0 +1 @@
1
+ from .core import get_ip
@@ -0,0 +1,3 @@
1
+ from .core import get_ip
2
+
3
+ print(get_ip())
@@ -0,0 +1,4 @@
1
+ from urllib.request import urlopen
2
+
3
+ def get_ip(timeout=5):
4
+ return urlopen("https://api.ipify.org", timeout=timeout).read().decode()
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: getpubip
3
+ Version: 0.1.0
4
+ Summary: Get the public IP address
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+
8
+ # getpubip
9
+
10
+ Get your public IP address.
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ pip install getpubip
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```python
21
+ from getpubip import get_ip
22
+
23
+ print(get_ip())
24
+ ```
25
+
26
+ Or from the terminal:
27
+
28
+ ```bash
29
+ python -m getpubip
30
+ ```
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ getpubip/__init__.py
4
+ getpubip/__main__.py
5
+ getpubip/core.py
6
+ getpubip.egg-info/PKG-INFO
7
+ getpubip.egg-info/SOURCES.txt
8
+ getpubip.egg-info/dependency_links.txt
9
+ getpubip.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ getpubip
@@ -0,0 +1,13 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "getpubip"
7
+ version = "0.1.0"
8
+ description = "Get the public IP address"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+
12
+ [tool.setuptools]
13
+ packages = ["getpubip"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+