PyFunceble-dev 4.2.10__py3-none-any.whl → 4.2.12__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.
@@ -181,6 +181,13 @@ class ConfigLoader:
181
181
  # If we are under a special testing mode. We shouldn't generate
182
182
  # any files
183
183
  config["cli_testing"]["file_generation"]["no_file"] = True
184
+ config["cli_testing"]["display_mode"]["dots"] = True
185
+ config["cli_testing"]["autocontinue"] = False
186
+ config["cli_testing"]["inactive_db"] = False
187
+ config["cli_testing"]["mining"] = False
188
+ config["cli_testing"]["local_network"] = False
189
+ config["cli_testing"]["preload_file"] = False
190
+ config["cli_testing"]["display_mode"]["percentage"] = False
184
191
 
185
192
  return config
186
193
 
@@ -337,15 +337,15 @@ class CollectionQueryTool:
337
337
  Try to guess the URL base to work with.
338
338
  """
339
339
 
340
- if PyFunceble.facility.ConfigLoader.is_already_loaded():
340
+ if EnvironmentVariableHelper("PYFUNCEBLE_COLLECTION_API_URL").exists():
341
+ self.url_base = EnvironmentVariableHelper(
342
+ "PYFUNCEBLE_COLLECTION_API_URL"
343
+ ).get_value()
344
+ elif PyFunceble.facility.ConfigLoader.is_already_loaded():
341
345
  if isinstance(PyFunceble.storage.CONFIGURATION.collection.url_base, str):
342
346
  self.url_base = PyFunceble.storage.CONFIGURATION.collection.url_base
343
347
  else:
344
348
  self.url_base = self.STD_URL_BASE
345
- elif EnvironmentVariableHelper("PYFUNCEBLE_COLLECTION_API_URL").exists():
346
- self.url_base = EnvironmentVariableHelper(
347
- "PYFUNCEBLE_COLLECTION_API_URL"
348
- ).get_value()
349
349
  else:
350
350
  self.url_base = self.STD_URL_BASE
351
351
 
@@ -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.12.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.12
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
@@ -22,76 +22,76 @@ Classifier: License :: OSI Approved
22
22
  Requires-Python: >=3.8, <4
23
23
  License-File: LICENSE
24
24
  Requires-Dist: dnspython[doh] ~=2.6.0
25
- Requires-Dist: shtab
26
- Requires-Dist: domain2idna ~=1.12.0
27
- Requires-Dist: inflection
28
- Requires-Dist: PyMySQL
29
- Requires-Dist: SQLAlchemy ~=2.0
30
- Requires-Dist: python-dotenv
31
- Requires-Dist: colorama
25
+ Requires-Dist: packaging
26
+ Requires-Dist: cryptography ~=42.0
27
+ Requires-Dist: setuptools >=65.5.1
32
28
  Requires-Dist: alembic
29
+ Requires-Dist: shtab
33
30
  Requires-Dist: requests[socks] <3
34
- Requires-Dist: setuptools >=65.5.1
35
- Requires-Dist: packaging
31
+ Requires-Dist: PyMySQL
36
32
  Requires-Dist: PyYAML
33
+ Requires-Dist: SQLAlchemy ~=2.0
34
+ Requires-Dist: domain2idna ~=1.12.0
37
35
  Requires-Dist: python-box[all] ~=6.0.0
38
- Requires-Dist: cryptography ~=42.0
36
+ Requires-Dist: inflection
37
+ Requires-Dist: colorama
38
+ Requires-Dist: python-dotenv
39
39
  Provides-Extra: dev
40
- Requires-Dist: isort ; extra == 'dev'
41
40
  Requires-Dist: black ; extra == 'dev'
42
41
  Requires-Dist: pylint ; extra == 'dev'
42
+ Requires-Dist: isort ; extra == 'dev'
43
43
  Requires-Dist: flake8 ; extra == 'dev'
44
44
  Provides-Extra: docs
45
+ Requires-Dist: sphinx >=3.4.3 ; extra == 'docs'
45
46
  Requires-Dist: alabaster <0.8,>=0.7 ; extra == 'docs'
46
- Requires-Dist: Pygments >=2.0 ; extra == 'docs'
47
47
  Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
48
- 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'
50
+ Requires-Dist: setuptools >=65.5.1 ; extra == 'full'
51
+ Requires-Dist: black ; extra == 'full'
52
+ Requires-Dist: pylint ; extra == 'full'
53
+ Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'full'
52
54
  Requires-Dist: Pygments >=2.0 ; extra == 'full'
53
- Requires-Dist: flake8 ; extra == 'full'
55
+ Requires-Dist: sphinx >=3.4.3 ; extra == 'full'
56
+ Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'full'
54
57
  Requires-Dist: alabaster <0.8,>=0.7 ; extra == 'full'
55
- Requires-Dist: dnspython[doh] ~=2.6.0 ; extra == 'full'
56
- Requires-Dist: domain2idna ~=1.12.0 ; extra == 'full'
57
- Requires-Dist: python-dotenv ; extra == 'full'
58
- Requires-Dist: colorama ; extra == 'full'
58
+ Requires-Dist: sphinx-rtd-theme ; extra == 'full'
59
59
  Requires-Dist: packaging ; extra == 'full'
60
- Requires-Dist: pylint ; extra == 'full'
60
+ Requires-Dist: flake8 ; extra == 'full'
61
+ Requires-Dist: PyMySQL ; extra == 'full'
61
62
  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
63
  Requires-Dist: PyYAML ; extra == 'full'
66
- Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'full'
67
- Requires-Dist: shtab ; extra == 'full'
68
- Requires-Dist: sphinx >=3.4.3 ; extra == 'full'
69
- Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'full'
64
+ Requires-Dist: domain2idna ~=1.12.0 ; extra == 'full'
70
65
  Requires-Dist: inflection ; extra == 'full'
66
+ Requires-Dist: python-dotenv ; extra == 'full'
67
+ Requires-Dist: dnspython[doh] ~=2.6.0 ; extra == 'full'
71
68
  Requires-Dist: alembic ; extra == 'full'
72
- Requires-Dist: setuptools >=65.5.1 ; extra == 'full'
73
- Requires-Dist: sphinx-rtd-theme ; extra == 'full'
69
+ Requires-Dist: shtab ; extra == 'full'
70
+ Requires-Dist: requests[socks] <3 ; extra == 'full'
71
+ Requires-Dist: coverage ; extra == 'full'
74
72
  Requires-Dist: cryptography ~=42.0 ; extra == 'full'
73
+ Requires-Dist: isort ; extra == 'full'
74
+ Requires-Dist: colorama ; extra == 'full'
75
75
  Provides-Extra: psql
76
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'
77
+ Requires-Dist: packaging ; extra == 'psql'
78
+ Requires-Dist: cryptography ~=42.0 ; extra == 'psql'
79
+ Requires-Dist: setuptools >=65.5.1 ; extra == 'psql'
84
80
  Requires-Dist: alembic ; extra == 'psql'
81
+ Requires-Dist: shtab ; extra == 'psql'
85
82
  Requires-Dist: requests[socks] <3 ; extra == 'psql'
86
- Requires-Dist: setuptools >=65.5.1 ; extra == 'psql'
87
- Requires-Dist: psycopg2 ; extra == 'psql'
88
- Requires-Dist: packaging ; extra == 'psql'
83
+ Requires-Dist: PyMySQL ; extra == 'psql'
89
84
  Requires-Dist: PyYAML ; extra == 'psql'
85
+ Requires-Dist: psycopg2 ; extra == 'psql'
86
+ Requires-Dist: SQLAlchemy ~=2.0 ; extra == 'psql'
87
+ Requires-Dist: domain2idna ~=1.12.0 ; extra == 'psql'
90
88
  Requires-Dist: python-box[all] ~=6.0.0 ; extra == 'psql'
91
- Requires-Dist: cryptography ~=42.0 ; extra == 'psql'
89
+ Requires-Dist: inflection ; extra == 'psql'
90
+ Requires-Dist: colorama ; extra == 'psql'
91
+ Requires-Dist: python-dotenv ; extra == 'psql'
92
92
  Provides-Extra: test
93
- Requires-Dist: tox ; extra == 'test'
94
93
  Requires-Dist: coverage ; extra == 'test'
94
+ Requires-Dist: tox ; extra == 'test'
95
95
 
96
96
  .. image:: https://raw.githubusercontent.com/PyFunceble/logo/dev/Green/HD/RM.png
97
97
 
@@ -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=ooE1-rzwjOF2nF1z0U5TeFoyN1aF0P6QkbiQpHOApuQ,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
@@ -146,7 +146,7 @@ PyFunceble/cli/utils/testing.py,sha256=ojMFnRfDyOFXDPSaCRQpLwEZoADkRk0KUmx-Y7kvA
146
146
  PyFunceble/cli/utils/version.py,sha256=WNpKsy3Evn0vtY7GioLKogekagVgTK1Yh0jEIaSap4k,13358
147
147
  PyFunceble/config/__init__.py,sha256=e1G8cnfAsOuScjf7X-pejBviIWJBg9yV9AlP8QI30yQ,2468
148
148
  PyFunceble/config/compare.py,sha256=ztMwE9wsHMUw1waGZhuHTmeBezkY-ktBQMUQ0EpbuDk,13047
149
- PyFunceble/config/loader.py,sha256=mebHyET0OvHZFJCN8_WQjyR8DJdc8n0W8-lpsv3LLdY,15220
149
+ PyFunceble/config/loader.py,sha256=3v1S7Mphla8eKSqZlPauQ811ReReUTc-68cUzsvdSaI,15641
150
150
  PyFunceble/converter/__init__.py,sha256=N168Ng67JFwvopijVJU4C_Ej-KCbZLlGnwgrJzOSG-s,2450
151
151
  PyFunceble/converter/adblock_input_line2subject.py,sha256=IfOnjXaD5FJ0oK97-MVtV8a8Kjyt339pAZ37GzrCrbE,12939
152
152
  PyFunceble/converter/base.py,sha256=UYwAOivqZCIy_yclkO-Tww4nlQ5Qpf5eRjTHeu1S88Q,4929
@@ -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=uuWzeK1D28UMMoctuo0L0OTlY3bWcwqaNQkY_WKsUpU,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.12.dist-info/LICENSE,sha256=JBG6UfPnf3940AtwZB6vwAK6YH82Eo6nzMVnjGqopF0,10796
278
+ PyFunceble_dev-4.2.12.dist-info/METADATA,sha256=QQS4q_LhHYd_W2iS4wjgqN0JorbJCR0U1jk8saas6Ng,15119
279
+ PyFunceble_dev-4.2.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
280
+ PyFunceble_dev-4.2.12.dist-info/entry_points.txt,sha256=Ic1suwopOi_XTgiQi2ErtpY5xT3R8EFMI6B_ONDuR9E,201
281
+ PyFunceble_dev-4.2.12.dist-info/top_level.txt,sha256=J7GBKIiNYv93m1AxLy8_gr6ExXyZbMmCVXHMQBTUq2Y,11
282
+ PyFunceble_dev-4.2.12.dist-info/RECORD,,