PyFunceble-dev 4.2.6__py3-none-any.whl → 4.2.9__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 +17 -10
- PyFunceble/checker/availability/domain.py +1 -2
- PyFunceble/checker/availability/domain_and_ip.py +1 -1
- PyFunceble/checker/availability/extras/__init__.py +1 -1
- PyFunceble/checker/availability/extras/base.py +2 -3
- 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 +2 -2
- PyFunceble/checker/availability/extras/subject_switch.py +1 -1
- PyFunceble/checker/availability/ip.py +1 -2
- PyFunceble/checker/availability/params.py +1 -1
- PyFunceble/checker/availability/status.py +1 -1
- PyFunceble/checker/availability/url.py +1 -2
- 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 -2
- PyFunceble/checker/reputation/domain.py +1 -2
- PyFunceble/checker/reputation/domain_and_ip.py +1 -1
- PyFunceble/checker/reputation/ip.py +1 -2
- PyFunceble/checker/reputation/params.py +1 -1
- PyFunceble/checker/reputation/status.py +1 -1
- PyFunceble/checker/reputation/url.py +1 -2
- 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 +7 -3
- PyFunceble/checker/syntax/status.py +2 -1
- PyFunceble/checker/syntax/subdomain.py +4 -2
- PyFunceble/checker/syntax/url.py +1 -2
- 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/travis_ci.py +1 -1
- PyFunceble/cli/continuous_integration/utils.py +1 -1
- PyFunceble/cli/credential_loader.py +4 -4
- 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 +1 -1
- PyFunceble/cli/execution_time.py +1 -1
- PyFunceble/cli/facility.py +1 -1
- PyFunceble/cli/factory.py +1 -1
- PyFunceble/cli/file_preloader.py +4 -4
- 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 -2
- 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 +4 -4
- 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 +4 -5
- PyFunceble/cli/scripts/public_suffix.py +1 -1
- PyFunceble/cli/storage.py +6 -4
- 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 +2 -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 +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/35c79626ecb9_fix_some_columns.py +1 -0
- PyFunceble/data/alembic/mysql/versions/3a4c55a9320d_add_continue_table.py +1 -0
- PyFunceble/data/alembic/mysql/versions/3d6f4a33cdb2_add_inactive_table.py +1 -0
- PyFunceble/data/alembic/mysql/versions/45713fea8097_deletion_uneeded_columns_from_whois_.py +1 -0
- PyFunceble/data/alembic/mysql/versions/459a0d7b8f09_add_idna_subject_column_into_whois.py +1 -0
- PyFunceble/data/alembic/mysql/versions/6f4729deaf03_delete_inactive_source_column.py +1 -0
- PyFunceble/data/alembic/mysql/versions/7bcf7fa64ba1_rename_created_to_created_at_and.py +1 -0
- PyFunceble/data/alembic/mysql/versions/83ada95132bf_delete_the_file_table.py +1 -0
- PyFunceble/data/alembic/mysql/versions/912bbcb77a6c_add_registrar_column.py +1 -0
- PyFunceble/data/alembic/mysql/versions/95dc17ddd729_introduction_of_the_session_id_column.py +1 -0
- PyFunceble/data/alembic/mysql/versions/__init__.py +1 -1
- PyFunceble/data/alembic/mysql/versions/ade87195b0a0_base.py +1 -0
- PyFunceble/data/alembic/mysql/versions/bef7bcaac3f2_make_id_a_bigint.py +1 -0
- PyFunceble/data/alembic/mysql/versions/d8893cd406db_allow_whois_record_to_be_empty_null.py +1 -0
- PyFunceble/data/alembic/mysql/versions/e04e8301d1a2_deletion_of_the_mined_table.py +1 -0
- 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/alembic/postgresql/versions/a32ac5d66eee_initial_version.py +1 -0
- 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 +51 -9
- 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/collection.py +222 -43
- 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/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 +7 -7
- 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 +2 -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 +5 -3
- 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.2.6.dist-info → PyFunceble_dev-4.2.9.dist-info}/LICENSE +1 -1
- {PyFunceble_dev-4.2.6.dist-info → PyFunceble_dev-4.2.9.dist-info}/METADATA +46 -46
- PyFunceble_dev-4.2.9.dist-info/RECORD +282 -0
- {PyFunceble_dev-4.2.6.dist-info → PyFunceble_dev-4.2.9.dist-info}/WHEEL +1 -1
- PyFunceble_dev-4.2.6.dist-info/RECORD +0 -282
- {PyFunceble_dev-4.2.6.dist-info → PyFunceble_dev-4.2.9.dist-info}/entry_points.txt +0 -0
- {PyFunceble_dev-4.2.6.dist-info → PyFunceble_dev-4.2.9.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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/database/__init__.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/database/session.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/__init__.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/base.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/csv_base.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/db_base.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/iana.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/sql_base.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/user_agent.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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,9 @@ License:
|
|
51
51
|
"""
|
52
52
|
|
53
53
|
import os
|
54
|
+
import secrets
|
54
55
|
from typing import Any
|
56
|
+
from warnings import warn
|
55
57
|
|
56
58
|
import PyFunceble.storage
|
57
59
|
from PyFunceble.dataset.base import DatasetBase
|
@@ -66,8 +68,8 @@ class UserAgentDataset(DatasetBase):
|
|
66
68
|
STORAGE_INDEX: str = "USER_AGENTS"
|
67
69
|
DOWNLOADER: UserAgentsDownloader = UserAgentsDownloader()
|
68
70
|
|
69
|
-
|
70
|
-
|
71
|
+
preferred_browser: str = "chrome"
|
72
|
+
preferred_platform: str = "linux"
|
71
73
|
|
72
74
|
def __init__(self) -> None:
|
73
75
|
self.source_file = os.path.join(
|
@@ -76,10 +78,18 @@ class UserAgentDataset(DatasetBase):
|
|
76
78
|
)
|
77
79
|
|
78
80
|
def __contains__(self, value: Any) -> bool:
|
81
|
+
content = self.get_content()
|
82
|
+
|
83
|
+
if "@modern" in content:
|
84
|
+
return value in self.get_content()["@modern"]
|
79
85
|
return value in self.get_content()
|
80
86
|
|
81
87
|
def __getattr__(self, value: Any) -> dict:
|
82
88
|
if value in self:
|
89
|
+
content = self.get_content()
|
90
|
+
|
91
|
+
if "@modern" in content:
|
92
|
+
return self.get_content()["@modern"][value]
|
83
93
|
return self.get_content()[value]
|
84
94
|
|
85
95
|
return dict() # pylint: disable=use-dict-literal
|
@@ -87,11 +97,11 @@ class UserAgentDataset(DatasetBase):
|
|
87
97
|
def __getitem__(self, value: Any) -> dict:
|
88
98
|
return self.__getattr__(value)
|
89
99
|
|
90
|
-
def
|
100
|
+
def set_preferred(
|
91
101
|
self, browser_short_name: str, platform: str
|
92
102
|
) -> "UserAgentDataset":
|
93
103
|
"""
|
94
|
-
Sets the
|
104
|
+
Sets the preferred browser to work with.
|
95
105
|
|
96
106
|
:param browser_short_name:
|
97
107
|
The name of the browser to select.
|
@@ -110,11 +120,38 @@ class UserAgentDataset(DatasetBase):
|
|
110
120
|
f"({platform!r}) is not supported."
|
111
121
|
)
|
112
122
|
|
113
|
-
self.
|
114
|
-
self.
|
123
|
+
self.preferred_browser = browser_short_name.lower()
|
124
|
+
self.preferred_platform = platform.lower()
|
115
125
|
|
116
126
|
return self
|
117
127
|
|
128
|
+
# @deprecated("TODO: Soon we should be able to do this...")
|
129
|
+
def set_prefered(
|
130
|
+
self, browser_short_name: str, platform: str
|
131
|
+
) -> "UserAgentDataset":
|
132
|
+
"""
|
133
|
+
Sets the preferred browser to work with.
|
134
|
+
|
135
|
+
:param browser_short_name:
|
136
|
+
The name of the browser to select.
|
137
|
+
:pram platform:
|
138
|
+
The name of the platform to select.
|
139
|
+
|
140
|
+
:raise TypeError:
|
141
|
+
When the given :code:`name` is not a :py:class:`str`.
|
142
|
+
:raise ValueError:
|
143
|
+
When the given :code:`value` is not supported.
|
144
|
+
"""
|
145
|
+
|
146
|
+
warn(
|
147
|
+
"The set_prefered() method is deprecated and will be removed in future "
|
148
|
+
" releases. Please consider using the set_preferred() method instead.",
|
149
|
+
DeprecationWarning,
|
150
|
+
stacklevel=2,
|
151
|
+
)
|
152
|
+
|
153
|
+
return self.set_preferred(browser_short_name, platform)
|
154
|
+
|
118
155
|
def is_supported_browser(self, browser_short_name: str) -> bool:
|
119
156
|
"""
|
120
157
|
Checks if the given browser is supported.
|
@@ -178,9 +215,14 @@ class UserAgentDataset(DatasetBase):
|
|
178
215
|
):
|
179
216
|
return PyFunceble.storage.CONFIGURATION.user_agent.custom
|
180
217
|
|
181
|
-
self.
|
218
|
+
self.set_preferred(
|
182
219
|
PyFunceble.storage.CONFIGURATION.user_agent.browser,
|
183
220
|
PyFunceble.storage.CONFIGURATION.user_agent.platform,
|
184
221
|
)
|
185
222
|
|
186
|
-
|
223
|
+
result = self[self.preferred_browser][self.preferred_platform]
|
224
|
+
|
225
|
+
if isinstance(result, (list, tuple)):
|
226
|
+
return secrets.choice(result)
|
227
|
+
|
228
|
+
return result
|
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/whois/base.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/whois/csv.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/dataset/whois/sql.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/downloader/base.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
39
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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/downloader/iana.py
CHANGED
@@ -35,7 +35,7 @@ License:
|
|
35
35
|
::
|
36
36
|
|
37
37
|
|
38
|
-
Copyright 2017, 2018, 2019, 2020, 2022, 2023 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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 Nissar Chababy
|
38
|
+
Copyright 2017, 2018, 2019, 2020, 2022, 2023, 2024 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.
|