hdx-python-scraper 2.6.1__tar.gz → 2.6.3__tar.gz
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.
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/PKG-INFO +1 -1
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/_version.py +2 -2
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/hapi_admins.py +23 -9
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/sector_configuration.yaml +1 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/download-global-pcode-lengths.csv +80 -80
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/download-global-pcodes-adm-1-2.csv +4533 -3937
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/test_hapi_admins.py +24 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.config/coveragerc +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.config/pre-commit-config.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.config/pytest.ini +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.config/ruff.toml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.github/workflows/publish.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.github/workflows/run-python-tests.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/.gitignore +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/CONTRIBUTING.md +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/LICENSE +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/README.md +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/documentation/.readthedocs.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/documentation/main.md +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/documentation/pydoc-markdown.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/pyproject.toml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/requirements.txt +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/base_scraper.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/outputs/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/outputs/base.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/outputs/excelfile.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/outputs/googlesheets.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/outputs/json.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/runner.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/scrapers/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/scrapers/aggregator.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/scrapers/configurable_scraper.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/scrapers/resource_downloader.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/scrapers/rowparser.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/scrapers/timeseries.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/fallbacks.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/lookup.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/org_type.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/org_type_configuration.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/reader.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/region_lookup.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/sector.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/sources.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/src/hdx/scraper/framework/utilities/writer.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/config/project_configuration.yaml +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/access_2pacx-1vrszjzuyvt9i-mkrq2hbxrul2lx2vihkthqm-lae8nyhqty70zqtcufs3pxbhzgat1l2bkoa4-daoap-pub-gid-574237756-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/additional-json.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/altworldindata_data-tagger-match-all-on-tagger-01-header-location-tagger-01-tag.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/casualties_2pacx-1vqidedbzz0ehrc0b4fswip14r7mdtu1mpmwakuxupelsah2awcurkgalfduhjvyjul8vzzat3r1b5qg-pub-gid-0-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/cbpf-allocations-and-contributions.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/cbpf2-allocations-and-contributions.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/cerf-covid-19-allocations.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/cerf2-covid-19-allocations.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/cerf2_global_download-full-pfmb-allocations.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/cerf_global_download-full-pfmb-allocations.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/covax_2pacx-1vtvzu79pptfaa2syevoqfyrrjy63djwitqu0ffbxiqczoun9k9timwmrvfgg1rbsnlmgyugzseiaye2-pub-gid-992438980-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/covidtests_data-owid-covid-data.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/education_closures_broken.xls +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/education_closures_school_closures.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/education_enrolment_enrollment_data.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ethiopia-drought-related-key-figures.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ethiopia-pin-targeted-reached-by-location-and-cluster.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ethiopia_drought_affected_targeted_reached_by_cluster.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/fallbacks.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/gam_download-unicef-who-wb-global-expanded-databases-severe-wasting.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/gam_other_download-unicef-who-wb-global-expanded-databases-severe-wasting.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/global-coordination-groups-beta.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/global-school-closures-covid19.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/hno_2017_sahel_nutrition.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/hno_2017_sahel_people_in_need.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/idmc-internally-displaced-persons-idps.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/idps_download-displacement-data.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/idps_override_population-widget-id-264111-geo-id-693-population-group-54074999.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/idps_somalia_som_unhcr_prmn_displacement_dataset.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ipc_somalia_som_food_insecurity_oct_dec2022_projection.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/kenya-drought-related-key-figures.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/kenya-pin-targeted-reached-by-location-and-cluster.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/kenya_drought_affected_targeted_reached_by_cluster.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/key_figures_2pacx-1vrppqx8jtkkkrckmzfncmmtfecvcpkbp9pdhs1sqtuyacmbsx8tlaxpgblfce-lcehukregguxja-4s-pub-gid-0-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/key_figures_2pacx-1vrppqx8jtkkkrckmzfncmmtfecvcpkbp9pdhs1sqtuyacmbsx8tlaxpgblfce-lcehukregguxja-4s-pub-gid-1275038715-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/key_figures_2pacx-1vrppqx8jtkkkrckmzfncmmtfecvcpkbp9pdhs1sqtuyacmbsx8tlaxpgblfce-lcehukregguxja-4s-pub-gid-2015311116-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/key_figures_eth_2pacx-1vrppqx8jtkkkrckmzfncmmtfecvcpkbp9pdhs1sqtuyacmbsx8tlaxpgblfce-lcehukregguxja-4s-pub-gid-2015311116-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/key_figures_ken_2pacx-1vrppqx8jtkkkrckmzfncmmtfecvcpkbp9pdhs1sqtuyacmbsx8tlaxpgblfce-lcehukregguxja-4s-pub-gid-1275038715-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/key_figures_som_2pacx-1vrppqx8jtkkkrckmzfncmmtfecvcpkbp9pdhs1sqtuyacmbsx8tlaxpgblfce-lcehukregguxja-4s-pub-gid-0-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/org_type_organization_types_beta_csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/organization-types-beta.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ourworldindata_data-tagger-match-all-on-tagger-01-header-location-tagger-01-tag.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ourworldindata_other_data-tagger-match-all-on-tagger-01-header-location-tagger-01-tag.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/oxcgrt_oxcgrt_csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/oxford-covid-19-government-response-tracker.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/population.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/population_indicator-sp-pop-downloadformat-excel-dataformat-list-totl.xls +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/population_other_indicator-sp-pop-downloadformat-excel-dataformat-list-totl.xls +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/regions_tbl_regcov_2020_ocha.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/resource_downloader_xlsx_ukr_border_crossings_090622.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/sadd-countries-to-include.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/sadd_covid-data-dataset-fullvars-extype-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/sahel-humanitarian-needs-overview.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/sahel-humanitarian-needs-overview_prefix.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/sector_global_coordination_groups_beta_csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/somalia-acute-food-insecurity-country-data.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/somalia-drought-related-key-figures.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/somalia-internally-displaced-persons-idps.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/somalia-pin-targeted-reached-by-location-and-cluster.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/somalia_drought_affected_targeted_reached_by_cluster.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/timeseries_casualties_2pacx-1vqidedbzz0ehrc0b4fswip14r7mdtu1mpmwakuxupelsah2awcurkgalfduhjvyjul8vzzat3r1b5qg-pub-gid-0-single-true-output-csv.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/total-covid-19-tests-performed-by-country.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ukraine-border-crossings.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/ukraine-who-does-what-where-3w.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/unocha-office-locations.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/who_national2_who-covid-19-global-data.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/who_national3_who-covid-19-global-data.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/who_national_who-covid-19-global-data.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/whowhatwhere_afg_3w_data.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/input/whowhatwhere_notags_3w_data.csv +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/test_output.xlsx +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/test_scraper_all.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/test_scraper_other.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/fixtures/test_scraper_population.json +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/conftest.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/custom/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/custom/affected_targeted_reached.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/custom/education_closures.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/custom/education_enrolment.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/custom/test_custom.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/outputs/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/outputs/test_output.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_aggregation.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_appenddata.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_global.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_multipleurls.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_national.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_regionaltoplevel.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_resource_downloaders.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_subnational.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/test_timeseries.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/scrapers/unhcr_myanmar_idps.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/test_runner.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/__init__.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/test_lookup.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/test_readers.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/test_regionlookup.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/test_sources.py +0 -0
- {hdx_python_scraper-2.6.1 → hdx_python_scraper-2.6.3}/tests/hdx/scraper/framework/utilities/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hdx-python-scraper
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.3
|
|
4
4
|
Summary: HDX Python scraper utilities to assemble data from multiple sources
|
|
5
5
|
Project-URL: Homepage, https://github.com/OCHA-DAP/hdx-python-scraper
|
|
6
6
|
Author-email: Michael Rans <rans@email.com>
|
|
@@ -31,8 +31,20 @@ def complete_admins(
|
|
|
31
31
|
warnings = []
|
|
32
32
|
child = None
|
|
33
33
|
adm_level = len(provider_adm_names)
|
|
34
|
+
|
|
35
|
+
def check_unknown_pcode(adm_code: str, pcode: str) -> str:
|
|
36
|
+
if pcode:
|
|
37
|
+
warnings.append(f"PCode unknown {adm_code}->{pcode} ({warntxt})")
|
|
38
|
+
return pcode
|
|
39
|
+
else:
|
|
40
|
+
warnings.append(f"PCode unknown {adm_code}->''")
|
|
41
|
+
return ""
|
|
42
|
+
|
|
34
43
|
for i, provider_adm_name in reversed(list(enumerate(provider_adm_names))):
|
|
35
44
|
adm_code = adm_codes[i]
|
|
45
|
+
parent = admins[i].pcode_to_parent.get(adm_code)
|
|
46
|
+
if not parent and i > 0:
|
|
47
|
+
parent = adm_codes[i - 1]
|
|
36
48
|
if not provider_adm_name:
|
|
37
49
|
provider_adm_name = ""
|
|
38
50
|
provider_adm_names[i] = ""
|
|
@@ -40,9 +52,6 @@ def complete_admins(
|
|
|
40
52
|
pcode = admins[i + 1].pcode_to_parent.get(child)
|
|
41
53
|
warntxt = "parent"
|
|
42
54
|
elif provider_adm_name:
|
|
43
|
-
parent = admins[i].pcode_to_parent.get(adm_code)
|
|
44
|
-
if not parent and i > 0:
|
|
45
|
-
parent = adm_codes[i - 1]
|
|
46
55
|
pcode, _ = admins[i].get_pcode(
|
|
47
56
|
countryiso3,
|
|
48
57
|
provider_adm_name,
|
|
@@ -54,14 +63,19 @@ def complete_admins(
|
|
|
54
63
|
pcode = None
|
|
55
64
|
if adm_code:
|
|
56
65
|
if adm_code not in admins[i].pcodes:
|
|
57
|
-
if
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
if admins[i].looks_like_pcode(adm_code):
|
|
67
|
+
adj_adm_code = admins[i].convert_admin_pcode_length(
|
|
68
|
+
countryiso3, adm_code, parent=parent
|
|
60
69
|
)
|
|
61
|
-
|
|
70
|
+
if adj_adm_code:
|
|
71
|
+
warnings.append(
|
|
72
|
+
f"PCode length {adm_code}->{adj_adm_code}"
|
|
73
|
+
)
|
|
74
|
+
adm_code = adj_adm_code
|
|
75
|
+
else:
|
|
76
|
+
adm_code = check_unknown_pcode(adm_code, pcode)
|
|
62
77
|
else:
|
|
63
|
-
|
|
64
|
-
adm_code = ""
|
|
78
|
+
adm_code = check_unknown_pcode(adm_code, pcode)
|
|
65
79
|
elif pcode and adm_code != pcode:
|
|
66
80
|
if child:
|
|
67
81
|
warnings.append(
|
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
Location,Country Length,Admin 1 Length,Admin 2 Length,Admin 3 Length,Admin 4 Length,Admin 5 Length
|
|
1
|
+
Location,Country Length,Admin 1 Length,Admin 2 Length,Admin 3 Length,Admin 4 Length,Admin 5 Length
|
|
2
2
|
#country+code,#country+len,#adm1+len,#adm2+len,#adm3+len,#adm4+len,#adm5+len
|
|
3
3
|
AFG,2,2,2,,,
|
|
4
|
-
AGO,2,2,3,3,,
|
|
5
4
|
ALB,2,2,2,2,,
|
|
6
|
-
|
|
5
|
+
DZA,2,3,3,,,
|
|
6
|
+
AGO,2,2,3,3,,
|
|
7
7
|
ARG,2,3,3,,,
|
|
8
8
|
ARM,2,2,1,3,,
|
|
9
|
-
ATG,2,2,,,,
|
|
10
9
|
AZE,2,8,,,,
|
|
11
|
-
BDI,3,3,3,,,
|
|
12
|
-
BEN,2,2,2,,,
|
|
13
|
-
BES,3,1,,,,
|
|
14
|
-
BFA,2,2,2,2,,
|
|
15
10
|
BGD,2,2,2,2,2,
|
|
16
|
-
|
|
11
|
+
BRB,2,2,,,,
|
|
17
12
|
BLR,2,3,3,,,
|
|
18
13
|
BLZ,2,2,,,,
|
|
14
|
+
BEN,2,2,2,,,
|
|
19
15
|
BMU,2,2,1,,,
|
|
20
|
-
BOL,2,2,2,2,,
|
|
21
|
-
BRA,2,2,5,,,
|
|
22
|
-
BRB,2,2,,,,
|
|
23
16
|
BTN,2,3,2,,,
|
|
17
|
+
BOL,2,2,2,2,,
|
|
18
|
+
BES,3,1,,,,
|
|
24
19
|
BWA,2,2,2,2,,
|
|
25
|
-
|
|
20
|
+
BRA,2,2,5,,,
|
|
21
|
+
BGR,2,3,3,,,
|
|
22
|
+
BFA,2,2,2,2,,
|
|
23
|
+
BDI,3,3,3,,,
|
|
24
|
+
KHM,2,2,2,2,,
|
|
25
|
+
CMR,2,3,3,3,,
|
|
26
|
+
CPV,2,2,2,,,
|
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,
|
|
86
|
+
MHL,2,2,2,,,
|
|
95
87
|
MTQ,2,2,2,,,
|
|
88
|
+
MRT,2,2,1,2,,
|
|
96
89
|
MUS,2,2,,,,
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
MEX,2,2,3,,,
|
|
91
|
+
FSM,2,1,2,,,
|
|
92
|
+
MDA,2,3,,,,
|
|
93
|
+
MNG,2,2,2,,,
|
|
94
|
+
MSR,2,2,,,,
|
|
95
|
+
MAR,2,3,3,7,1,
|
|
96
|
+
MOZ,2,2,2,2,,
|
|
97
|
+
MMR,3,3,4,-1,,
|
|
99
98
|
NAM,2,2,2,,,
|
|
99
|
+
NPL,2,2,2,3,,
|
|
100
|
+
NIC,2,2,2,,,
|
|
100
101
|
NER,2,3,3,3,,
|
|
101
102
|
NGA,2,3,3,3,,
|
|
102
|
-
NIC,2,2,2,,,
|
|
103
|
-
NPL,2,2,2,3,,
|
|
104
103
|
OMN,2,2,2,,,
|
|
105
104
|
PAK,2,1,2,2,,
|
|
105
|
+
PSE,2,2,2,,,
|
|
106
106
|
PAN,2,2,2,2,,
|
|
107
|
+
PNG,2,2,2,2,,
|
|
108
|
+
PRY,2,2,2,,,
|
|
107
109
|
PER,2,2,2,2,,
|
|
108
110
|
PHL,2,2,3,2,3,
|
|
109
|
-
PNG,2,2,2,2,,
|
|
110
111
|
POL,2,3,3,,,
|
|
111
|
-
|
|
112
|
-
PRK,2,2,2,,,
|
|
113
|
-
PRY,2,2,2,,,
|
|
114
|
-
PSE,2,2,2,,,
|
|
115
|
-
QAT,3,3,3,,,
|
|
112
|
+
QAT,3,3,3,3,,
|
|
116
113
|
ROU,2,3,3,,,
|
|
117
114
|
RUS,2,3,3,,,
|
|
118
115
|
RWA,2,1,1,2,2,
|
|
116
|
+
KNA,2,2,,,,
|
|
117
|
+
LCA,2,2,9,,,
|
|
118
|
+
VCT,2,1,2,,,
|
|
119
|
+
STP,2,2,2,,,
|
|
119
120
|
SAU,2,2,,,,
|
|
120
|
-
SDN,2,2,3,,,
|
|
121
121
|
SEN,2,2,2,2,,
|
|
122
|
-
|
|
122
|
+
SYC,2,1,1,4,,
|
|
123
123
|
SLE,2,2,2,2,2,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
SXM,2,1,,,,
|
|
125
|
+
SVK,2,3,3,,,
|
|
126
|
+
SLB,2,2,4,4,,
|
|
127
|
+
SOM,2,2,2|7,,,
|
|
128
|
+
ZAF,2,1,2,1,3,
|
|
129
|
+
LKA,2,1,1,2,3,
|
|
126
130
|
SSD,2,2,2,2,,
|
|
127
|
-
|
|
131
|
+
SDN,2,2,3,,,
|
|
128
132
|
SUR,2,2,2,,,
|
|
129
|
-
SVK,2,3,3,,,
|
|
130
133
|
SWZ,2,1,2,,,
|
|
131
|
-
SXM,2,1,,,,
|
|
132
|
-
SYC,2,1,1,4,,
|
|
133
134
|
SYR,2,2,2,2,,
|
|
134
|
-
TCA,2,1,2,,,
|
|
135
|
-
TCD,2,2,2,2,,
|
|
136
|
-
TGO,2,2,2,2,,
|
|
137
|
-
THA,2,2,2,2,,
|
|
138
135
|
TJK,0,7,0,,,
|
|
136
|
+
TZA,2,2,2,4|3,,
|
|
137
|
+
THA,2,2,2,2,,
|
|
139
138
|
TLS,2,2,2,2,,
|
|
139
|
+
TGO,2,2,2,2,,
|
|
140
140
|
TON,2,1,1,2,,
|
|
141
141
|
TTO,2,2,,,,
|
|
142
142
|
TUN,2,1,1,2,2,
|
|
143
|
-
TUR,3,3,3
|
|
144
|
-
|
|
145
|
-
UGA,2,1,3
|
|
143
|
+
TUR,3,3,3,,,
|
|
144
|
+
TCA,2,1,2,,,
|
|
145
|
+
UGA,2,1,3,,2,
|
|
146
146
|
UKR,2,2,2,3,3,
|
|
147
|
+
ARE,2,2,,,,
|
|
147
148
|
URY,2,2,3,,,
|
|
148
149
|
UZB,2,2,3,,,
|
|
149
|
-
|
|
150
|
+
VUT,2,2,3,,,
|
|
150
151
|
VEN,2,2,2,2,,
|
|
151
|
-
VGB,2,2,,,,
|
|
152
|
-
VIR,2,3,5,,,
|
|
153
152
|
VNM,2,3,2,,,
|
|
154
|
-
|
|
153
|
+
VGB,2,2,,,,
|
|
154
|
+
ESH,2,2,,,,
|
|
155
155
|
YEM,2,2,2,2,,
|
|
156
|
-
ZAF,2,1,2,1,3,
|
|
157
156
|
ZMB,2,3,3,3,3,
|
|
158
157
|
ZWE,2,2,2,2,,
|
|
158
|
+
VIR,2,3,5,,,
|