PyFunceble-dev 4.2.26__py3-none-any.whl → 4.2.28__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.
- PyFunceble/__init__.py +1 -1
- PyFunceble/checker/__init__.py +1 -1
- PyFunceble/checker/availability/__init__.py +1 -1
- PyFunceble/checker/availability/base.py +1 -1
- PyFunceble/checker/availability/domain.py +1 -1
- PyFunceble/checker/availability/domain_and_ip.py +1 -1
- PyFunceble/checker/availability/extras/__init__.py +1 -1
- PyFunceble/checker/availability/extras/base.py +1 -1
- PyFunceble/checker/availability/extras/dns.py +1 -1
- PyFunceble/checker/availability/extras/etoxic.py +1 -1
- PyFunceble/checker/availability/extras/parked.py +1 -1
- PyFunceble/checker/availability/extras/rules.py +1 -1
- PyFunceble/checker/availability/extras/subject_switch.py +1 -1
- PyFunceble/checker/availability/ip.py +1 -1
- PyFunceble/checker/availability/params.py +1 -1
- PyFunceble/checker/availability/status.py +1 -1
- PyFunceble/checker/availability/url.py +1 -1
- PyFunceble/checker/base.py +1 -1
- PyFunceble/checker/complex_json_encoder.py +1 -1
- PyFunceble/checker/params_base.py +1 -1
- PyFunceble/checker/reputation/__init__.py +1 -1
- PyFunceble/checker/reputation/base.py +1 -1
- PyFunceble/checker/reputation/domain.py +1 -1
- PyFunceble/checker/reputation/domain_and_ip.py +1 -1
- PyFunceble/checker/reputation/ip.py +1 -1
- PyFunceble/checker/reputation/params.py +1 -1
- PyFunceble/checker/reputation/status.py +1 -1
- PyFunceble/checker/reputation/url.py +1 -1
- PyFunceble/checker/status_base.py +1 -1
- PyFunceble/checker/syntax/__init__.py +1 -1
- PyFunceble/checker/syntax/base.py +1 -1
- PyFunceble/checker/syntax/domain.py +1 -1
- PyFunceble/checker/syntax/domain_and_ip.py +1 -1
- PyFunceble/checker/syntax/domain_base.py +1 -1
- PyFunceble/checker/syntax/ip.py +1 -1
- PyFunceble/checker/syntax/ipv4.py +1 -1
- PyFunceble/checker/syntax/ipv6.py +1 -1
- PyFunceble/checker/syntax/params.py +1 -1
- PyFunceble/checker/syntax/second_lvl_domain.py +1 -1
- PyFunceble/checker/syntax/status.py +1 -1
- PyFunceble/checker/syntax/subdomain.py +1 -1
- PyFunceble/checker/syntax/url.py +1 -1
- PyFunceble/checker/utils/__init__.py +1 -1
- PyFunceble/checker/utils/whois.py +1 -1
- PyFunceble/cli/__init__.py +1 -1
- PyFunceble/cli/continuous_integration/__init__.py +1 -1
- PyFunceble/cli/continuous_integration/base.py +1 -1
- PyFunceble/cli/continuous_integration/exceptions.py +1 -1
- PyFunceble/cli/continuous_integration/github_actions.py +1 -1
- PyFunceble/cli/continuous_integration/gitlab_ci.py +1 -1
- PyFunceble/cli/continuous_integration/jenkins.py +1 -1
- PyFunceble/cli/continuous_integration/standalone.py +1 -1
- PyFunceble/cli/continuous_integration/travis_ci.py +1 -1
- PyFunceble/cli/continuous_integration/utils.py +1 -1
- PyFunceble/cli/credential_loader.py +1 -1
- PyFunceble/cli/entry_points/__init__.py +1 -1
- PyFunceble/cli/entry_points/clean.py +1 -1
- PyFunceble/cli/entry_points/iana.py +1 -1
- PyFunceble/cli/entry_points/production.py +1 -19
- PyFunceble/cli/entry_points/public_suffix.py +1 -1
- PyFunceble/cli/entry_points/pyfunceble/__init__.py +1 -1
- PyFunceble/cli/entry_points/pyfunceble/argsparser.py +1 -1
- PyFunceble/cli/entry_points/pyfunceble/cli.py +2 -2
- PyFunceble/cli/execution_time.py +1 -1
- PyFunceble/cli/facility.py +1 -1
- PyFunceble/cli/factory.py +1 -1
- PyFunceble/cli/file_preloader.py +1 -1
- PyFunceble/cli/filesystem/__init__.py +1 -1
- PyFunceble/cli/filesystem/cleanup.py +1 -1
- PyFunceble/cli/filesystem/counter.py +1 -1
- PyFunceble/cli/filesystem/dir_base.py +1 -1
- PyFunceble/cli/filesystem/dir_structure/__init__.py +1 -1
- PyFunceble/cli/filesystem/dir_structure/backup.py +1 -1
- PyFunceble/cli/filesystem/dir_structure/base.py +1 -1
- PyFunceble/cli/filesystem/dir_structure/restore.py +1 -1
- PyFunceble/cli/filesystem/json_base.py +1 -1
- PyFunceble/cli/filesystem/printer/__init__.py +1 -1
- PyFunceble/cli/filesystem/printer/base.py +1 -1
- PyFunceble/cli/filesystem/printer/file.py +1 -1
- PyFunceble/cli/filesystem/printer/stdout.py +1 -1
- PyFunceble/cli/filesystem/registrar_counter.py +1 -1
- PyFunceble/cli/filesystem/status_file.py +1 -1
- PyFunceble/cli/migrators/__init__.py +1 -1
- PyFunceble/cli/migrators/alembic.py +1 -1
- PyFunceble/cli/migrators/base.py +1 -1
- PyFunceble/cli/migrators/csv_file/__init__.py +1 -1
- PyFunceble/cli/migrators/csv_file/base.py +1 -1
- PyFunceble/cli/migrators/csv_file/inactive_source_delete.py +1 -1
- PyFunceble/cli/migrators/csv_file/whois_registrar_add.py +1 -1
- PyFunceble/cli/migrators/db_base.py +1 -1
- PyFunceble/cli/migrators/file_cleanup/__init__.py +1 -1
- PyFunceble/cli/migrators/file_cleanup/base.py +1 -1
- PyFunceble/cli/migrators/file_cleanup/hashes_file.py +1 -1
- PyFunceble/cli/migrators/file_cleanup/mining_file.py +1 -1
- PyFunceble/cli/migrators/file_cleanup/production_config_file.py +1 -1
- PyFunceble/cli/migrators/json2csv/__init__.py +1 -1
- PyFunceble/cli/migrators/json2csv/base.py +1 -1
- PyFunceble/cli/migrators/json2csv/inactive.py +1 -1
- PyFunceble/cli/migrators/json2csv/whois.py +1 -1
- PyFunceble/cli/migrators/mariadb/__init__.py +1 -1
- PyFunceble/cli/migrators/mariadb/base.py +1 -1
- PyFunceble/cli/migrators/mariadb/file_and_status.py +1 -1
- PyFunceble/cli/migrators/mariadb/whois_record_idna_subject.py +1 -1
- PyFunceble/cli/processes/__init__.py +1 -1
- PyFunceble/cli/processes/base.py +1 -1
- PyFunceble/cli/processes/chancy_producer.py +1 -1
- PyFunceble/cli/processes/chancy_tester.py +1 -1
- PyFunceble/cli/processes/dir_files_sorter.py +1 -1
- PyFunceble/cli/processes/file_sorter.py +1 -1
- PyFunceble/cli/processes/migrator.py +1 -1
- PyFunceble/cli/processes/miner.py +1 -1
- PyFunceble/cli/processes/producer.py +1 -1
- PyFunceble/cli/processes/tester.py +1 -1
- PyFunceble/cli/processes/workers/__init__.py +1 -1
- PyFunceble/cli/processes/workers/base.py +1 -1
- PyFunceble/cli/processes/workers/chancy_producer.py +1 -1
- PyFunceble/cli/processes/workers/chancy_tester.py +1 -1
- PyFunceble/cli/processes/workers/dir_files_sorter.py +1 -1
- PyFunceble/cli/processes/workers/file_sorter.py +1 -1
- PyFunceble/cli/processes/workers/file_sorter_base.py +1 -1
- PyFunceble/cli/processes/workers/migrator.py +1 -1
- PyFunceble/cli/processes/workers/miner.py +1 -1
- PyFunceble/cli/processes/workers/producer.py +1 -1
- PyFunceble/cli/processes/workers/tester.py +1 -1
- PyFunceble/cli/scripts/__init__.py +1 -1
- PyFunceble/cli/scripts/iana.py +1 -1
- PyFunceble/cli/scripts/production.py +2 -69
- PyFunceble/cli/scripts/public_suffix.py +1 -1
- PyFunceble/cli/storage.py +1 -1
- PyFunceble/cli/storage_facility.py +1 -1
- PyFunceble/cli/system/__init__.py +1 -1
- PyFunceble/cli/system/base.py +1 -1
- PyFunceble/cli/system/integrator.py +1 -1
- PyFunceble/cli/system/launcher.py +1 -1
- PyFunceble/cli/utils/__init__.py +1 -1
- PyFunceble/cli/utils/ascii_logo.py +1 -1
- PyFunceble/cli/utils/sort.py +1 -1
- PyFunceble/cli/utils/stdout.py +1 -1
- PyFunceble/cli/utils/testing.py +1 -1
- PyFunceble/cli/utils/version.py +1 -1
- PyFunceble/config/__init__.py +1 -1
- PyFunceble/config/compare.py +1 -1
- PyFunceble/config/loader.py +1 -1
- PyFunceble/converter/__init__.py +1 -1
- PyFunceble/converter/adblock_input_line2subject.py +1 -1
- PyFunceble/converter/base.py +1 -1
- PyFunceble/converter/cidr2subject.py +1 -1
- PyFunceble/converter/input_line2subject.py +1 -1
- PyFunceble/converter/internal_url.py +1 -1
- PyFunceble/converter/rpz_input_line2subject.py +1 -1
- PyFunceble/converter/rpz_policy2subject.py +1 -1
- PyFunceble/converter/subject2complements.py +1 -1
- PyFunceble/converter/url2netloc.py +1 -1
- PyFunceble/converter/wildcard2subject.py +1 -1
- PyFunceble/data/alembic/__init__.py +1 -1
- PyFunceble/data/alembic/mysql/__init__.py +1 -1
- PyFunceble/data/alembic/mysql/env.py +1 -1
- PyFunceble/data/alembic/mysql/versions/__init__.py +1 -1
- PyFunceble/data/alembic/postgresql/__init__.py +1 -1
- PyFunceble/data/alembic/postgresql/env.py +1 -1
- PyFunceble/data/alembic/postgresql/versions/__init__.py +1 -1
- PyFunceble/data/infrastructure/.PyFunceble_production.yaml +486 -140
- PyFunceble/database/__init__.py +1 -1
- PyFunceble/database/credential/__init__.py +1 -1
- PyFunceble/database/credential/base.py +1 -1
- PyFunceble/database/credential/mariadb.py +1 -1
- PyFunceble/database/credential/mysql.py +1 -1
- PyFunceble/database/credential/postgresql.py +1 -1
- PyFunceble/database/schemas/__init__.py +1 -1
- PyFunceble/database/schemas/autocontinue.py +1 -1
- PyFunceble/database/schemas/inactive.py +1 -1
- PyFunceble/database/schemas/status.py +1 -1
- PyFunceble/database/schemas/whois_record.py +1 -1
- PyFunceble/database/session.py +1 -1
- PyFunceble/database/sqlalchemy/__init__.py +1 -1
- PyFunceble/database/sqlalchemy/all_schemas.py +1 -1
- PyFunceble/database/sqlalchemy/base_schema.py +1 -1
- PyFunceble/dataset/__init__.py +1 -1
- PyFunceble/dataset/autocontinue/__init__.py +1 -1
- PyFunceble/dataset/autocontinue/base.py +1 -1
- PyFunceble/dataset/autocontinue/csv.py +1 -1
- PyFunceble/dataset/autocontinue/sql.py +1 -1
- PyFunceble/dataset/base.py +1 -1
- PyFunceble/dataset/csv_base.py +1 -1
- PyFunceble/dataset/db_base.py +1 -1
- PyFunceble/dataset/iana.py +1 -1
- PyFunceble/dataset/inactive/__init__.py +1 -1
- PyFunceble/dataset/inactive/base.py +1 -1
- PyFunceble/dataset/inactive/csv.py +1 -1
- PyFunceble/dataset/inactive/sql.py +1 -1
- PyFunceble/dataset/ipv4_reputation.py +1 -1
- PyFunceble/dataset/public_suffix.py +1 -1
- PyFunceble/dataset/sql_base.py +1 -1
- PyFunceble/dataset/user_agent.py +1 -1
- PyFunceble/dataset/whois/__init__.py +1 -1
- PyFunceble/dataset/whois/base.py +1 -1
- PyFunceble/dataset/whois/csv.py +1 -1
- PyFunceble/dataset/whois/sql.py +1 -1
- PyFunceble/downloader/__init__.py +1 -1
- PyFunceble/downloader/base.py +1 -1
- PyFunceble/downloader/exceptions.py +1 -1
- PyFunceble/downloader/iana.py +1 -1
- PyFunceble/downloader/ipv4_reputation.py +1 -1
- PyFunceble/downloader/public_suffix.py +1 -1
- PyFunceble/downloader/user_agents.py +1 -1
- PyFunceble/exceptions.py +1 -1
- PyFunceble/facility.py +1 -1
- PyFunceble/factory.py +1 -1
- PyFunceble/helpers/__init__.py +1 -1
- PyFunceble/helpers/command.py +1 -1
- PyFunceble/helpers/dict.py +1 -1
- PyFunceble/helpers/directory.py +1 -1
- PyFunceble/helpers/download.py +1 -1
- PyFunceble/helpers/environment_variable.py +1 -1
- PyFunceble/helpers/exceptions.py +1 -1
- PyFunceble/helpers/file.py +1 -1
- PyFunceble/helpers/hash.py +1 -1
- PyFunceble/helpers/list.py +1 -1
- PyFunceble/helpers/merge.py +1 -1
- PyFunceble/helpers/regex.py +1 -1
- PyFunceble/logger.py +1 -1
- PyFunceble/query/__init__.py +1 -1
- PyFunceble/query/dns/__init__.py +1 -1
- PyFunceble/query/dns/nameserver.py +1 -1
- PyFunceble/query/dns/query_tool.py +1 -1
- PyFunceble/query/dns/resolver.py +1 -1
- PyFunceble/query/http_status_code.py +1 -1
- PyFunceble/query/netinfo/__init__.py +1 -1
- PyFunceble/query/netinfo/address.py +1 -1
- PyFunceble/query/netinfo/base.py +1 -1
- PyFunceble/query/netinfo/hostbyaddr.py +1 -1
- PyFunceble/query/platform.py +1 -1
- PyFunceble/query/record/__init__.py +1 -1
- PyFunceble/query/record/base.py +1 -1
- PyFunceble/query/record/dns.py +1 -1
- PyFunceble/query/record/whois.py +1 -1
- PyFunceble/query/requests/__init__.py +1 -1
- PyFunceble/query/requests/adapter/__init__.py +1 -1
- PyFunceble/query/requests/adapter/base.py +1 -1
- PyFunceble/query/requests/adapter/http.py +1 -1
- PyFunceble/query/requests/adapter/https.py +1 -1
- PyFunceble/query/requests/requester.py +1 -1
- PyFunceble/query/whois/__init__.py +1 -1
- PyFunceble/query/whois/converter/__init__.py +1 -1
- PyFunceble/query/whois/converter/base.py +1 -1
- PyFunceble/query/whois/converter/digit2digits.py +1 -1
- PyFunceble/query/whois/converter/expiration_date.py +1 -1
- PyFunceble/query/whois/converter/month2unified.py +1 -1
- PyFunceble/query/whois/converter/registrar.py +1 -1
- PyFunceble/query/whois/query_tool.py +1 -1
- PyFunceble/sessions.py +1 -1
- PyFunceble/storage.py +2 -2
- PyFunceble/storage_facility.py +1 -1
- PyFunceble/utils/__init__.py +1 -1
- PyFunceble/utils/platform.py +1 -1
- PyFunceble/utils/profile.py +1 -1
- PyFunceble/utils/version.py +6 -4
- PyFunceble_dev-4.2.28.dist-info/METADATA +630 -0
- PyFunceble_dev-4.2.28.dist-info/RECORD +283 -0
- {PyFunceble_dev-4.2.26.dist-info → PyFunceble_dev-4.2.28.dist-info}/WHEEL +1 -1
- PyFunceble_dev-4.2.26.dist-info/METADATA +0 -416
- PyFunceble_dev-4.2.26.dist-info/RECORD +0 -283
- {PyFunceble_dev-4.2.26.dist-info → PyFunceble_dev-4.2.28.dist-info}/LICENSE +0 -0
- {PyFunceble_dev-4.2.26.dist-info → PyFunceble_dev-4.2.28.dist-info}/entry_points.txt +0 -0
- {PyFunceble_dev-4.2.26.dist-info → PyFunceble_dev-4.2.28.dist-info}/top_level.txt +0 -0
PyFunceble/cli/scripts/iana.py
CHANGED
@@ -26,7 +26,7 @@ Project link:
|
|
26
26
|
https://github.com/funilrys/PyFunceble
|
27
27
|
|
28
28
|
Project documentation:
|
29
|
-
https://pyfunceble.
|
29
|
+
https://docs.pyfunceble.com
|
30
30
|
|
31
31
|
Project homepage:
|
32
32
|
https://pyfunceble.github.io/
|
@@ -60,9 +60,7 @@ import PyFunceble.cli.storage
|
|
60
60
|
import PyFunceble.facility
|
61
61
|
import PyFunceble.storage
|
62
62
|
from PyFunceble.cli.filesystem.dir_structure.backup import DirectoryStructureBackup
|
63
|
-
from PyFunceble.helpers.command import CommandHelper
|
64
63
|
from PyFunceble.helpers.dict import DictHelper
|
65
|
-
from PyFunceble.helpers.directory import DirectoryHelper
|
66
64
|
from PyFunceble.helpers.file import FileHelper
|
67
65
|
from PyFunceble.helpers.regex import RegexHelper
|
68
66
|
from PyFunceble.utils.version import VersionUtility
|
@@ -272,31 +270,6 @@ class ProductionPrep:
|
|
272
270
|
|
273
271
|
return self
|
274
272
|
|
275
|
-
def update_docs_urls(self) -> "ProductionPrep":
|
276
|
-
"""
|
277
|
-
Updates all URL in the documentation files.
|
278
|
-
"""
|
279
|
-
|
280
|
-
to_ignore = ["they-use-d-it.rst"]
|
281
|
-
|
282
|
-
self.update_urls(
|
283
|
-
os.path.join(PyFunceble.storage.CONFIG_DIRECTORY, "README.rst")
|
284
|
-
)
|
285
|
-
|
286
|
-
for root, _, files in os.walk(
|
287
|
-
os.path.join(PyFunceble.storage.CONFIG_DIRECTORY, "docs")
|
288
|
-
):
|
289
|
-
for file in files:
|
290
|
-
if not file.endswith(".rst"):
|
291
|
-
continue
|
292
|
-
|
293
|
-
full_path = os.path.join(root, file)
|
294
|
-
|
295
|
-
if any(x in full_path for x in to_ignore):
|
296
|
-
continue
|
297
|
-
|
298
|
-
self.update_urls(os.path.join(root, file))
|
299
|
-
|
300
273
|
@staticmethod
|
301
274
|
def update_code_format() -> "ProductionPrep":
|
302
275
|
"""
|
@@ -363,46 +336,6 @@ class ProductionPrep:
|
|
363
336
|
|
364
337
|
format_file(os.path.join(root, file), isort_config)
|
365
338
|
|
366
|
-
@staticmethod
|
367
|
-
def update_documentation() -> "ProductionPrep":
|
368
|
-
"""
|
369
|
-
Updates the code documentation.
|
370
|
-
|
371
|
-
:raise RuntimeError:
|
372
|
-
When one of the wanted directory is not found.
|
373
|
-
"""
|
374
|
-
|
375
|
-
PyFunceble.facility.Logger.info(
|
376
|
-
"Started to update and generate the documentation.",
|
377
|
-
)
|
378
|
-
|
379
|
-
docs_dir_helper = DirectoryHelper("docs")
|
380
|
-
source_code_dir_helper = DirectoryHelper("PyFunceble")
|
381
|
-
|
382
|
-
if not docs_dir_helper.exists():
|
383
|
-
raise RuntimeError(f"{docs_dir_helper.realpath!r} not found.")
|
384
|
-
|
385
|
-
if not source_code_dir_helper.exists():
|
386
|
-
raise RuntimeError(f"{source_code_dir_helper.realpath!r} not found.")
|
387
|
-
|
388
|
-
header = "Code Documentation"
|
389
|
-
source_code_destination = os.path.join(docs_dir_helper.realpath, "code")
|
390
|
-
|
391
|
-
CommandHelper(
|
392
|
-
f"sphinx-apidoc -d 5 -f -H {header!r} -o "
|
393
|
-
f"{source_code_destination!r} {source_code_dir_helper.realpath}"
|
394
|
-
).execute(raise_on_error=True)
|
395
|
-
|
396
|
-
docs_destination = os.path.join(docs_dir_helper.realpath, "_build", "html")
|
397
|
-
|
398
|
-
CommandHelper(
|
399
|
-
f"sphinx-build -a -Q {docs_dir_helper.realpath!r} {docs_destination!r}"
|
400
|
-
).execute(raise_on_error=False)
|
401
|
-
|
402
|
-
PyFunceble.facility.Logger.info(
|
403
|
-
"Finished to update and generate the documentation.",
|
404
|
-
)
|
405
|
-
|
406
339
|
def update_code_urls(self) -> "ProductionPrep":
|
407
340
|
"""
|
408
341
|
Updates all URL in the source code.
|
@@ -461,7 +394,7 @@ class ProductionPrep:
|
|
461
394
|
]
|
462
395
|
elif self.branch == "master":
|
463
396
|
regexes = [
|
464
|
-
(r'name=".*"', 'name="PyFunceble
|
397
|
+
(r'name=".*"', 'name="PyFunceble"'),
|
465
398
|
(
|
466
399
|
r'"Development\sStatus\s::.*"',
|
467
400
|
'"Development Status :: 5 - Production/Stable"',
|
PyFunceble/cli/storage.py
CHANGED
PyFunceble/cli/system/base.py
CHANGED
PyFunceble/cli/utils/__init__.py
CHANGED
PyFunceble/cli/utils/sort.py
CHANGED
PyFunceble/cli/utils/stdout.py
CHANGED
PyFunceble/cli/utils/testing.py
CHANGED
PyFunceble/cli/utils/version.py
CHANGED
PyFunceble/config/__init__.py
CHANGED
PyFunceble/config/compare.py
CHANGED
PyFunceble/config/loader.py
CHANGED
PyFunceble/converter/__init__.py
CHANGED
PyFunceble/converter/base.py
CHANGED