PyFunceble-dev 4.2.10__py3-none-any.whl → 4.2.11__py3-none-any.whl

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.
@@ -811,25 +811,36 @@ class CollectionQueryTool:
811
811
  if not self.token:
812
812
  return None
813
813
 
814
- if isinstance(
815
- data,
816
- (AvailabilityCheckerStatus, SyntaxCheckerStatus, ReputationCheckerStatus),
817
- ):
818
- data = data.to_dict()
819
-
820
- if not isinstance(data, dict): # pragma: no cover ## Should never happen
821
- raise TypeError(f"<data> should be {dict}, {type(data)} given.")
822
-
823
814
  PyFunceble.facility.Logger.info("Starting to submit WHOIS: %r", data)
824
815
 
825
816
  url = f"{self.url_base}/v1/status/whois"
826
817
 
827
818
  try:
828
- response = self.session.post(
829
- url,
830
- json=data,
831
- timeout=self.timeout,
832
- )
819
+ if isinstance(data, dict):
820
+ response = self.session.post(
821
+ url,
822
+ json=data,
823
+ timeout=self.timeout,
824
+ )
825
+ elif isinstance(
826
+ data,
827
+ (
828
+ AvailabilityCheckerStatus,
829
+ SyntaxCheckerStatus,
830
+ ReputationCheckerStatus,
831
+ ),
832
+ ):
833
+ response = self.session.post(
834
+ url,
835
+ data=data.to_json(),
836
+ timeout=self.timeout,
837
+ )
838
+ else:
839
+ response = self.session.post(
840
+ url,
841
+ data=data,
842
+ timeout=self.timeout,
843
+ )
833
844
 
834
845
  response_json = response.json()
835
846
 
PyFunceble/storage.py CHANGED
@@ -61,7 +61,7 @@ from dotenv import load_dotenv
61
61
  from PyFunceble.storage_facility import get_config_directory
62
62
 
63
63
  PROJECT_NAME: str = "PyFunceble"
64
- PROJECT_VERSION: str = "4.2.10.dev (Blue Duckling: Ixora)"
64
+ PROJECT_VERSION: str = "4.2.11.dev (Blue Duckling: Ixora)"
65
65
 
66
66
  DISTRIBUTED_CONFIGURATION_FILENAME: str = ".PyFunceble_production.yaml"
67
67
  DISTRIBUTED_DIR_STRUCTURE_FILENAME: str = "dir_structure_production.json"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyFunceble-dev
3
- Version: 4.2.10
3
+ Version: 4.2.11
4
4
  Summary: The tool to check the availability or syntax of domain, IP or URL.
5
5
  Home-page: https://github.com/funilrys/PyFunceble
6
6
  Author: funilrys
@@ -21,74 +21,74 @@ Classifier: Programming Language :: Python :: 3
21
21
  Classifier: License :: OSI Approved
22
22
  Requires-Python: >=3.8, <4
23
23
  License-File: LICENSE
24
- Requires-Dist: dnspython[doh] ~=2.6.0
25
- Requires-Dist: shtab
24
+ Requires-Dist: packaging
25
+ Requires-Dist: requests[socks] <3
26
+ Requires-Dist: python-box[all] ~=6.0.0
27
+ Requires-Dist: python-dotenv
28
+ Requires-Dist: PyYAML
29
+ Requires-Dist: cryptography ~=42.0
26
30
  Requires-Dist: domain2idna ~=1.12.0
31
+ Requires-Dist: alembic
32
+ Requires-Dist: shtab
27
33
  Requires-Dist: inflection
28
- Requires-Dist: PyMySQL
29
- Requires-Dist: SQLAlchemy ~=2.0
30
- Requires-Dist: python-dotenv
34
+ Requires-Dist: dnspython[doh] ~=2.6.0
31
35
  Requires-Dist: colorama
32
- Requires-Dist: alembic
33
- Requires-Dist: requests[socks] <3
36
+ Requires-Dist: SQLAlchemy ~=2.0
34
37
  Requires-Dist: setuptools >=65.5.1
