PyFunceble-dev 4.3.1__py3-none-any.whl → 4.4.1__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 +12 -4
- PyFunceble/checker/availability/domain.py +4 -2
- PyFunceble/checker/availability/domain_and_ip.py +3 -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/external.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 +14 -2
- 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 +11 -3
- 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 +6 -3
- 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 +8 -4
- 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 -1
- 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 +5 -10
- 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 +3 -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 +8 -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 +10 -4
- PyFunceble/cli/processes/workers/tester.py +6 -6
- PyFunceble/cli/scripts/__init__.py +1 -1
- PyFunceble/cli/scripts/iana.py +1 -1
- PyFunceble/cli/scripts/production.py +1 -1
- 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 +19 -6
- 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 +10 -4
- 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 +2 -1
- PyFunceble/converter/rpz_policy2subject.py +2 -1
- PyFunceble/converter/subject2complements.py +2 -1
- PyFunceble/converter/url2netloc.py +1 -1
- PyFunceble/converter/wildcard2subject.py +2 -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/database/__init__.py +1 -1
- PyFunceble/database/credential/__init__.py +1 -1
- PyFunceble/database/credential/base.py +2 -2
- 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 +16 -2
- PyFunceble/dataset/autocontinue/sql.py +1 -1
- PyFunceble/dataset/base.py +26 -1
- PyFunceble/dataset/csv_base.py +4 -1
- PyFunceble/dataset/db_base.py +15 -1
- PyFunceble/dataset/iana.py +7 -2
- 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 +8 -2
- PyFunceble/dataset/public_suffix.py +7 -2
- PyFunceble/dataset/sql_base.py +1 -1
- PyFunceble/dataset/user_agent.py +7 -2
- 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 +2 -2
- 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 +1 -1
- {pyfunceble_dev-4.3.1.dist-info → pyfunceble_dev-4.4.1.dist-info}/METADATA +115 -115
- pyfunceble_dev-4.4.1.dist-info/RECORD +284 -0
- {pyfunceble_dev-4.3.1.dist-info → pyfunceble_dev-4.4.1.dist-info}/WHEEL +1 -1
- {pyfunceble_dev-4.3.1.dist-info → pyfunceble_dev-4.4.1.dist-info}/licenses/LICENSE +1 -1
- pyfunceble_dev-4.3.1.dist-info/RECORD +0 -284
- {pyfunceble_dev-4.3.1.dist-info → pyfunceble_dev-4.4.1.dist-info}/entry_points.txt +0 -0
- {pyfunceble_dev-4.3.1.dist-info → pyfunceble_dev-4.4.1.dist-info}/top_level.txt +0 -0
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -36,7 +36,7 @@ License:
|
|
|
36
36
|
::
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
39
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
40
40
|
|
|
41
41
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
42
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -40,7 +40,7 @@ License:
|
|
|
40
40
|
::
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
43
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
44
44
|
|
|
45
45
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
46
46
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/processes/base.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -60,3 +60,10 @@ class ProcessesManagerBase(PyFunceble.ext.process_manager.ProcessManagerCore):
|
|
|
60
60
|
"""
|
|
61
61
|
Provides the base of all classes.
|
|
62
62
|
"""
|
|
63
|
+
|
|
64
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
65
|
+
# Better handling of shared locks.
|
|
66
|
+
# This help be be retro-compatible. Allowing existing users to
|
|
67
|
+
# not get exceptions.
|
|
68
|
+
shared_lock = kwargs.pop("shared_lock", None)
|
|
69
|
+
super().__init__(*args, **kwargs, shared_lock=shared_lock)
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -37,7 +37,7 @@ License:
|
|
|
37
37
|
::
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
40
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
41
41
|
|
|
42
42
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
43
|
you may not use this file except in compliance with the License.
|
|
@@ -37,7 +37,7 @@ License:
|
|
|
37
37
|
::
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
40
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
41
41
|
|
|
42
42
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
43
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -125,9 +125,15 @@ class ProducerWorker(WorkerBase):
|
|
|
125
125
|
self.file_printer = FilePrinter(
|
|
126
126
|
skip_column=skip_columns, extra_formatters=extra_formatters
|
|
127
127
|
)
|
|
128
|
-
self.whois_dataset = get_whois_dataset_object(
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
self.whois_dataset = get_whois_dataset_object(
|
|
129
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
130
|
+
)
|
|
131
|
+
self.inactive_dataset = get_inactive_dataset_object(
|
|
132
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
133
|
+
)
|
|
134
|
+
self.continue_dataset = get_continue_dataset_object(
|
|
135
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
136
|
+
)
|
|
131
137
|
self.status_file_generator = StatusFileGenerator().guess_all_settings()
|
|
132
138
|
self.counter = FilesystemCounter()
|
|
133
139
|
self.registrar_counter = RegistrarCounter()
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -90,12 +90,12 @@ class TesterWorker(WorkerBase):
|
|
|
90
90
|
|
|
91
91
|
self.continue_dataset = (
|
|
92
92
|
PyFunceble.cli.utils.testing.get_continue_dataset_object(
|
|
93
|
-
db_session=self.db_session
|
|
93
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
94
94
|
)
|
|
95
95
|
)
|
|
96
96
|
self.inactive_dataset = (
|
|
97
97
|
PyFunceble.cli.utils.testing.get_inactive_dataset_object(
|
|
98
|
-
db_session=self.db_session
|
|
98
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
99
99
|
)
|
|
100
100
|
)
|
|
101
101
|
|
|
@@ -191,7 +191,7 @@ class TesterWorker(WorkerBase):
|
|
|
191
191
|
self.initiated_testing_objects[checker_type][
|
|
192
192
|
subject_type
|
|
193
193
|
] = self.known_testing_objects[checker_type][subject_type](
|
|
194
|
-
db_session=self.db_session
|
|
194
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
195
195
|
).set_do_syntax_check_first(
|
|
196
196
|
# We want to always check the syntax first (ONLY UNDER THE CLI)
|
|
197
197
|
not bool(PyFunceble.storage.CONFIGURATION.cli_testing.local_network)
|
|
@@ -278,12 +278,12 @@ class TesterWorker(WorkerBase):
|
|
|
278
278
|
test_dataset["idna_subject"],
|
|
279
279
|
)
|
|
280
280
|
|
|
281
|
-
self._init_testing_object(
|
|
281
|
+
testing_object = self._init_testing_object(
|
|
282
282
|
test_dataset["subject_type"], test_dataset["checker_type"]
|
|
283
283
|
)
|
|
284
284
|
|
|
285
285
|
result = (
|
|
286
|
-
|
|
286
|
+
testing_object.set_subject(test_dataset["idna_subject"])
|
|
287
287
|
.query_status()
|
|
288
288
|
.get_status()
|
|
289
289
|
)
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/scripts/iana.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/storage.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -36,7 +36,7 @@ License:
|
|
|
36
36
|
::
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
39
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
40
40
|
|
|
41
41
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
42
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/system/base.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -36,7 +36,7 @@ License:
|
|
|
36
36
|
::
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
39
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
40
40
|
|
|
41
41
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
42
|
you may not use this file except in compliance with the License.
|
|
@@ -36,7 +36,7 @@ License:
|
|
|
36
36
|
::
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
39
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
40
40
|
|
|
41
41
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
42
|
you may not use this file except in compliance with the License.
|
|
@@ -156,6 +156,7 @@ class SystemLauncher(SystemBase):
|
|
|
156
156
|
file_preloader: Optional[FilePreloader] = None
|
|
157
157
|
|
|
158
158
|
manager: Optional[multiprocessing.Manager]
|
|
159
|
+
shared_lock: Optional[multiprocessing.Lock] = None
|
|
159
160
|
tester_process_manager: Optional[
|
|
160
161
|
Union[TesterProcessesManager, ChancyTesterProcessesManager]
|
|
161
162
|
] = None
|
|
@@ -185,11 +186,20 @@ class SystemLauncher(SystemBase):
|
|
|
185
186
|
except TypeError:
|
|
186
187
|
self.db_session = None
|
|
187
188
|
|
|
189
|
+
self.manager = multiprocessing.Manager()
|
|
190
|
+
self.shared_lock = multiprocessing.Lock()
|
|
191
|
+
|
|
188
192
|
self.execution_time_holder = ExecutionTime().set_start_time()
|
|
189
193
|
self.checker_type = get_testing_mode()
|
|
190
|
-
self.continue_dataset = get_continue_dataset_object(
|
|
191
|
-
|
|
192
|
-
|
|
194
|
+
self.continue_dataset = get_continue_dataset_object(
|
|
195
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
196
|
+
)
|
|
197
|
+
self.inactive_dataset = get_inactive_dataset_object(
|
|
198
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
199
|
+
)
|
|
200
|
+
self.whois_dataset = get_whois_dataset_object(
|
|
201
|
+
db_session=self.db_session, shared_lock=self.shared_lock
|
|
202
|
+
)
|
|
193
203
|
self.continuous_integration = ci_object()
|
|
194
204
|
|
|
195
205
|
if self.continuous_integration.authorized:
|
|
@@ -197,8 +207,6 @@ class SystemLauncher(SystemBase):
|
|
|
197
207
|
|
|
198
208
|
self.stdout_printer.guess_allow_coloration().guess_allow_background_coloration()
|
|
199
209
|
|
|
200
|
-
self.manager = multiprocessing.Manager()
|
|
201
|
-
|
|
202
210
|
if not PyFunceble.storage.CONFIGURATION.cli_testing.chancy_tester:
|
|
203
211
|
self.tester_process_manager = TesterProcessesManager(
|
|
204
212
|
max_workers=PyFunceble.storage.CONFIGURATION.cli_testing.max_workers,
|
|
@@ -215,6 +223,7 @@ class SystemLauncher(SystemBase):
|
|
|
215
223
|
delay_shutdown=PyFunceble.storage.CONFIGURATION.cli_testing.mining,
|
|
216
224
|
generate_configuration_queue=False,
|
|
217
225
|
continuous_integration=self.continuous_integration,
|
|
226
|
+
shared_lock=self.shared_lock,
|
|
218
227
|
)
|
|
219
228
|
|
|
220
229
|
self.producer_process_manager = ProducerProcessesManager(
|
|
@@ -227,6 +236,7 @@ class SystemLauncher(SystemBase):
|
|
|
227
236
|
delay_shutdown=PyFunceble.storage.CONFIGURATION.cli_testing.mining,
|
|
228
237
|
generate_configuration_queue=False,
|
|
229
238
|
continuous_integration=self.continuous_integration,
|
|
239
|
+
shared_lock=self.shared_lock,
|
|
230
240
|
)
|
|
231
241
|
else:
|
|
232
242
|
self.tester_process_manager = ChancyTesterProcessesManager(
|
|
@@ -266,6 +276,7 @@ class SystemLauncher(SystemBase):
|
|
|
266
276
|
daemon=True,
|
|
267
277
|
generate_output_queue=False,
|
|
268
278
|
generate_configuration_queue=False,
|
|
279
|
+
shared_lock=self.shared_lock,
|
|
269
280
|
)
|
|
270
281
|
self.migrator_process_manager = MigratorProcessesManager(
|
|
271
282
|
manager=self.manager,
|
|
@@ -273,6 +284,7 @@ class SystemLauncher(SystemBase):
|
|
|
273
284
|
daemon=True,
|
|
274
285
|
generate_input_queue=False,
|
|
275
286
|
generate_output_queue=False,
|
|
287
|
+
shared_lock=self.shared_lock,
|
|
276
288
|
)
|
|
277
289
|
|
|
278
290
|
if PyFunceble.storage.CONFIGURATION.cli_testing.mining:
|
|
@@ -287,6 +299,7 @@ class SystemLauncher(SystemBase):
|
|
|
287
299
|
spread_stop_signal=False,
|
|
288
300
|
spread_wait_signal=True,
|
|
289
301
|
delay_shutdown=PyFunceble.storage.CONFIGURATION.cli_testing.mining,
|
|
302
|
+
shared_lock=self.shared_lock,
|
|
290
303
|
)
|
|
291
304
|
|
|
292
305
|
self.tester_process_manager.add_dependent_manager(
|
PyFunceble/cli/utils/__init__.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/utils/sort.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/utils/stdout.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/cli/utils/testing.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
|
@@ -51,7 +51,7 @@ License:
|
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
import os
|
|
54
|
-
from typing import List, Optional, Union
|
|
54
|
+
from typing import Any, List, Optional, Union
|
|
55
55
|
|
|
56
56
|
from sqlalchemy.orm import Session
|
|
57
57
|
|
|
@@ -92,12 +92,15 @@ def get_testing_mode() -> str:
|
|
|
92
92
|
|
|
93
93
|
def get_continue_dataset_object(
|
|
94
94
|
db_session: Optional[Session] = None,
|
|
95
|
+
shared_lock: Optional[Any] = None,
|
|
95
96
|
) -> Union[DatasetBase, CSVDatasetBase, DBDatasetBase]:
|
|
96
97
|
"""
|
|
97
98
|
Provides the continue object to work with.
|
|
98
99
|
|
|
99
100
|
:param db_session:
|
|
100
101
|
A database session to use.
|
|
102
|
+
:param shared_lock:
|
|
103
|
+
Optional, The shared lock to use to access shared resources.
|
|
101
104
|
|
|
102
105
|
:raise ValueError:
|
|
103
106
|
When the given database type is unkown.
|
|
@@ -106,7 +109,7 @@ def get_continue_dataset_object(
|
|
|
106
109
|
result = None
|
|
107
110
|
|
|
108
111
|
if PyFunceble.storage.CONFIGURATION.cli_testing.db_type in "csv":
|
|
109
|
-
result = CSVContinueDataset()
|
|
112
|
+
result = CSVContinueDataset(shared_lock=shared_lock)
|
|
110
113
|
elif PyFunceble.storage.CONFIGURATION.cli_testing.db_type in (
|
|
111
114
|
"mariadb",
|
|
112
115
|
"mysql",
|
|
@@ -129,12 +132,15 @@ def get_continue_dataset_object(
|
|
|
129
132
|
|
|
130
133
|
def get_inactive_dataset_object(
|
|
131
134
|
db_session: Optional[Session] = None,
|
|
135
|
+
shared_lock: Optional[Any] = None,
|
|
132
136
|
) -> Union[DatasetBase, CSVDatasetBase, DBDatasetBase]:
|
|
133
137
|
"""
|
|
134
138
|
Provides the inactive object to work with.
|
|
135
139
|
|
|
136
140
|
:param db_session:
|
|
137
141
|
A database session to use.
|
|
142
|
+
:param shared_lock:
|
|
143
|
+
An optional shared lock to use.
|
|
138
144
|
|
|
139
145
|
:raise ValueError:
|
|
140
146
|
When the given database type is unkown.
|
|
@@ -143,7 +149,7 @@ def get_inactive_dataset_object(
|
|
|
143
149
|
result = None
|
|
144
150
|
|
|
145
151
|
if PyFunceble.storage.CONFIGURATION.cli_testing.db_type == "csv":
|
|
146
|
-
result = CSVInactiveDataset()
|
|
152
|
+
result = CSVInactiveDataset(shared_lock=shared_lock)
|
|
147
153
|
elif PyFunceble.storage.CONFIGURATION.cli_testing.db_type in (
|
|
148
154
|
"mariadb",
|
|
149
155
|
"mysql",
|
PyFunceble/cli/utils/version.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/config/__init__.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|
PyFunceble/config/compare.py
CHANGED
|
@@ -35,7 +35,7 @@ License:
|
|
|
35
35
|
::
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025 Nissar Chababy
|
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024, 2025, 2026 Nissar Chababy
|
|
39
39
|
|
|
40
40
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
you may not use this file except in compliance with the License.
|