inpsPyPI 1.0.5__tar.gz → 1.0.7__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.
- {inpspypi-1.0.5 → inpspypi-1.0.7}/PKG-INFO +2 -2
- inpspypi-1.0.7/__init__.py +28 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/check.py +13 -13
- {inpspypi-1.0.5 → inpspypi-1.0.7}/pyproject.toml +1 -1
- inpspypi-1.0.5/__init__.py +0 -17
- {inpspypi-1.0.5 → inpspypi-1.0.7}/.github/workflows/build_inpsPyPI.yml +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/.gitignore +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/LICENSE +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/README.md +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/builder_for_flask_jsonify.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/cipher.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/convert.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/dictionarily.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/easy_sql.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/excellent_reader.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/memory.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/simple_file_handler.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/sort.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/stackily.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/test.py +0 -0
- {inpspypi-1.0.5 → inpspypi-1.0.7}/test_all.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: inpsPyPI
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.7
|
|
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>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from .builder_for_flask_jsonify import bake
|
|
2
|
+
from .dictionarily import Dictionarily
|
|
3
|
+
from .easy_sql import EasySQL
|
|
4
|
+
from .memory import Memory
|
|
5
|
+
from .stackily import Stackily
|
|
6
|
+
from .test import test_method
|
|
7
|
+
from . import excellent_reader
|
|
8
|
+
from . import sort
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"bake",
|
|
12
|
+
"Dictionarily",
|
|
13
|
+
"EasySQL",
|
|
14
|
+
"Memory",
|
|
15
|
+
"Stackily",
|
|
16
|
+
"test_method",
|
|
17
|
+
"excellent_reader",
|
|
18
|
+
"sort",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
# To run unit tests, use the following command:
|
|
22
|
+
# python -m unittest test_all.py
|
|
23
|
+
|
|
24
|
+
# To run unit tests without print statements, use the following command:
|
|
25
|
+
# python -m unittest -b test_all.py
|
|
26
|
+
|
|
27
|
+
# changes:
|
|
28
|
+
# - change cls to self in Check.Email
|
|
@@ -12,27 +12,27 @@ class Check:
|
|
|
12
12
|
_should_use_full_domain = False
|
|
13
13
|
|
|
14
14
|
@classmethod
|
|
15
|
-
def add_valid_domain_name(
|
|
16
|
-
|
|
15
|
+
def add_valid_domain_name(self, string: str):
|
|
16
|
+
self.valid_domain_names.append(string)
|
|
17
17
|
|
|
18
18
|
@classmethod
|
|
19
|
-
def add_valid_domain_extension(
|
|
20
|
-
|
|
19
|
+
def add_valid_domain_extension(self, string: str):
|
|
20
|
+
self.valid_domain_extensions.append(string)
|
|
21
21
|
|
|
22
22
|
@classmethod
|
|
23
|
-
def add_valid_domain(
|
|
24
|
-
|
|
23
|
+
def add_valid_domain(self, string: str):
|
|
24
|
+
self.valid_domains.append(string)
|
|
25
25
|
|
|
26
26
|
@classmethod
|
|
27
|
-
def should_use_full_domain(
|
|
28
|
-
|
|
27
|
+
def should_use_full_domain(self, boolean: bool = True):
|
|
28
|
+
self._should_use_full_domain = boolean
|
|
29
29
|
|
|
30
30
|
@classmethod
|
|
31
|
-
def is_valid(
|
|
32
|
-
if
|
|
31
|
+
def is_valid(self, string: str) -> bool:
|
|
32
|
+
if self._should_use_full_domain:
|
|
33
33
|
try:
|
|
34
34
|
domain = string.split('@')
|
|
35
|
-
return domain[1] in
|
|
35
|
+
return domain[1] in self.valid_domains
|
|
36
36
|
except Exception:
|
|
37
37
|
return False
|
|
38
38
|
else:
|
|
@@ -41,8 +41,8 @@ class Check:
|
|
|
41
41
|
domain_parts = domain[1].split('.')
|
|
42
42
|
domain_name = domain_parts[0]
|
|
43
43
|
domain_extension = domain_parts[1]
|
|
44
|
-
return (domain_name in
|
|
45
|
-
domain_extension in
|
|
44
|
+
return (domain_name in self.valid_domain_names and
|
|
45
|
+
domain_extension in self.valid_domain_extensions)
|
|
46
46
|
except Exception:
|
|
47
47
|
return False
|
|
48
48
|
|
inpspypi-1.0.5/__init__.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from .builder_for_flask_jsonify import bake
|
|
2
|
-
from .dictionarily import Dictionarily
|
|
3
|
-
from .easy_sql import EasySQL
|
|
4
|
-
from .excellent_reader import get_n_column_from_sheet_index, get_first_column_from_sheet_index, get_n_column_from_all_sheets, get_first_column_from_all_sheets, set_n_column_from_sheet_index, set_first_column_from_sheet_index, set_n_column_from_all_sheets, set_first_column_from_all_sheets
|
|
5
|
-
from .memory import Memory
|
|
6
|
-
from .test import test_method
|
|
7
|
-
from .sort import bubble_sort, cocktail_shaker_sort, odd_even_sort, selection_sort, insertion_sort, shellsort, quicksort, merge_sort, heapsort, introsort, timsort, counting_sort, bucket_sort_uniform, pigeonhole_sort, patience_sorting, bogosort, bead_sort
|
|
8
|
-
from .stackily import Stackily
|
|
9
|
-
|
|
10
|
-
# To run unit tests, use the following command:
|
|
11
|
-
# python -m unittest test_all.py
|
|
12
|
-
|
|
13
|
-
# To run unit tests without print statements, use the following command:
|
|
14
|
-
# python -m unittest -b test_all.py
|
|
15
|
-
|
|
16
|
-
# changes:
|
|
17
|
-
# - add to_real_name method to convert.py
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|