35
- Requires-Dist: packaging
36
- Requires-Dist: PyYAML
37
- Requires-Dist: python-box[all] ~=6.0.0
38
- Requires-Dist: cryptography ~=42.0
38
+ Requires-Dist: PyMySQL
39
39
  Provides-Extra: dev
40
- Requires-Dist: isort ; extra == 'dev'
41
- Requires-Dist: black ; extra == 'dev'
42
40
  Requires-Dist: pylint ; extra == 'dev'
43
41
  Requires-Dist: flake8 ; extra == 'dev'
42
+ Requires-Dist: isort ; extra == 'dev'
43
+ Requires-Dist: black ; extra == 'dev'
44
44
  Provides-Extra: docs
45
45
  Requires-Dist: alabaster <0.8,>=0.7 ; extra == 'docs'
46
- Requires-Dist: Pygments >=2.0 ; extra == 'docs'
47
46
  Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
48
47
  Requires-Dist: sphinx >=3.4.3 ; extra == 'docs'
48
+ Requires-Dist: Pygments >=2.0 ; extra == 'docs'
49
49
  Provides-Extra: full
50
- Requires-Dist: PyMySQL ; extra == 'full'
51
- Requires-Dist: isort ; extra == 'full'
52
- Requires-Dist: Pygments >=2.0 ; extra == 'full'
50
+ Requires-Dist: requests[socks] <3 ; extra == 'full'
51
+ Requires-Dist: sphinx-rtd-theme ; extra == 'full'
52
+ Requires-Dist: black ; extra == 'full'
53
+ Requires-Dist: shtab ; extra == 'full'
54
+ Requires-Dist: inflection ; extra == 'full'
53
55
  Requires-Dist: flake8 ; extra == 'full'
54
- Requires-Dist: alabaster <0.8,>=0.7 ; extra == 'full'
56
+ Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'full'
57
+ Requires-Dist: pylint ; extra == 'full'
58
+ Requires-Dist: PyYAML ; extra == 'full'
59
+ Requires-Dist: cryptography ~=42.0 ; extra == 'full'
60
+ Requires-Dist: isort ; extra == 'full'
55
61
  Requires-Dist: dnspython[doh] ~=2.6.0 ; extra == 'full'
62
+ Requires-Dist: tox ; extra == 'full'
63
+ Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'full'
64
+ Requires-Dist: coverage ; extra == 'full'
65
+ Requires-Dist: packaging ; extra == 'full'
66
+ Requires-Dist: alabaster <0.8,>=0.7 ; extra == 'full'
56
67
  Requires-Dist: domain2idna ~=1.12.0 ; extra == 'full'
68
+ Requires-Dist: setuptools >=65.5.1 ; extra == 'full'
69
+ Requires-Dist: PyMySQL ; extra == 'full'
57
70
  Requires-Dist: python-dotenv ; extra == 'full'
71
+ Requires-Dist: alembic ; extra == 'full'
58
72
  Requires-Dist: colorama ; extra == 'full'
59
- Requires-Dist: packaging ; extra == 'full'
60
- Requires-Dist: pylint ; extra == 'full'
61
- Requires-Dist: tox ; extra == 'full'
62
- Requires-Dist: black ; extra == 'full'
63
- Requires-Dist: coverage ; extra == 'full'
64
- Requires-Dist: requests[socks] <3 ; extra == 'full'
65
- Requires-Dist: PyYAML ; extra == 'full'
66
- Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'full'
67
- Requires-Dist: shtab ; extra == 'full'
68
73
  Requires-Dist: sphinx >=3.4.3 ; extra == 'full'
69
- Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'full'
70
- Requires-Dist: inflection ; extra == 'full'
71
- Requires-Dist: alembic ; extra == 'full'
72
- Requires-Dist: setuptools >=65.5.1 ; extra == 'full'
73
- Requires-Dist: sphinx-rtd-theme ; extra == 'full'
74
- Requires-Dist: cryptography ~=42.0 ; extra == 'full'
74
+ Requires-Dist: Pygments >=2.0 ; extra == 'full'
75
75
  Provides-Extra: psql
