inpsPyPI 1.0.3__tar.gz → 1.0.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.4
2
2
  Name: inpsPyPI
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: PyPI package designed to make development in Python easier.
5
5
  Project-URL: Homepage, https://github.com/isaiahnoelpulidosalazar/inpsPyPI
6
6
  Author-email: Isaiah Noel Pulido Salazar <isaiahnoelpulidosalazar@gmail.com>
@@ -14,4 +14,4 @@ from .stackily import Stackily
14
14
  # python -m unittest -b test_all.py
15
15
 
16
16
  # changes:
17
- # - add internet connection check to test.py
17
+ # - move internet connection check to check.py
@@ -2,6 +2,7 @@ import re
2
2
  import base64
3
3
  import os
4
4
  import pkgutil
5
+ import socket
5
6
 
6
7
  class Check:
7
8
  class Email:
@@ -69,3 +70,12 @@ class Check:
69
70
  @staticmethod
70
71
  def has_spaces(string: str) -> bool:
71
72
  return ' ' in string
73
+
74
+ @staticmethod
75
+ def is_connected():
76
+ try:
77
+ socket.create_connection(("8.8.8.8", 53), timeout=3)
78
+ return True
79
+ except OSError:
80
+ pass
81
+ return False
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "inpsPyPI"
7
- version = "1.0.3"
7
+ version = "1.0.4"
8
8
  description = "PyPI package designed to make development in Python easier."
9
9
  readme = "README.md"
10
10
  authors = [
inpspypi-1.0.4/test.py ADDED
@@ -0,0 +1,2 @@
1
+ def test_method():
2
+ return "Test method"
inpspypi-1.0.3/test.py DELETED
@@ -1,12 +0,0 @@
1
- import socket
2
-
3
- def test_method():
4
- return "Test method"
5
-
6
- def is_connected():
7
- try:
8
- socket.create_connection(("8.8.8.8", 53), timeout=3)
9
- return True
10
- except OSError:
11
- pass
12
- return False
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes