hapi-schema 0.9.7__tar.gz → 0.9.8__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.
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.github/workflows/run-python-tests.yaml +1 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/PKG-INFO +1 -1
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/changelog.md +6 -1
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/_version.py +2 -2
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_views_as_tables.py +0 -1
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_wfp_market.py +0 -2
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_views_as_tables.py +0 -1
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.config/coveragerc +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.config/pre-commit-config.yaml +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.config/pytest.ini +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.config/ruff.toml +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.github/workflows/publish.yaml +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/.gitignore +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/LICENSE +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/README.md +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/contributing.md +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/docker/docker-compose.yml +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/initialize_test_db.sh +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/pyproject.toml +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/requirements.txt +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/__init__.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_admin1.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_admin2.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_conflict_event.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_currency.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_dataset.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_food_price.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_food_security.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_funding.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_humanitarian_needs.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_idps.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_location.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_national_risk.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_operational_presence.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_org.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_org_type.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_patch.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_population.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_poverty_rate.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_refugees.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_resource.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_returnees.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_sector.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/db_wfp_commodity.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/__init__.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/base.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/constraints.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/endpoint_constants.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/enums.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/hapi_views_code_generator.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/view_as_table_code_generator.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/view_as_table_definitions.toml +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/view_params.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/views.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/conftest.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/__init__.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_admin1.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_admin2.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_conflict_event.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_currency.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_dataset.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_food_price.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_food_security.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_funding.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_humanitarian_needs.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_idps.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_location.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_national_risk.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_operational_presence.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_org.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_org_type.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_patch.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_population.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_poverty_rate.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_refugees.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_resource.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_returnees.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_sector.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_wfp_commodity.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/sample_data/data_wfp_market.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_admin1.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_admin2.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_conflict_event.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_currency.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_dataset.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_food_price.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_food_security.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_funding.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_humanitarian_needs.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_idps.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_location.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_national_risk.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_operational_presence.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_org.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_org_type.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_patch.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_population.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_poverty_rate.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_refugees.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_resource.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_returnees.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_sector.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_wfp_commodity.py +0 -0
- {hapi_schema-0.9.7 → hapi_schema-0.9.8}/tests/test_wfp_market.py +0 -0
|
@@ -5,13 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.9.8
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Re-release previous changes
|
|
13
|
+
|
|
8
14
|
## 0.9.7
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
11
17
|
|
|
12
18
|
- Changed endpoint names for conflict event, food price, food security, population, poverty rate, and refugees tables
|
|
13
19
|
- Include origin and asylum in data availability for refugees and returnees
|
|
14
|
-
- Added admin level to WFP Market table
|
|
15
20
|
|
|
16
21
|
## 0.9.6
|
|
17
22
|
|
|
@@ -618,7 +618,6 @@ class DBWfpMarketVAT(Base):
|
|
|
618
618
|
admin2_name: Mapped[str] = mapped_column(String(512), index=True)
|
|
619
619
|
admin2_is_unspecified: Mapped[bool] = mapped_column(Boolean)
|
|
620
620
|
admin1_ref: Mapped[int] = mapped_column(Integer)
|
|
621
|
-
admin_level: Mapped[int] = mapped_column(Integer, index=True)
|
|
622
621
|
|
|
623
622
|
|
|
624
623
|
class DBAvailabilityVAT(Base):
|
|
@@ -9,7 +9,6 @@ from hapi_schema.db_location import DBLocation
|
|
|
9
9
|
from hapi_schema.utils.base import Base
|
|
10
10
|
from hapi_schema.utils.constraints import latlon_constraint
|
|
11
11
|
from hapi_schema.utils.view_params import ViewParams
|
|
12
|
-
from hapi_schema.views import get_admin2_case
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
class DBWFPMarket(Base):
|
|
@@ -51,7 +50,6 @@ view_params_wfp_market = ViewParams(
|
|
|
51
50
|
DBAdmin2.name.label("admin2_name"),
|
|
52
51
|
DBAdmin2.is_unspecified.label("admin2_is_unspecified"),
|
|
53
52
|
DBAdmin2.admin1_ref.label("admin1_ref"),
|
|
54
|
-
get_admin2_case(DBWFPMarket),
|
|
55
53
|
).select_from(
|
|
56
54
|
# Join market to admin2 to admin1 to loc
|
|
57
55
|
DBWFPMarket.__table__.join(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/view_as_table_code_generator.py
RENAMED
|
File without changes
|
{hapi_schema-0.9.7 → hapi_schema-0.9.8}/src/hapi_schema/utils/view_as_table_definitions.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|