76
- Requires-Dist: dnspython[doh] ~=2.6.0 ; extra == 'psql'
77
- Requires-Dist: shtab ; extra == 'psql'
78
- Requires-Dist: domain2idna ~=1.12.0 ; extra == 'psql'
79
- Requires-Dist: inflection ; extra == 'psql'
80
- Requires-Dist: PyMySQL ; extra == 'psql'
81
- Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'psql'
82
- Requires-Dist: python-dotenv ; extra == 'psql'
83
- Requires-Dist: colorama ; extra == 'psql'
84
- Requires-Dist: alembic ; extra == 'psql'
76
+ Requires-Dist: packaging ; extra == 'psql'
85
77
  Requires-Dist: requests[socks] <3 ; extra == 'psql'
86
- Requires-Dist: setuptools >=65.5.1 ; extra == 'psql'
78
+ Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'psql'
87
79
  Requires-Dist: psycopg2 ; extra == 'psql'
88
- Requires-Dist: packaging ; extra == 'psql'
80
+ Requires-Dist: python-dotenv ; extra == 'psql'
89
81
  Requires-Dist: PyYAML ; extra == 'psql'
90
- Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'psql'
91
82
  Requires-Dist: cryptography ~=42.0 ; extra == 'psql'
83
+ Requires-Dist: domain2idna ~=1.12.0 ; extra == 'psql'
84
+ Requires-Dist: alembic ; extra == 'psql'
85
+ Requires-Dist: shtab ; extra == 'psql'
86
+ Requires-Dist: inflection ; extra == 'psql'
87
+ Requires-Dist: dnspython[doh] ~=2.6.0 ; extra == 'psql'
88
+ Requires-Dist: colorama ; extra == 'psql'
89
+ Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'psql'
90
+ Requires-Dist: setuptools >=65.5.1 ; extra == 'psql'
91
+ Requires-Dist: PyMySQL ; extra == 'psql'
92
92
  Provides-Extra: test
93
93
  Requires-Dist: tox ; extra == 'test'
94
94
  Requires-Dist: coverage ; extra == 'test'
@@ -4,7 +4,7 @@ PyFunceble/facility.py,sha256=zwQ-5JFtBr-n0uahkCLIheXNADX34A3uzVcEdFTWT8o,2640
4
4
  PyFunceble/factory.py,sha256=EIMObS1gaWpGamlqIoLoHAg9xpcXdfKEnDGe31O9WIw,2590
5
5
  PyFunceble/logger.py,sha256=8ex6ccGeV8sXtF6MMZsIfCAv2ZJmwKrvRQZd_4cIDCM,16829
6
6
  PyFunceble/sessions.py,sha256=lmqepbwtCCU8KVBNZ-XBo6kFFh5cpCKPgT_GegiLhk8,2582
7
- PyFunceble/storage.py,sha256=rE9VGtkX6ANOC_ZR8dSBvZjnK1Pv-tIDB46IHOLCLuk,6299
7
+ PyFunceble/storage.py,sha256=OrsgCIEhg2r_HcaY-Bgj7yaZGM0-AK85A6ec6olpgoc,6299
8
8
  PyFunceble/storage_facility.py,sha256=dnjRkVbH3kFtbWlX7evPyNT6rfo7nGCd4oNC9AajWtY,4833
9
9
  PyFunceble/checker/__init__.py,sha256=aiQBstQTw1nXwZ3IGxf_k3CofRbbtFB4WAu_ezvmi_0,2444
10
10
  PyFunceble/checker/base.py,sha256=iFNezdMIpfx6kwEaaDzniP7erPEbHWsBsIIMG96MAEY,13677
@@ -242,7 +242,7 @@ PyFunceble/helpers/list.py,sha256=42SX78D6cbUbSctxBZLE-kBzJmBQ3iZTDQiB7Ficfkk,50
242
242
  PyFunceble/helpers/merge.py,sha256=qU9z5mUGxNEKv2fjPokSU8B-HMC62izEIk8LZQU9duE,6060
