├── .coveragerc ├── .github └── workflows │ ├── publish.yaml │ └── run-python-tests.yaml ├── .gitignore ├── .pre-commit-config.yaml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── documentation ├── .readthedocs.yaml ├── index.md └── mkdocs.yaml ├── hatch.toml ├── pyproject.toml ├── pytest.ini ├── requirements.txt ├── ruff.toml ├── src └── hdx │ ├── api │ ├── __init__.py │ ├── configuration.py │ ├── hdx_base_configuration.yaml │ ├── locations.py │ ├── remotehdx.py │ └── utilities │ │ ├── __init__.py │ │ ├── dataset_title_helper.py │ │ ├── date_helper.py │ │ ├── filestore_helper.py │ │ ├── hdx_error_handler.py │ │ ├── hdx_state.py │ │ └── size_hash.py │ ├── data │ ├── __init__.py │ ├── dataset.py │ ├── hdx_datasource_topline.yaml │ ├── hdxobject.py │ ├── indicator_resource_view_template.yaml │ ├── organization.py │ ├── resource.py │ ├── resource_matcher.py │ ├── resource_view.py │ ├── showcase.py │ ├── user.py │ └── vocabulary.py │ └── facades │ ├── __init__.py │ ├── infer_arguments.py │ ├── keyword_arguments.py │ └── simple.py ├── tests ├── __init__.py ├── fixtures │ ├── Accepted_Tags.csv │ ├── CKAN │ │ └── hdx_dataset_static.yaml │ ├── Tag_Mapping.csv │ ├── Tag_Mapping_ChainRuleError.csv │ ├── config │ │ ├── empty.yaml │ │ ├── hdx_base_config.json │ │ ├── hdx_base_config.yaml │ │ ├── hdx_config.json │ │ ├── hdx_config.yaml │ │ ├── hdx_dataset_static.json │ │ ├── hdx_dataset_static.yaml │ │ ├── hdx_datasource_topline.json │ │ ├── hdx_datasource_topline.yaml │ │ ├── hdx_email_configuration.json │ │ ├── hdx_email_configuration.yaml │ │ ├── hdx_missing_site_config.json │ │ ├── hdx_organization_static.json │ │ ├── hdx_organization_static.yaml │ │ ├── hdx_resource_static.json │ │ ├── hdx_resource_static.yaml │ │ ├── hdx_resource_view_static.json │ │ ├── hdx_resource_view_static.yaml │ │ ├── hdx_showcase_static.json │ │ ├── hdx_showcase_static.yaml │ │ ├── hdx_user_static.json │ │ ├── hdx_user_static.yaml │ │ ├── hdx_vocabulary_static.json │ │ ├── hdx_vocabulary_static.yaml │ │ ├── project_configuration.json │ │ ├── project_configuration.yaml │ │ ├── user_agent_config.yaml │ │ ├── user_agent_config2.yaml │ │ ├── user_agent_config3.yaml │ │ └── user_agent_config_wrong.yaml │ ├── dataset_search_results.yaml │ ├── download_gen_resource │ │ ├── conflict_data_alg.csv │ │ ├── min_qc_conflict_data_alg.csv │ │ ├── qc_conflict_data_alg.csv │ │ ├── test_data_no_data.csv │ │ └── test_data_no_years.csv │ ├── empty.csv │ ├── gen_resource │ │ ├── conflict_data_alg.csv │ │ ├── min_qc_conflict_data_alg.csv │ │ ├── qc_conflict_data_alg.csv │ │ ├── test_data_no_data.csv │ │ └── test_data_no_years.csv │ ├── organization_show_results.yaml │ ├── qc_from_rows │ │ ├── qc_conflict_data_alg.csv │ │ └── qc_conflict_data_alg_one_col.csv │ ├── resource_formats.json │ ├── showcase_all_search_results.yaml │ ├── size_hash │ │ └── ACLED-All-Africa-File_20170101-to-20170708.xlsx │ ├── state │ │ ├── analysis_dates.txt │ │ └── last_build_date.txt │ ├── test_data.csv │ ├── test_data.zip │ ├── update_dataset_resources │ │ ├── dem_data_zwe.csv │ │ ├── dem_indicatorlist_zwe.csv │ │ ├── expected_resources_to_update.json │ │ ├── opri_data_zwe.csv │ │ ├── opri_indicatorlist_zwe.csv │ │ ├── opri_metadata_zwe.csv │ │ ├── qc_sdg_data_zwe.csv │ │ ├── sdg_data_zwe.csv │ │ ├── sdg_indicatorlist_zwe.csv │ │ ├── sdg_metadata_zwe.csv │ │ ├── unesco_dataset.json │ │ └── unesco_update_dataset.json │ └── update_logic │ │ ├── update_logic_resources.yaml │ │ └── update_logic_resources_new.yaml └── hdx │ ├── __init__.py │ ├── api │ ├── __init__.py │ ├── test_ckan.py │ ├── test_configuration.py │ ├── test_locations.py │ └── utilities │ │ ├── __init__.py │ │ ├── test_dataset_title_helper.py │ │ ├── test_filestore_helper.py │ │ ├── test_hdx_error_handler.py │ │ ├── test_hdx_state.py │ │ └── test_size_hash.py │ ├── conftest.py │ ├── data │ ├── __init__.py │ ├── test_dataset_add_hapi_error.py │ ├── test_dataset_core.py │ ├── test_dataset_noncore.py │ ├── test_dataset_resource_generation.py │ ├── test_organization.py │ ├── test_resource.py │ ├── test_resource_view.py │ ├── test_showcase.py │ ├── test_update_dataset_resources.py │ ├── test_update_logic.py │ ├── test_user.py │ └── test_vocabulary.py │ └── facades │ ├── __init__.py │ ├── test_infer_arguments.py │ ├── test_keyword_arguments.py │ └── test_simple.py └── workingexample ├── my_code.py ├── my_resource.csv ├── my_resource.xlsx └── run.py /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/.coveragerc -------------------------------------------------------------------------------- /.github/workflows/publish.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/.github/workflows/publish.yaml -------------------------------------------------------------------------------- /.github/workflows/run-python-tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/.github/workflows/run-python-tests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/README.md -------------------------------------------------------------------------------- /documentation/.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/documentation/.readthedocs.yaml -------------------------------------------------------------------------------- /documentation/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/documentation/index.md -------------------------------------------------------------------------------- /documentation/mkdocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/documentation/mkdocs.yaml -------------------------------------------------------------------------------- /hatch.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/hatch.toml -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/pytest.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/requirements.txt -------------------------------------------------------------------------------- /ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/ruff.toml -------------------------------------------------------------------------------- /src/hdx/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/__init__.py -------------------------------------------------------------------------------- /src/hdx/api/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/configuration.py -------------------------------------------------------------------------------- /src/hdx/api/hdx_base_configuration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/hdx_base_configuration.yaml -------------------------------------------------------------------------------- /src/hdx/api/locations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/locations.py -------------------------------------------------------------------------------- /src/hdx/api/remotehdx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/remotehdx.py -------------------------------------------------------------------------------- /src/hdx/api/utilities/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/hdx/api/utilities/dataset_title_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/utilities/dataset_title_helper.py -------------------------------------------------------------------------------- /src/hdx/api/utilities/date_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/utilities/date_helper.py -------------------------------------------------------------------------------- /src/hdx/api/utilities/filestore_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/utilities/filestore_helper.py -------------------------------------------------------------------------------- /src/hdx/api/utilities/hdx_error_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/utilities/hdx_error_handler.py -------------------------------------------------------------------------------- /src/hdx/api/utilities/hdx_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/utilities/hdx_state.py -------------------------------------------------------------------------------- /src/hdx/api/utilities/size_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/api/utilities/size_hash.py -------------------------------------------------------------------------------- /src/hdx/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/hdx/data/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/dataset.py -------------------------------------------------------------------------------- /src/hdx/data/hdx_datasource_topline.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/hdx_datasource_topline.yaml -------------------------------------------------------------------------------- /src/hdx/data/hdxobject.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/hdxobject.py -------------------------------------------------------------------------------- /src/hdx/data/indicator_resource_view_template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/indicator_resource_view_template.yaml -------------------------------------------------------------------------------- /src/hdx/data/organization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/organization.py -------------------------------------------------------------------------------- /src/hdx/data/resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/resource.py -------------------------------------------------------------------------------- /src/hdx/data/resource_matcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/resource_matcher.py -------------------------------------------------------------------------------- /src/hdx/data/resource_view.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/resource_view.py -------------------------------------------------------------------------------- /src/hdx/data/showcase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/showcase.py -------------------------------------------------------------------------------- /src/hdx/data/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/user.py -------------------------------------------------------------------------------- /src/hdx/data/vocabulary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/data/vocabulary.py -------------------------------------------------------------------------------- /src/hdx/facades/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/hdx/facades/infer_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/facades/infer_arguments.py -------------------------------------------------------------------------------- /src/hdx/facades/keyword_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/facades/keyword_arguments.py -------------------------------------------------------------------------------- /src/hdx/facades/simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/src/hdx/facades/simple.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/Accepted_Tags.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/Accepted_Tags.csv -------------------------------------------------------------------------------- /tests/fixtures/CKAN/hdx_dataset_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/CKAN/hdx_dataset_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/Tag_Mapping.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/Tag_Mapping.csv -------------------------------------------------------------------------------- /tests/fixtures/Tag_Mapping_ChainRuleError.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/Tag_Mapping_ChainRuleError.csv -------------------------------------------------------------------------------- /tests/fixtures/config/empty.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_base_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_base_config.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_base_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_base_config.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_config.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_config.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_dataset_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_dataset_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_dataset_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_dataset_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_datasource_topline.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_datasource_topline.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_datasource_topline.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_datasource_topline.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_email_configuration.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_email_configuration.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_email_configuration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_email_configuration.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_missing_site_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_missing_site_config.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_organization_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_organization_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_organization_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_organization_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_resource_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_resource_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_resource_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_resource_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_resource_view_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_resource_view_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_resource_view_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_resource_view_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_showcase_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_showcase_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_showcase_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_showcase_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_user_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_user_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_user_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_user_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_vocabulary_static.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_vocabulary_static.json -------------------------------------------------------------------------------- /tests/fixtures/config/hdx_vocabulary_static.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/hdx_vocabulary_static.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/project_configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "my_param": "abc" 3 | } 4 | -------------------------------------------------------------------------------- /tests/fixtures/config/project_configuration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/project_configuration.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/user_agent_config.yaml: -------------------------------------------------------------------------------- 1 | preprefix: lala 2 | user_agent: myua 3 | -------------------------------------------------------------------------------- /tests/fixtures/config/user_agent_config2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/user_agent_config2.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/user_agent_config3.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/config/user_agent_config3.yaml -------------------------------------------------------------------------------- /tests/fixtures/config/user_agent_config_wrong.yaml: -------------------------------------------------------------------------------- 1 | lala: myuseragent 2 | -------------------------------------------------------------------------------- /tests/fixtures/dataset_search_results.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/dataset_search_results.yaml -------------------------------------------------------------------------------- /tests/fixtures/download_gen_resource/conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/download_gen_resource/conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/download_gen_resource/min_qc_conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/download_gen_resource/min_qc_conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/download_gen_resource/qc_conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/download_gen_resource/qc_conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/download_gen_resource/test_data_no_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/download_gen_resource/test_data_no_data.csv -------------------------------------------------------------------------------- /tests/fixtures/download_gen_resource/test_data_no_years.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/download_gen_resource/test_data_no_years.csv -------------------------------------------------------------------------------- /tests/fixtures/empty.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/gen_resource/conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/gen_resource/conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/gen_resource/min_qc_conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/gen_resource/min_qc_conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/gen_resource/qc_conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/gen_resource/qc_conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/gen_resource/test_data_no_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/gen_resource/test_data_no_data.csv -------------------------------------------------------------------------------- /tests/fixtures/gen_resource/test_data_no_years.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/gen_resource/test_data_no_years.csv -------------------------------------------------------------------------------- /tests/fixtures/organization_show_results.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/organization_show_results.yaml -------------------------------------------------------------------------------- /tests/fixtures/qc_from_rows/qc_conflict_data_alg.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/qc_from_rows/qc_conflict_data_alg.csv -------------------------------------------------------------------------------- /tests/fixtures/qc_from_rows/qc_conflict_data_alg_one_col.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/qc_from_rows/qc_conflict_data_alg_one_col.csv -------------------------------------------------------------------------------- /tests/fixtures/resource_formats.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/resource_formats.json -------------------------------------------------------------------------------- /tests/fixtures/showcase_all_search_results.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/showcase_all_search_results.yaml -------------------------------------------------------------------------------- /tests/fixtures/size_hash/ACLED-All-Africa-File_20170101-to-20170708.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/size_hash/ACLED-All-Africa-File_20170101-to-20170708.xlsx -------------------------------------------------------------------------------- /tests/fixtures/state/analysis_dates.txt: -------------------------------------------------------------------------------- 1 | DEFAULT=2020-09-23 2 | -------------------------------------------------------------------------------- /tests/fixtures/state/last_build_date.txt: -------------------------------------------------------------------------------- 1 | 2020-09-23 2 | -------------------------------------------------------------------------------- /tests/fixtures/test_data.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/test_data.csv -------------------------------------------------------------------------------- /tests/fixtures/test_data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/test_data.zip -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/dem_data_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/dem_data_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/dem_indicatorlist_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/dem_indicatorlist_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/expected_resources_to_update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/expected_resources_to_update.json -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/opri_data_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/opri_data_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/opri_indicatorlist_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/opri_indicatorlist_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/opri_metadata_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/opri_metadata_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/qc_sdg_data_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/qc_sdg_data_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/sdg_data_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/sdg_data_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/sdg_indicatorlist_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/sdg_indicatorlist_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/sdg_metadata_zwe.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/sdg_metadata_zwe.csv -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/unesco_dataset.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/unesco_dataset.json -------------------------------------------------------------------------------- /tests/fixtures/update_dataset_resources/unesco_update_dataset.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_dataset_resources/unesco_update_dataset.json -------------------------------------------------------------------------------- /tests/fixtures/update_logic/update_logic_resources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_logic/update_logic_resources.yaml -------------------------------------------------------------------------------- /tests/fixtures/update_logic/update_logic_resources_new.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/fixtures/update_logic/update_logic_resources_new.yaml -------------------------------------------------------------------------------- /tests/hdx/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/__init__.py -------------------------------------------------------------------------------- /tests/hdx/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/hdx/api/test_ckan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/test_ckan.py -------------------------------------------------------------------------------- /tests/hdx/api/test_configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/test_configuration.py -------------------------------------------------------------------------------- /tests/hdx/api/test_locations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/test_locations.py -------------------------------------------------------------------------------- /tests/hdx/api/utilities/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/hdx/api/utilities/test_dataset_title_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/utilities/test_dataset_title_helper.py -------------------------------------------------------------------------------- /tests/hdx/api/utilities/test_filestore_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/utilities/test_filestore_helper.py -------------------------------------------------------------------------------- /tests/hdx/api/utilities/test_hdx_error_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/utilities/test_hdx_error_handler.py -------------------------------------------------------------------------------- /tests/hdx/api/utilities/test_hdx_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/utilities/test_hdx_state.py -------------------------------------------------------------------------------- /tests/hdx/api/utilities/test_size_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/api/utilities/test_size_hash.py -------------------------------------------------------------------------------- /tests/hdx/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/conftest.py -------------------------------------------------------------------------------- /tests/hdx/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/hdx/data/test_dataset_add_hapi_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_dataset_add_hapi_error.py -------------------------------------------------------------------------------- /tests/hdx/data/test_dataset_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_dataset_core.py -------------------------------------------------------------------------------- /tests/hdx/data/test_dataset_noncore.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_dataset_noncore.py -------------------------------------------------------------------------------- /tests/hdx/data/test_dataset_resource_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_dataset_resource_generation.py -------------------------------------------------------------------------------- /tests/hdx/data/test_organization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_organization.py -------------------------------------------------------------------------------- /tests/hdx/data/test_resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_resource.py -------------------------------------------------------------------------------- /tests/hdx/data/test_resource_view.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_resource_view.py -------------------------------------------------------------------------------- /tests/hdx/data/test_showcase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_showcase.py -------------------------------------------------------------------------------- /tests/hdx/data/test_update_dataset_resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_update_dataset_resources.py -------------------------------------------------------------------------------- /tests/hdx/data/test_update_logic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_update_logic.py -------------------------------------------------------------------------------- /tests/hdx/data/test_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_user.py -------------------------------------------------------------------------------- /tests/hdx/data/test_vocabulary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/data/test_vocabulary.py -------------------------------------------------------------------------------- /tests/hdx/facades/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/facades/__init__.py -------------------------------------------------------------------------------- /tests/hdx/facades/test_infer_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/facades/test_infer_arguments.py -------------------------------------------------------------------------------- /tests/hdx/facades/test_keyword_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/facades/test_keyword_arguments.py -------------------------------------------------------------------------------- /tests/hdx/facades/test_simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/tests/hdx/facades/test_simple.py -------------------------------------------------------------------------------- /workingexample/my_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/workingexample/my_code.py -------------------------------------------------------------------------------- /workingexample/my_resource.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,2,3 3 | -------------------------------------------------------------------------------- /workingexample/my_resource.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/workingexample/my_resource.xlsx -------------------------------------------------------------------------------- /workingexample/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCHA-DAP/hdx-python-api/HEAD/workingexample/run.py --------------------------------------------------------------------------------