243
243
  PyFunceble/helpers/regex.py,sha256=ySrV2FaKJPVL4glaA1jx2_1Jq_5ydup86FWrRsfB7eo,6937
244
244
  PyFunceble/query/__init__.py,sha256=OrSc30ozkbsgboBkO3IWmsHZS3AxhnvfQuJLZlnbhoI,2514
245
- PyFunceble/query/collection.py,sha256=hZC2zaynAV3TVe4ciVbXLNl2yrcoJ9JZjc6bPp-UfQE,25886
245
+ PyFunceble/query/collection.py,sha256=g8ETJFpxfAfYw_ZVV4kT2zAzSrnd9xJGm4l62E6nQQE,26199
246
246
  PyFunceble/query/http_status_code.py,sha256=Li6uWA-GLJ0Hj_dKz527w4i4gLX78W-AC87MeVdDJdI,11777
247
247
  PyFunceble/query/dns/__init__.py,sha256=Q0M83ZMZf7wJMgTVFmnXyfLb8XNdBHe2gTWs2dHTpK4,2479
248
248
  PyFunceble/query/dns/nameserver.py,sha256=ogE6jXBOy94f36KtUx4y1kB_G2H_X65SJWTzuaTbVDI,9796
@@ -274,9 +274,9 @@ PyFunceble/utils/__init__.py,sha256=l6Mz-0GPHPCSPXuNFtHbnjD0fYI5BRr-RwDbVgAUdmI,
274
274
  PyFunceble/utils/platform.py,sha256=px_pauOFMCEtc9ST0vYZvDWDhcWNP1S595iKK4P3n7c,3920
275
275
  PyFunceble/utils/profile.py,sha256=Fp5yntq5Ys5eQe-FbQsUpx4ydxDxVYW3ACn-3KcTk_A,4566
276
276
  PyFunceble/utils/version.py,sha256=Tb3DWk96Xl6WbdDa2t3QQGBBDcnKDNJV_iFWMVQfCoc,8330
277
- PyFunceble_dev-4.2.10.dist-info/LICENSE,sha256=JBG6UfPnf3940AtwZB6vwAK6YH82Eo6nzMVnjGqopF0,10796
278
- PyFunceble_dev-4.2.10.dist-info/METADATA,sha256=rOJhcIfe0hvxBe70AQoFkjQRHXhbciGRHv0k6eVWB3E,15119
279
- PyFunceble_dev-4.2.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
280
- PyFunceble_dev-4.2.10.dist-info/entry_points.txt,sha256=Ic1suwopOi_XTgiQi2ErtpY5xT3R8EFMI6B_ONDuR9E,201
281
- PyFunceble_dev-4.2.10.dist-info/top_level.txt,sha256=J7GBKIiNYv93m1AxLy8_gr6ExXyZbMmCVXHMQBTUq2Y,11
282
- PyFunceble_dev-4.2.10.dist-info/RECORD,,
277
+ PyFunceble_dev-4.2.11.dist-info/LICENSE,sha256=JBG6UfPnf3940AtwZB6vwAK6YH82Eo6nzMVnjGqopF0,10796
278
+ PyFunceble_dev-4.2.11.dist-info/METADATA,sha256=3koYulfOss4hoJhAlx5Sq2WL-Z0KT6dg9iALq8L6GNc,15119
279
+ PyFunceble_dev-4.2.11.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
280
+ PyFunceble_dev-4.2.11.dist-info/entry_points.txt,sha256=Ic1suwopOi_XTgiQi2ErtpY5xT3R8EFMI6B_ONDuR9E,201
281
+ PyFunceble_dev-4.2.11.dist-info/top_level.txt,sha256=J7GBKIiNYv93m1AxLy8_gr6ExXyZbMmCVXHMQBTUq2Y,11
282
+ PyFunceble_dev-4.2.11.dist-info/RECORD,,