views-datafactory 1.9.0__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.
Files changed (103) hide show
  1. datafactory_adapters/ARCHITECTURE.md +54 -0
  2. datafactory_adapters/__init__.py +38 -0
  3. datafactory_adapters/_conservation.py +95 -0
  4. datafactory_adapters/_reconciliation.py +92 -0
  5. datafactory_adapters/_validation.py +39 -0
  6. datafactory_adapters/feature_frame.py +25 -0
  7. datafactory_adapters/grid_from_feature_frame.py +89 -0
  8. datafactory_adapters/grid_to_country_month.py +169 -0
  9. datafactory_adapters/grid_to_dataframe.py +176 -0
  10. datafactory_compilation/ARCHITECTURE.md +63 -0
  11. datafactory_compilation/__init__.py +39 -0
  12. datafactory_compilation/aggregation.py +64 -0
  13. datafactory_compilation/compilation_config.py +97 -0
  14. datafactory_compilation/conservation.py +36 -0
  15. datafactory_compilation/grid_compilation.py +352 -0
  16. datafactory_compilation/output.py +85 -0
  17. datafactory_compilation/preflight.py +61 -0
  18. datafactory_compilation/pregridded_compilation.py +291 -0
  19. datafactory_consolidation/ARCHITECTURE.md +58 -0
  20. datafactory_consolidation/__init__.py +28 -0
  21. datafactory_consolidation/consolidation_result.py +27 -0
  22. datafactory_consolidation/consolidators/__init__.py +32 -0
  23. datafactory_consolidation/consolidators/acled.py +462 -0
  24. datafactory_consolidation/consolidators/ucdp.py +524 -0
  25. datafactory_consolidation/event_store.py +67 -0
  26. datafactory_consolidation/tagging.py +46 -0
  27. datafactory_harvester/ARCHITECTURE.md +103 -0
  28. datafactory_harvester/__init__.py +37 -0
  29. datafactory_harvester/event_validation.py +372 -0
  30. datafactory_harvester/harvest_runner.py +72 -0
  31. datafactory_harvester/pipeline_runner.py +125 -0
  32. datafactory_harvester/snapshot_storage.py +117 -0
  33. datafactory_harvester/sources/__init__.py +36 -0
  34. datafactory_harvester/sources/_ucdp_common.py +34 -0
  35. datafactory_harvester/sources/acled.py +743 -0
  36. datafactory_harvester/sources/gaul_admin.py +567 -0
  37. datafactory_harvester/sources/ghsbuilts.py +271 -0
  38. datafactory_harvester/sources/ghspop.py +267 -0
  39. datafactory_harvester/sources/priogrid_static.py +359 -0
  40. datafactory_harvester/sources/shdi.py +625 -0
  41. datafactory_harvester/sources/ucdp_annual.py +616 -0
  42. datafactory_harvester/sources/ucdp_candidate.py +419 -0
  43. datafactory_harvester/sources/ucdp_dot9.py +407 -0
  44. datafactory_harvester/sources/vdem.py +350 -0
  45. datafactory_harvester/validation.py +74 -0
  46. datafactory_http/__init__.py +10 -0
  47. datafactory_http/retry.py +102 -0
  48. datafactory_priogrid/ARCHITECTURE.md +62 -0
  49. datafactory_priogrid/__init__.py +51 -0
  50. datafactory_priogrid/cell_generator.py +137 -0
  51. datafactory_priogrid/grid_config.py +107 -0
  52. datafactory_priogrid/land_mask.py +62 -0
  53. datafactory_priogrid/parity_validation.py +176 -0
  54. datafactory_priogrid/shapefile_harvester.py +174 -0
  55. datafactory_priogrid/shapefile_reader.py +125 -0
  56. datafactory_priogrid/spatiotemporal.py +66 -0
  57. datafactory_priogrid/temporal_config.py +78 -0
  58. datafactory_priogrid/temporal_generator.py +65 -0
  59. datafactory_provenance/ARCHITECTURE.md +61 -0
  60. datafactory_provenance/__init__.py +81 -0
  61. datafactory_provenance/constants.py +3 -0
  62. datafactory_provenance/digests_and_ledgers.py +370 -0
  63. datafactory_provenance/health.py +310 -0
  64. datafactory_provenance/pipeline_lock.py +200 -0
  65. datafactory_provenance/registry.py +92 -0
  66. datafactory_provenance/skip.py +212 -0
  67. datafactory_provenance/source_registry.py +466 -0
  68. datafactory_query/ARCHITECTURE.md +60 -0
  69. datafactory_query/__init__.py +36 -0
  70. datafactory_query/africa_me_gaul_pgids.json +1 -0
  71. datafactory_query/africa_me_legacy_pgids.json +1 -0
  72. datafactory_query/backends_npy.py +90 -0
  73. datafactory_query/backends_zarr.py +259 -0
  74. datafactory_query/coverage.py +64 -0
  75. datafactory_query/dataset.py +263 -0
  76. datafactory_query/defaults.py +101 -0
  77. datafactory_query/land_gaul_pgids.json +1 -0
  78. datafactory_query/land_pgids.json +1 -0
  79. datafactory_query/output_format.py +52 -0
  80. datafactory_query/regions.py +293 -0
  81. datafactory_query/temporal.py +115 -0
  82. datafactory_viewpoint/ARCHITECTURE.md +68 -0
  83. datafactory_viewpoint/__init__.py +33 -0
  84. datafactory_viewpoint/builders/__init__.py +32 -0
  85. datafactory_viewpoint/builders/acled_v1.py +213 -0
  86. datafactory_viewpoint/builders/ghsbuilts_v1.py +351 -0
  87. datafactory_viewpoint/builders/ghspop_v1.py +471 -0
  88. datafactory_viewpoint/builders/shdi_v1.py +389 -0
  89. datafactory_viewpoint/builders/ucdp_v1.py +437 -0
  90. datafactory_viewpoint/builders/vdem_v1.py +419 -0
  91. datafactory_viewpoint/profiles.py +169 -0
  92. datafactory_viewpoint/raster_io.py +49 -0
  93. datafactory_viewpoint/spatial_distribution.py +203 -0
  94. datafactory_viewpoint/spatial_weights.py +207 -0
  95. datafactory_viewpoint/survivorship.py +108 -0
  96. datafactory_viewpoint/temporal.py +111 -0
  97. datafactory_viewpoint/temporal_distribution.py +295 -0
  98. datafactory_viewpoint/viewpoint_config.py +124 -0
  99. datafactory_viewpoint/viewpoint_result.py +33 -0
  100. views_datafactory-1.9.0.dist-info/METADATA +528 -0
  101. views_datafactory-1.9.0.dist-info/RECORD +103 -0
  102. views_datafactory-1.9.0.dist-info/WHEEL +4 -0
  103. views_datafactory-1.9.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,528 @@
1
+ Metadata-Version: 2.4
2
+ Name: views-datafactory
3
+ Version: 1.9.0
4
+ Summary: Data factory for the VIEWS conflict forecasting platform — provenance, harvesting, consolidation, viewpoint construction, compilation, and assembly.
5
+ Project-URL: Homepage, https://github.com/views-platform/views-datafactory
6
+ Project-URL: Repository, https://github.com/views-platform/views-datafactory
7
+ Project-URL: Issues, https://github.com/views-platform/views-datafactory/issues
8
+ Author-email: Simon Polichinel von der Maase <simmaa@prio.org>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: acled,conflict-forecasting,data-pipeline,priogrid,provenance,ucdp,zarr
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: aiohttp<4,>=3.9
22
+ Requires-Dist: fsspec<2025,>=2023.9
23
+ Requires-Dist: imagecodecs>=2024.1
24
+ Requires-Dist: matplotlib<4,>=3.8
25
+ Requires-Dist: numpy<3,>=1.26
26
+ Requires-Dist: pandas<3,>=2.0
27
+ Requires-Dist: pyarrow<20,>=14
28
+ Requires-Dist: pyshp<3,>=2.3
29
+ Requires-Dist: requests<3,>=2.28
30
+ Requires-Dist: shapely<3,>=2.0
31
+ Requires-Dist: tifffile>=2024.1
32
+ Requires-Dist: views-frames<2,>=1.0
33
+ Requires-Dist: xarray<2026,>=2024.1
34
+ Requires-Dist: zarr<3,>=2.16
35
+ Description-Content-Type: text/markdown
36
+
37
+ <div style="width: 100%; max-width: 1500px; height: 400px; overflow: hidden; position: relative;">
38
+ <img src="https://github.com/user-attachments/assets/1ec9e217-508d-4b10-a41a-08dface269c7" alt="VIEWS Twitter Header" style="position: absolute; top: -50px; width: 100%; height: auto;">
39
+ </div>
40
+
41
+ # views-datafactory
42
+
43
+ **Data factory for the VIEWS conflict forecasting platform — harvesting, consolidation, viewpoint building, grid compilation, and query.**
44
+
45
+ Part of the [VIEWS Platform](https://github.com/views-platform) ecosystem.
46
+
47
+ ---
48
+
49
+ ## Table of Contents
50
+
51
+ - [Overview](#overview)
52
+ - [Role in VIEWS Platform](#role-in-views-platform)
53
+ - [Architecture](#architecture)
54
+ - [Packages](#packages)
55
+ - [Project Structure](#project-structure)
56
+ - [Installation](#installation)
57
+ - [Quick Start](#quick-start)
58
+ - [Strategic Documents](#strategic-documents)
59
+ - [Where to Find What](#where-to-find-what)
60
+ - [Contributing](#contributing)
61
+ - [License](#license)
62
+
63
+ ---
64
+
65
+ ## Overview
66
+
67
+ views-datafactory provides the data foundation for conflict forecasting in the VIEWS platform. It handles the full lifecycle of spatiotemporal conflict data — from raw ingestion through to compiled grid arrays ready for model consumption.
68
+
69
+ The system is designed as a **graph of independent nodes**, not a linear pipeline. Source nodes (harvesters) produce data independently. Compilation edges transform source data into consumer-specific formats. Consumer nodes read compiled outputs. This architecture ensures that adding a new data source or output format never requires changing existing components.
70
+
71
+ ### Key Capabilities
72
+
73
+ - **Auditable data harvesting** — UCDP (annual, candidate, .9), ACLED, GHS-POP, GHS-BUILT-S, V-Dem, SHDI, PRIO-GRID static, and GAUL admin boundaries, all with schema validation, drift detection, and JSONL provenance ledgers
74
+ - **PRIO-GRID spatial backbone** — pure-numpy generation of the standard 259,200-cell global grid at 0.5° resolution, validated cell-by-cell against the official PRIO reference shapefile
75
+ - **Temporal backbone** with VIEWS month_id adapters (epoch: January 1980)
76
+ - **Vintage-aware consolidation** — lossless, append-only, bitemporal event store from all three UCDP sources with content-digest deduplication
77
+ - **Configurable viewpoints** — survivorship strategies (annual_wins, dot9_wins), temporal distribution (even_split, ceil_split), production filtering via named profiles
78
+ - **Deterministic compilation** of viewpoint output onto the spatiotemporal grid as npy arrays
79
+ - **Consumer adapters** — grid-to-DataFrame and grid-to-FeatureFrame conversions for downstream consumers
80
+ - **End-to-end provenance** — every value in a compiled grid is traceable back to the specific source records and compilation config that produced it
81
+
82
+ ---
83
+
84
+ ## Role in VIEWS Platform
85
+
86
+ views-datafactory is the upstream data provider for the VIEWS forecasting pipeline. It produces the compiled grid arrays that models consume for training and inference.
87
+
88
+ ### Integration with Other Repositories
89
+
90
+ - **[views-metric-lab](https://github.com/views-platform/views-metric-lab):** First consumer — uses compiled grids for evaluation metric research and model stress-testing
91
+ - **[views-hydranet](https://github.com/views-platform/views-hydranet):** Will consume compiled grids for production neural forecasting (HydraNet v2)
92
+ - **[views-pipeline-core](https://github.com/views-platform/views-pipeline-core):** Central pipeline infrastructure — may depend on views-datafactory for standardised data access
93
+ - **[views-evaluation](https://github.com/views-platform/views-evaluation):** May consume compiled grids for benchmarking
94
+
95
+ ### Data Flow
96
+
97
+ **No layer imports from the layer above or below.** The filesystem is the API between layers. Each dashed line below represents zero code coupling — only a file path convention. This is enforced by an import-enforcement test that AST-scans every package.
98
+
99
+ ```
100
+ UCDP/GED API ──→ datafactory_harvester ──→ data/raw/ucdp_*/*.parquet
101
+ ACLED API ──────→ datafactory_harvester ──→ data/raw/acled/*.parquet
102
+ (event sources)
103
+ ─ ─ ─ ─ ─ ─ ─ ─ filesystem boundary
104
+ │
105
+ datafactory_consolidation ──→ data/consolidated/*.parquet
106
+ │
107
+ ─ ─ ─ ─ ─ ─ ─ ─ filesystem boundary
108
+ │
109
+ datafactory_viewpoint ──→ data/viewpoint/*.parquet
110
+ │
111
+ ─ ─ ─ ─ ─ ─ ─ ─ filesystem boundary
112
+ │
113
+ PRIO-GRID ──────→ datafactory_priogrid ─┐ │
114
+ PRIO-GRID API ──→ datafactory_harvester ──→ data/raw/priogrid_static/
115
+ FAO GAUL API ───→ datafactory_harvester ──→ data/raw/gaul_admin/
116
+ JRC GHSL ───────→ datafactory_harvester ──→ data/raw/ghspop/ + ghsbuilts/
117
+ V-Dem ──────────→ datafactory_harvester ──→ data/raw/vdem/
118
+ GDL SHDI ───────→ datafactory_harvester ──→ data/raw/shdi/
119
+ (GHS-POP, GHS-BUILT-S, V-Dem, SHDI skip consolidation — single releases)
120
+ │ │
121
+ datafactory_compilation ──→ data/compiled/grid.npy [T,H,W,C]
122
+ │
123
+ ─ ─ ─ ─ ─ ─ ─ ─ filesystem boundary
124
+ │
125
+ assemble_grid.py ──→ data/assembled/grid.npy [T,H,W,C]
126
+ (compiled UCDP + ACLED + GHS-POP + GHS-BUILT-S + V-Dem + SHDI + static + admin)
127
+ │
128
+ ─ ─ ─ ─ ─ ─ ─ ─ filesystem boundary
129
+ │
130
+ datafactory_query ──→ FeatureFrame / DataFrame
131
+ (load_dataset: region, time, feature subsetting)
132
+ │
133
+ generate_consumer_data.py ──→ {run_type}_viewser_df.parquet
134
+ (factory → VIEWSER vocabulary)
135
+ │
136
+ ┌───────────┴───────────┐
137
+ │ Consumers │
138
+ │ (metric lab, │
139
+ │ hydranet) │
140
+ └───────────────────────┘
141
+
142
+ ```
143
+
144
+ Not all paths traverse all layers. GHS-POP, GHS-BUILT-S, V-Dem, and SHDI skip consolidation (single releases; ADR-029, ADR-034, ADR-035, ADR-036).
145
+
146
+ ---
147
+
148
+ ## Architecture
149
+
150
+ The architecture is a **graph**, not a pipeline. Each node is a self-contained package with explicit dependencies:
151
+
152
+ ```
153
+ Layer 0 — Foundation (no internal imports):
154
+ datafactory_provenance Content digests, JSONL ledger operations
155
+ datafactory_http HTTP request utilities: retry with exponential backoff
156
+
157
+ Layer 1 — Source nodes (import provenance + http):
158
+ datafactory_priogrid PRIO-GRID spatial + temporal backbone
159
+ datafactory_harvester Data ingestion with pluggable sources
160
+
161
+ Layer 2 — Consolidation (imports provenance, reads harvester files):
162
+ datafactory_consolidation Lossless event store from raw snapshots
163
+
164
+ Layer 3 — Viewpoint (imports provenance, reads consolidation files):
165
+ datafactory_viewpoint Opinionated materialized views
166
+
167
+ Layer 4 — Compilation (imports provenance + priogrid, reads viewpoint files):
168
+ datafactory_compilation Viewpoint output → populated grid arrays
169
+
170
+ Consumer-facing (no datafactory_* imports):
171
+ datafactory_adapters Grid → DataFrame, Grid → FeatureFrame
172
+
173
+ Assembly (script, not package — combines compiled sources):
174
+ scripts/assemble_grid.py Compiled UCDP + ACLED + GHS-POP + GHS-BUILT-S + V-Dem + SHDI + static + admin → [T,H,W,C]
175
+
176
+ Consumer entry point (imports priogrid + adapters, reads assembled files):
177
+ datafactory_query load_dataset() — region/time/feature subsetting, npy or zarr
178
+ ```
179
+
180
+ **Dependency rules (ADR-012):**
181
+ - `datafactory_provenance` imports nothing internal
182
+ - `datafactory_priogrid` and `datafactory_harvester` import only from `datafactory_provenance` (and `datafactory_http` for network operations)
183
+ - `datafactory_consolidation` imports only from `datafactory_provenance`; reads harvester output as **files**
184
+ - `datafactory_viewpoint` imports only from `datafactory_provenance`; reads consolidation output as **files**
185
+ - `datafactory_compilation` imports `datafactory_provenance` and `datafactory_priogrid`; reads viewpoint output as **files**
186
+ - `datafactory_adapters` imports nothing from `datafactory_*`; sits alongside the graph, not inside it
187
+ - `datafactory_query` imports `datafactory_priogrid` and `datafactory_adapters`; reads assembled output as **files** (npy or zarr)
188
+ - Independence is enforced by an import-enforcement test that AST-scans every package
189
+
190
+ ### Design Principles
191
+
192
+ | Principle | Description |
193
+ |-----------|-------------|
194
+ | **Graph, not pipeline** | Sources don't know about consumers. Compilation edges are consumer-driven. |
195
+ | **Provenance all the way through** | Every node that produces data writes a JSONL ledger entry. Mission-critical. |
196
+ | **Config-driven, fail-loud** | Frozen dataclasses with `__post_init__` validation. No silent defaults. |
197
+ | **npy now, zarr-ready** | Dimension order: `[T, H, W, C]` (time, height, width, channels). Coordinate arrays shipped alongside data. |
198
+ | **Screaming architecture** | Package and file names communicate domain, not programming taxonomy. |
199
+
200
+ ### Filesystem Boundaries and Data Contracts
201
+
202
+ Layers are decoupled by the filesystem, not by imports. Each layer computes SHA-256 of its input file (`source_digest`) and output file (`output_digest`), recording both in its JSONL ledger. This creates a cryptographic provenance chain from raw API response to consumer parquet — any tampering or re-run is detectable by comparing digests across ledgers.
203
+
204
+ | Boundary | Writer | Reader | File Path | Format | Key Columns / Shape |
205
+ |----------|--------|--------|-----------|--------|---------------------|
206
+ | Harvest → Consolidation | `harvest_ucdp.py` | `consolidate_ucdp.py` | `data/raw/ucdp_*/` | Parquet | `id`, `date_start`, `date_end`, `best`, `low`, `high`, `type_of_violence` |
207
+ | Consolidation → Viewpoint | `consolidate_ucdp.py` | `build_viewpoint.py` | `data/consolidated/` | Parquet | All harvest columns + `_source_type`, `_source_version`, `_ingested_at` |
208
+ | Viewpoint → Compilation | `build_viewpoint.py` | `compile_grid.py` | `data/viewpoint/*.parquet` | Parquet | `latitude`, `longitude`, `date_month`, `best`, `type_of_violence` |
209
+ | Compilation → Assembly | `compile_grid.py` | `assemble_grid.py` | `data/compiled/` | npy `[T,H,W,C]` | `grid.npy` + `pgids.npy` + `time_steps.npy` + `feature_names.json` |
210
+ | Assembly → Query/Consumer | `assemble_grid.py` | `load_dataset()` | `data/assembled/` or `.zarr` | npy or zarr | `grid.npy [T,H,W,C]` with same sidecars |
211
+
212
+ ### Consumer Contract
213
+
214
+ The `generate_consumer_data.py` script produces parquet files for VIEWS training scripts (`purple_alien`, `white_ranger`, etc.). Column names are the factory's source names — consumer-side renaming (if any) is the model's responsibility via `config_queryset.py`.
215
+
216
+ | Column | Meaning |
217
+ |--------|---------|
218
+ | `ged_sb_best` | State-based conflict fatalities (best estimate) |
219
+ | `ged_ns_best` | Non-state conflict fatalities |
220
+ | `ged_os_best` | One-sided violence fatalities |
221
+ | `gaul0_code` | Country identifier (GAUL Level 0) |
222
+ | `row`, `col` | Grid position (derived from `priogrid_gid`) |
223
+
224
+ Training partitions use VIEWS month_id encoding (epoch: January 1980):
225
+ - **Calibration:** train 121–444, test 445–492
226
+ - **Validation:** train 121–492, test 493–540
227
+ - **Forecasting:** train 121–current, test current+1 to current+36
228
+
229
+ Output: `{calibration,validation,forecasting}_viewser_df.parquet` with MultiIndex `(month_id, priogrid_gid)`.
230
+
231
+ ---
232
+
233
+ ## Packages
234
+
235
+ | Package | Layer | Purpose | Status |
236
+ |---------|-------|---------|--------|
237
+ | `datafactory_provenance` | 0 | Content digests, JSONL ledgers, file locking, rotation | Done |
238
+ | `datafactory_http` | 0 | HTTP request utilities: retry with exponential backoff | Done |
239
+ | `datafactory_priogrid` | 1 | PRIO-GRID spatial + temporal backbone (259,200 cells, monthly) | Done |
240
+ | `datafactory_harvester` | 1 | Data harvesting: UCDP (annual/candidate/.9), ACLED, GHS-POP, GHS-BUILT-S, V-Dem, SHDI, PRIO-GRID static, GAUL admin | Done |
241
+ | `datafactory_consolidation` | 2 | Lossless, vintage-aware consolidation of UCDP and ACLED sources | Done |
242
+ | `datafactory_viewpoint` | 3 | Opinionated views: survivorship, temporal distribution, profiles | Done |
243
+ | `datafactory_compilation` | 4 | Viewpoint output → grid npy with coordinate sidecars | Done |
244
+ | `datafactory_adapters` | — | Consumer-facing: grid → DataFrame, grid → FeatureFrame | Done |
245
+ | `datafactory_query` | — | Consumer entry point: `load_dataset()`, region/time subsetting, dual npy/zarr backend | Done |
246
+
247
+ ---
248
+
249
+ ## Project Structure
250
+
251
+ ```
252
+ views-datafactory/
253
+ ├── pyproject.toml # hatchling + uv
254
+ ├── CLAUDE.md # AI assistant context
255
+ ├── .github/workflows/ci.yml # CI: ruff + mypy + pytest
256
+ ├── src/
257
+ │ ├── datafactory_provenance/ # Layer 0 — digests + ledgers
258
+ │ │ ├── digests_and_ledgers.py
259
+ │ │ ├── constants.py VIEWS_EPOCH_YEAR (shared constant)
260
+ │ │ └── source_registry.py SourceEntry, PIPELINE_SOURCES
261
+ │ ├── datafactory_http/ # Layer 0 — HTTP retry utilities
262
+ │ │ └── retry.py request_with_retry (shared)
263
+ │ ├── datafactory_priogrid/ # Layer 1 — PRIO-GRID backbone
264
+ │ │ ├── grid_config.py GridConfig (spatial params)
265
+ │ │ ├── temporal_config.py TemporalConfig (year/month range)
266
+ │ │ ├── cell_generator.py generate_grid, pgid_to_latlon
267
+ │ │ ├── temporal_generator.py generate_time_steps, VIEWS month_id
268
+ │ │ ├── spatiotemporal.py SpatioTemporalGrid (composition)
269
+ │ │ ├── parity_validation.py validate_parity (vs. reference shapefile)
270
+ │ │ ├── shapefile_reader.py PyShpReader (pluggable Protocol)
271
+ │ │ └── shapefile_harvester.py fetch_shapefile (reference data)
272
+ │ ├── datafactory_harvester/ # Layer 1 — data ingestion
273
+ │ │ ├── event_validation.py ValidationResult, compare_snapshots
274
+ │ │ ├── snapshot_storage.py save_event_snapshot, archive_snapshot
275
+ │ │ └── sources/ Source plugin registry
276
+ │ │ ├── ucdp_annual.py UCDP/GED Annual source
277
+ │ │ ├── ucdp_candidate.py UCDP/GED Candidate Monthly source
278
+ │ │ ├── ucdp_dot9.py UCDP/GED .9 Consolidated Monthly
279
+ │ │ ├── acled.py ACLED event data (year-by-year)
280
+ │ │ ├── ghspop.py GHS-POP R2023A (JRC GHSL raster)
281
+ │ │ ├── ghsbuilts.py GHS-BUILT-S R2023A (JRC GHSL raster)
282
+ │ │ ├── vdem.py V-Dem v16 democracy indicators
283
+ │ │ ├── shdi.py SHDI subnational human development
284
+ │ │ ├── priogrid_static.py PRIO-GRID static covariates
285
+ │ │ └── gaul_admin.py GAUL 2024 admin boundaries
286
+ │ ├── datafactory_consolidation/ # Layer 2 — lossless event stores
287
+ │ │ ├── event_store.py Append-only Parquet store
288
+ │ │ ├── tagging.py tag_table (shared metadata tagging)
289
+ │ │ └── consolidators/
290
+ │ │ ├── ucdp.py Three-source UCDP consolidation
291
+ │ │ └── acled.py ACLED event consolidation
292
+ │ ├── datafactory_viewpoint/ # Layer 3 — opinionated views
293
+ │ │ ├── survivorship.py Strategy registry (annual_wins, dot9_wins)
294
+ │ │ ├── temporal_distribution.py Strategy registry (even_split, ceil_split)
295
+ │ │ ├── profiles.py Named presets (production_parity)
296
+ │ │ ├── raster_io.py read_geotiff (shared GeoTIFF reader)
297
+ │ │ ├── temporal.py interpolate_temporal (shared interpolation)
298
+ │ │ └── builders/
299
+ │ │ ├── ucdp_v1.py UCDP viewpoint builder
300
+ │ │ ├── ghspop_v1.py GHS-POP viewpoint builder
301
+ │ │ ├── ghsbuilts_v1.py GHS-BUILT-S viewpoint builder
302
+ │ │ ├── vdem_v1.py V-Dem viewpoint builder
303
+ │ │ └── shdi_v1.py SHDI viewpoint builder
304
+ │ ├── datafactory_compilation/ # Layer 4 — grid compilation
305
+ │ │ ├── compilation_config.py CompilationConfig
306
+ │ │ ├── grid_compilation.py compile_grid (event sources)
307
+ │ │ ├── pregridded_compilation.py compile_pregridded (raster sources)
308
+ │ │ ├── output.py write_compilation_output (shared writer)
309
+ │ │ └── aggregation.py count, sum_field, max_field strategies
310
+ │ ├── datafactory_adapters/ # Consumer-facing conversions
311
+ │ │ ├── feature_frame.py FeatureFrame dataclass
312
+ │ │ ├── grid_to_dataframe.py Grid → pandas DataFrame
313
+ │ │ └── grid_from_feature_frame.py FeatureFrame → Grid (inverse)
314
+ │ └── datafactory_query/ # Consumer entry point
315
+ │ ├── dataset.py load_dataset (npy + zarr backends)
316
+ │ ├── regions.py Region name → PRIO-GRID cell set
317
+ │ └── temporal.py Flexible time range parsing
318
+ ├── tests/ # ~2000 tests
319
+ ├── scripts/ # Operational scripts
320
+ │ ├── harvest_ucdp.py UCDP harvest (annual + candidate + .9)
321
+ │ ├── harvest_acled.py ACLED event harvest (year-by-year)
322
+ │ ├── harvest_ghspop.py GHS-POP raster harvest (12 epochs)
323
+ │ ├── harvest_ghsbuilts.py GHS-BUILT-S raster harvest (12 epochs)
324
+ │ ├── harvest_priogrid.py PRIO-GRID static covariates
325
+ │ ├── harvest_shapefile.py PRIO-GRID shapefile download
326
+ │ ├── harvest_gaul.py GAUL admin boundary harvest + spatial join
327
+ │ ├── consolidate_ucdp.py Three-source UCDP consolidation
328
+ │ ├── build_viewpoint.py Viewpoint from profile
329
+ │ ├── compile_grid.py Event source grid compilation
330
+ │ ├── compile_acled.py ACLED grid compilation
331
+ │ ├── run_acled_pipeline.py ACLED end-to-end pipeline
332
+ │ ├── run_ghspop_pipeline.py GHS-POP end-to-end pipeline
333
+ │ ├── run_ghsbuilts_pipeline.py GHS-BUILT-S end-to-end pipeline
334
+ │ ├── harvest_vdem.py V-Dem CSV harvest
335
+ │ ├── compile_vdem.py V-Dem grid compilation
336
+ │ ├── run_vdem_pipeline.py V-Dem end-to-end pipeline
337
+ │ ├── harvest_shdi.py SHDI subnational HDI harvest
338
+ │ ├── run_shdi_pipeline.py SHDI end-to-end pipeline
339
+ │ ├── assemble_grid.py UCDP + ACLED + GHS-POP + GHS-BUILT-S + V-Dem + SHDI + static + admin
340
+ │ ├── generate_consumer_data.py Factory → VIEWSER parquet for training
341
+ │ ├── export_dataframe.py Grid → DataFrame export
342
+ │ ├── export_zarr.py Grid → zarr store (HTTP-servable)
343
+ │ ├── preflight.py Pre-pipeline disk + env checks
344
+ │ ├── check_health.py System health check
345
+ │ ├── refresh_pipeline.sh Full pipeline orchestrator (14 steps)
346
+ │ ├── visualize_audit.py Data audit visualization
347
+ │ └── ... verify_parity, verify_remote, etc.
348
+ ├── docs/ # ADRs, CICs, protocols, standards
349
+ │ ├── ADRs/ 10 constitutional + 39 project-specific
350
+ │ ├── CICs/ 34 active class intent contracts
351
+ │ ├── contributor_protocols/ carbon, silicon, hardened
352
+ │ └── standards/ logging & observability
353
+ ├── reports/ # Strategic documents + audit outputs
354
+ │ ├── rd_roadmap11.md R&D roadmap (v11)
355
+ │ ├── product_development_plan11.md Product development plan (v11)
356
+ │ ├── technical_risk_register.md Technical risk register (ADR-020)
357
+ │ └── dot9_investigation/ .9 data stream research findings
358
+ ├── provenance/ # JSONL ledgers (gitignored)
359
+ └── data/ # Raw + compiled data (gitignored)
360
+ ```
361
+
362
+ ---
363
+
364
+ ## Installation
365
+
366
+ **As a consumer** (you want `load_dataset()` and the adapters):
367
+
368
+ ```bash
369
+ pip install views-datafactory
370
+ ```
371
+
372
+ **As a developer** (you want the tests, scripts, and docs):
373
+
374
+ ```bash
375
+ # Clone the repository
376
+ git clone https://github.com/views-platform/views-datafactory.git
377
+ cd views-datafactory
378
+
379
+ # Install with uv
380
+ uv sync
381
+
382
+ # Verify
383
+ uv run pytest -v
384
+ ```
385
+
386
+ > **Note:** This project uses [uv](https://github.com/astral-sh/uv) for dependency management and [hatchling](https://hatch.pypa.io/) as the build backend.
387
+
388
+ ### Prerequisites — who needs credentials?
389
+
390
+ | You want to... | Credentials needed |
391
+ |----------------|--------------------|
392
+ | Develop / run the test suite | **None.** A bare checkout runs the full suite. |
393
+ | Read served data (remote zarr) | An entry in `~/.netrc` for the VIEWS data server — ask the data factory administrator for the password. |
394
+ | Run the harvest pipeline yourself | `UCDP_API_TOKEN`, `ACLED_USERNAME`/`ACLED_PASSWORD`, `GDL_API_TOKEN` (free registrations with the respective providers). GHS-POP, GHS-BUILT-S, V-Dem, PRIO-GRID static, and GAUL need no credentials. |
395
+
396
+ Setup instructions for all of these: **[docs/guides/credential_setup.md](docs/guides/credential_setup.md)**. New to the whole platform and just want to run a model? Start at **[docs/guides/model_consumer_quickstart.md](docs/guides/model_consumer_quickstart.md)**.
397
+
398
+ ---
399
+
400
+ ## Quick Start
401
+
402
+ ```bash
403
+ # Full pipeline (automated): runs all 14 steps end-to-end
404
+ bash scripts/refresh_pipeline.sh
405
+
406
+ # Or run individual steps:
407
+ uv run python scripts/harvest_ucdp.py # fetch all UCDP sources
408
+ uv run python scripts/harvest_acled.py # fetch ACLED events
409
+ uv run python scripts/harvest_ghspop.py # fetch GHS-POP rasters
410
+ uv run python scripts/harvest_ghsbuilts.py # fetch GHS-BUILT-S rasters
411
+ uv run python scripts/consolidate_ucdp.py # three-source UCDP consolidation
412
+ uv run python scripts/build_viewpoint.py # apply production_parity profile
413
+ uv run python scripts/compile_grid.py # UCDP → grid.npy
414
+ uv run python scripts/compile_acled.py # ACLED → grid.npy
415
+ uv run python scripts/run_ghspop_pipeline.py # GHS-POP viewpoint + compile
416
+ uv run python scripts/run_ghsbuilts_pipeline.py # GHS-BUILT-S viewpoint + compile
417
+ uv run python scripts/run_vdem_pipeline.py # V-Dem viewpoint + compile
418
+ uv run python scripts/run_shdi_pipeline.py # SHDI viewpoint + compile
419
+ uv run python scripts/assemble_grid.py \ # assemble all sources into one grid
420
+ --acled-grid data/compiled/acled \ # (each --*-grid flag is optional;
421
+ --ghspop-grid data/compiled/ghspop \ # omitted sources are silently skipped,
422
+ --ghsbuilts-grid data/compiled/ghsbuilts \ # producing a partial grid)
423
+ --vdem-grid data/compiled/vdem \
424
+ --shdi-grid data/compiled/shdi
425
+ uv run python scripts/generate_consumer_data.py # factory → VIEWSER training parquets
426
+
427
+ # Visualize the assembled grid
428
+ uv run python scripts/visualize_audit.py # 15 audit plots → reports/audit/
429
+
430
+ # Export for downstream consumers
431
+ uv run python scripts/export_zarr.py # grid → zarr store (HTTP-servable)
432
+ uv run python scripts/export_dataframe.py # grid → DataFrame CSV
433
+ ```
434
+
435
+ ```python
436
+ # Programmatic usage — load_dataset() is the primary consumer entry point
437
+ from datafactory_query import load_dataset
438
+
439
+ # Load Ethiopia 2020-2024 as FeatureFrame (temporal + geographic subsetting)
440
+ ff = load_dataset(region="Ethiopia", start="2020", end="2024")
441
+
442
+ # Load global land cells as DataFrame
443
+ df = load_dataset(region="land", output_format="dataframe")
444
+
445
+ # Load from the remote zarr store (requires ~/.netrc — see docs/guides/credential_setup.md)
446
+ from datafactory_query.defaults import DEFAULT_REMOTE
447
+
448
+ ff = load_dataset(
449
+ region="africa_me",
450
+ start="2020",
451
+ data_dir=DEFAULT_REMOTE.zarr_url,
452
+ )
453
+ ```
454
+
455
+ ```python
456
+ # Low-level access — direct npy loading
457
+ from datafactory_adapters import FeatureFrame, grid_to_dataframe
458
+ import json, numpy as np
459
+
460
+ data = np.load("data/assembled/grid.npy", mmap_mode="r")
461
+ pgids = np.load("data/assembled/pgids.npy")
462
+ time_steps = np.load("data/assembled/time_steps.npy")
463
+ feature_names = json.loads(open("data/assembled/feature_names.json").read())
464
+
465
+ df = grid_to_dataframe(data, pgids, time_steps, feature_names, month_id_epoch=1980)
466
+ ff = FeatureFrame.from_grid(data, pgids, time_steps, feature_names)
467
+ ```
468
+
469
+ ---
470
+
471
+ ## Strategic Documents
472
+
473
+ The `reports/` directory contains living documents that define the project's direction:
474
+
475
+ - **[R&D Roadmap](reports/rd_roadmap11.md)** — Research questions, hypotheses, data agenda, milestones. Focuses on what must be *discovered*.
476
+ - **[Product Development Plan](reports/product_development_plan11.md)** — Users, requirements, architecture, release plan. Focuses on what must be *built*.
477
+ - **[Technical Risk Register](reports/technical_risk_register.md)** — 298 concerns tracked, 258 resolved, 37 open with trigger conditions (ADR-020).
478
+ - **[.9 Investigation](reports/dot9_investigation/)** — Empirical findings on UCDP .9 data stream characteristics.
479
+
480
+ ---
481
+
482
+ ## Where to Find What
483
+
484
+ This system separates information by ownership and change frequency (ADR-003). Different questions have different authoritative sources:
485
+
486
+ | If you need to know… | Look in… | Why there |
487
+ |----------------------|----------|-----------|
488
+ | How to set up credentials, get data, run a model, or operate the server | [`docs/guides/`](docs/guides/) — how-to guides (see its README for an index) | Task-oriented walkthroughs |
489
+ | What data sources we use, who publishes them, what license/format/coverage | `docs/sources/` — catalog cards | Upstream facts, rarely change |
490
+ | Why we chose a specific source, what alternatives we considered | `docs/ADRs/` — source selection ADRs (028, 029) | One-time decisions |
491
+ | How a derived feature is constructed (aggregation, survivorship, distribution) | Viewpoint CICs (`docs/CICs/Viewpoint*.md`) and profile configs (`src/datafactory_viewpoint/profiles.py`) | Volatile — changes as research evolves |
492
+ | What SLO, env vars, or feature list a source has | `src/datafactory_provenance/source_registry.py` — `SourceEntry` | Operational config, changes on redeploy |
493
+ | Current harvest status, data versions, content digests | `provenance/*.jsonl` ledgers, or run `uv run python scripts/check_health.py` | Volatile state, changes every pipeline run |
494
+ | What a config class guarantees | `docs/CICs/` — Class Intent Contracts | Code contracts |
495
+ | Why the system is designed this way | `docs/ADRs/` — Architecture Decision Records | Immutable decisions |
496
+ | Known technical risks and their status | `reports/technical_risk_register.md` | Living risk tracking |
497
+
498
+ **Rule of thumb:** if the information changes when *the upstream provider* changes something → catalog card. When *we* make a decision → ADR. When *we redeploy* → code config. When *the pipeline runs* → provenance ledger. When in doubt, the provenance ledger is the most authoritative source for anything operational.
499
+
500
+ ---
501
+
502
+ ## Contributing
503
+
504
+ Contributions are welcome. Please consult the [VIEWS Platform contributing guidelines](https://github.com/views-platform) before submitting pull requests.
505
+
506
+ When adding new packages, follow the existing `datafactory_*` naming convention and ensure the new package:
507
+ - Has an `__init__.py` with `__all__` defined
508
+ - Is listed in `pyproject.toml` under `[tool.hatch.build.targets.wheel] packages`
509
+ - Imports only from `datafactory_provenance` (or provenance + priogrid for compilation nodes)
510
+ - Has corresponding tests in `tests/`
511
+ - Has an `ARCHITECTURE.md` describing purpose, boundaries, and invariants
512
+
513
+ ---
514
+
515
+ ## License
516
+
517
+ This project is licensed under the MIT License — see [LICENSE](LICENSE). The license covers the software in this repository only; upstream data sources (UCDP, ACLED, GHS-POP, GHS-BUILT-S, V-Dem, SHDI, PRIO-GRID, GAUL, WDI) are subject to their respective providers' terms of use.
518
+
519
+ ---
520
+
521
+ ## Acknowledgements
522
+
523
+ Built as part of the [VIEWS](https://viewsforecasting.org/) (Violence & Impacts Early-Warning System) project, providing early warning for conflict to support humanitarian response and prevention.
524
+
525
+ Data sources:
526
+ - **[UCDP/GED](https://ucdp.uu.se/)** — Uppsala Conflict Data Program / Georeferenced Event Dataset
527
+ - **[PRIO-GRID](https://grid.prio.org/)** — Peace Research Institute Oslo global grid structure
528
+ - **[V-Dem](https://v-dem.net/)** — Varieties of Democracy Institute, University of Gothenburg
@@ -0,0 +1,103 @@
1
+ datafactory_adapters/ARCHITECTURE.md,sha256=dPtZpbndX0MnbPFBaHigaHlEFZAJgwO53L6rZH3DD4U,2638
2
+ datafactory_adapters/__init__.py,sha256=xkrVUgT56OacoOU7UeAeIqUG01Igwi877LkgHHhtrKw,1009
3
+ datafactory_adapters/_conservation.py,sha256=oHlxR-SUGMFzl2jrsjFvOt2eAOi9WdjPzSVbIcbrJIA,3232
4
+ datafactory_adapters/_reconciliation.py,sha256=jax-p9w4COSk25Nbc05JYz1KN_zbHUiNjqV4zvLFLQo,2855
5
+ datafactory_adapters/_validation.py,sha256=k7d_wjUpPaNvUx1pVP7vdOwStyRVbqPyTHw50DIVmSY,1024
6
+ datafactory_adapters/feature_frame.py,sha256=1brckjABN0VG_27OSfx7a6_m_5f1io3EkNyiCUpfSHo,537
7
+ datafactory_adapters/grid_from_feature_frame.py,sha256=g4D7SzirpBeZLotWr7vyU6vKeeHNWSyJLL3wAHD33xQ,2451
8
+ datafactory_adapters/grid_to_country_month.py,sha256=KOCjMbvRK7G8f6WMTDY-VHKnggWya_Ti4eT0wjAgD7Q,5784
9
+ datafactory_adapters/grid_to_dataframe.py,sha256=fQiNNRa9ddBqEzJ7IE953ShHy9sL8nTbWG7-jwkF3G8,5176
10
+ datafactory_compilation/ARCHITECTURE.md,sha256=tLDzd1ddernOkMJJIOcDrmcuMVOmw3rsqaXOvPi_PbA,4516
11
+ datafactory_compilation/__init__.py,sha256=d5PILyNfu_Yg7VMobjJR2wrifYt2TA_JBBJSEPMU5G4,1101
12
+ datafactory_compilation/aggregation.py,sha256=RPsrmGu8nNfNT5P_KKdMrArt1hCYuObm5ndF8mOr4UY,1743
13
+ datafactory_compilation/compilation_config.py,sha256=ql8SJR1MwxrjymA4oo1P8VNXuky7JyH_gKLSKQzsJ-E,3186
14
+ datafactory_compilation/conservation.py,sha256=vlGgeg-ZTN_WtHH-YRlZDLrj7eAuaPJeZGy_BIGfUZ0,1124
15
+ datafactory_compilation/grid_compilation.py,sha256=RWBP7I-Pz155lqGMlMFdth0nmpMIdHmHvsSjqigClX8,11251
16
+ datafactory_compilation/output.py,sha256=RhnGriReY4NHmrklaHO4QUdKIZ5fklFQ9GeIK679SjI,2468
17
+ datafactory_compilation/preflight.py,sha256=26c4eO0Cn62Cv7mihVP7idE3L6l6JR9EVGA-8_lbbiI,1629
18
+ datafactory_compilation/pregridded_compilation.py,sha256=JGHgAgirqwq_HpxnAVo9O1HkBcQs3VO_GZl41iif4hE,9113
19
+ datafactory_consolidation/ARCHITECTURE.md,sha256=TGBleL14AffkAinQ20W7jcE-sk8V_-yBkTH9vz8lqLY,3194
20
+ datafactory_consolidation/__init__.py,sha256=mQSOXh0BSp_x6YReXPk3JnU2OGH67UEejcGw31-C0ow,916
21
+ datafactory_consolidation/consolidation_result.py,sha256=Ikt5-TvMOtybzq0RMvlVsTwXO-DBGJNdoGuXTzoQ0g4,812
22
+ datafactory_consolidation/event_store.py,sha256=zeJxJbGmBvrjcoseNb7TDG7L8sOM6oeiDvveo6XYurg,1776
23
+ datafactory_consolidation/tagging.py,sha256=xJ7iMMWfRIYlPRbPjgxRIT8K4tzzdFyipQMAZ5Au5JY,1247
24
+ datafactory_consolidation/consolidators/__init__.py,sha256=U8beLd8nNp2nja7_TYwGwm0moNEzJipsZMFoS7Y0Mn4,919
25
+ datafactory_consolidation/consolidators/acled.py,sha256=OteFTldwJU-BswNYH9pS2QgY0pYzFXZU4HY_dvtKatg,13880
26
+ datafactory_consolidation/consolidators/ucdp.py,sha256=P_yNR85VjhMML0Ai-34FgtW-fONGTSA3aMOBVFsYE5A,16352
27
+ datafactory_harvester/ARCHITECTURE.md,sha256=65CI_d5-TrbTYWNxHkOLQVS0z-AdhciNHGI9MRlkh_c,6167
28
+ datafactory_harvester/__init__.py,sha256=VH_RPwFfzfTQw0ZlX2zZLCjj7w42ZAD_jMReDG_fhqc,1050
29
+ datafactory_harvester/event_validation.py,sha256=y2b4BmFPhvg0BskIrkiwosSiMyBV0D1mfnt2ne4lp7A,12112
30
+ datafactory_harvester/harvest_runner.py,sha256=8Kb9doQzZXMJgffAz1oMkfYMeeSgMQLETkqIhsYEyj8,1859
31
+ datafactory_harvester/pipeline_runner.py,sha256=s_XJOUi-lfYzdzjLxWp_usTWy9llq_5-GbeVG7_EQxs,3671
32
+ datafactory_harvester/snapshot_storage.py,sha256=-VewY1oXRyCf17lDEIXFH5P4euQNTdRyKaxf2ucn_b4,3281
33
+ datafactory_harvester/validation.py,sha256=BXyp6efoFzPqUgchQa69GKPn54n8umrt25H4akPNIj4,2126
34
+ datafactory_harvester/sources/__init__.py,sha256=6435maMqY4Pzz8eK-uZAYmbYe4Aivqm7J6zdq7NA5N4,988
35
+ datafactory_harvester/sources/_ucdp_common.py,sha256=YcebgNbiELvfd-In5k4d5PXAtb2M4X_-T0Tc0NexGm0,1045
36
+ datafactory_harvester/sources/acled.py,sha256=1wTFZQZc9DtEniALKxgcz5Y4aK2BQYt31bzJ6LB3NaU,20366
37
+ datafactory_harvester/sources/gaul_admin.py,sha256=I-4naie928yXJnIQ3otlTRqbos1RGupz4QEeR-1bk00,16400
38
+ datafactory_harvester/sources/ghsbuilts.py,sha256=s0FJ4ax8ARZI9ajik5crypv7agu6tnrnh_lbCq6uIUo,7987
39
+ datafactory_harvester/sources/ghspop.py,sha256=6cjXk6QgDnDswbu4QKXhu2DQ7atUz0zSIAOtkaLpLKk,7732
40
+ datafactory_harvester/sources/priogrid_static.py,sha256=WTPbxDoizGjT9dCnNI8ACyKWvqHEo3sBz45UnyPC1Co,10129
41
+ datafactory_harvester/sources/shdi.py,sha256=1Tv-48h9NLPu6GZ-YE7gnV2GdkG4zlC4iYKt1EG418I,18426
42
+ datafactory_harvester/sources/ucdp_annual.py,sha256=7SJ4MFfReTPvsGfgqeycTdTmiUJ59iOU7THIgibwK0A,18876
43
+ datafactory_harvester/sources/ucdp_candidate.py,sha256=xWHCtImfra76CLrk3zm3Hn-VIPQzlsvVh94fMOUsV3I,12584
44
+ datafactory_harvester/sources/ucdp_dot9.py,sha256=NVmfdN5gpBG34EB_bu87QGEvEFW9hpefBGSLQnm_s9w,11438
45
+ datafactory_harvester/sources/vdem.py,sha256=8EzGmY1KqPEdn78_I6vwzviW5vDjPuuXqIdQTfprrJM,9580
46
+ datafactory_http/__init__.py,sha256=YEusoun7boDDxhClWEEf4pdSybSSjwc7OFpeLPBWY8A,216
47
+ datafactory_http/retry.py,sha256=Afi81I4Q_Ghwap0964p0ot8uwKrk6bUe1M-as-oXF3g,2862
48
+ datafactory_priogrid/ARCHITECTURE.md,sha256=9mwk6IFyK23kHazGqume8v6zor7fCOqIH2HEsYaTZTk,3357
49
+ datafactory_priogrid/__init__.py,sha256=7TQolg1hxNKTXKgtEPOsdnN5xMtY1ZhcJmqz9hT35R0,1507
50
+ datafactory_priogrid/cell_generator.py,sha256=MpR8q87FWKXS1HNrHabU-R-dPI7eNeYSWKzKNTl7b30,4352
51
+ datafactory_priogrid/grid_config.py,sha256=Gy7hAZ74bSZN3_-w6jbZpcpZfZ8SSxcG5j7Mrv6bJEs,3673
52
+ datafactory_priogrid/land_mask.py,sha256=O0fpxvioClTDkNCVHQ420NNI0nd-NimLfwudcyj4fH0,1827
53
+ datafactory_priogrid/parity_validation.py,sha256=antQeBQdl6LFfj_N87hXZx_hQptZXMkYtxuh0dfxa4M,5054
54
+ datafactory_priogrid/shapefile_harvester.py,sha256=gGW503f3XJToWcdQ88EW1ypXYElNczb2m0NZ6G0mIdo,4951
55
+ datafactory_priogrid/shapefile_reader.py,sha256=LqIyU-YsO7kOkle0rZDJ30qeP2ViX3c-gH-Hq-Nukbc,4376
56
+ datafactory_priogrid/spatiotemporal.py,sha256=Rq7kjvRQ1Swa0nzHS3xFamhY6ypM1wzY1N9vPNTHHtU,2125
57
+ datafactory_priogrid/temporal_config.py,sha256=KmFdgWBAHu4HuiifPcuJ2NV9kZ9kQfM736Ci7xQsEyM,2889
58
+ datafactory_priogrid/temporal_generator.py,sha256=xSb5v-obGYW_qAskmQ7AaFWJivKfCSZgEpKt9Cb97ts,1921
59
+ datafactory_provenance/ARCHITECTURE.md,sha256=QxZeJmYLnkLf_wVwTAMGohf_jtplLEV3kcY3Hak3uVY,3423
60
+ datafactory_provenance/__init__.py,sha256=VKYjLcHeefFPmKIZlaWNEHHISHrm63F6fLu-9NatB6g,2005
61
+ datafactory_provenance/constants.py,sha256=tQlesIenbnRlYbyW1V1sXWxvzTn4YWpW7bvPFYdHwy8,103
62
+ datafactory_provenance/digests_and_ledgers.py,sha256=fKHxTuj4daO6YFo8KxefHwVNRG5Hr6QL-y_FTUzuKlk,11944
63
+ datafactory_provenance/health.py,sha256=z6PngydYcnuHO1-aB4PTdinrGYOjjLXdZC9J_dX3zIQ,9249
64
+ datafactory_provenance/pipeline_lock.py,sha256=fbRGmd8kpsSsNn_bqV8Y-d61XdAe2ndYbuNsLs1mu8Y,6430
65
+ datafactory_provenance/registry.py,sha256=AXbzELw-ztmL4tij5pQXWowE6-QGAGHs0C9utBioZ-g,2865
66
+ datafactory_provenance/skip.py,sha256=tS3f4Sb-JRrqamqVoqMUaATJHF6cM7AtwwqsbpQnoHE,6437
67
+ datafactory_provenance/source_registry.py,sha256=m7-BNU1SBtShQ3outWt_wUHeqtWe6r6wjdXx1db3nIU,13821
68
+ datafactory_query/ARCHITECTURE.md,sha256=QUOLdEYk8kU0pFWtox_trZEHWk13cE263maA_pbb6AA,4328
69
+ datafactory_query/__init__.py,sha256=PqtJE4hWMxnsvd-9gHtMGM1v4Mi6wB9Ju6MlDoQy_DA,952
70
+ datafactory_query/africa_me_gaul_pgids.json,sha256=b2zLVhfRihImuA_kvA1xed-Lqv1anR8UnwDNPWNNyf8,103785
71
+ datafactory_query/africa_me_legacy_pgids.json,sha256=WCIIHUtknlryG9awCaIYEy6FplasD64TrZmMvrP1MN4,103821
72
+ datafactory_query/backends_npy.py,sha256=M1TUOvGtEXCdSjduqoJk8v0h8AI-cN9mtgEIMQicp2I,3181
73
+ datafactory_query/backends_zarr.py,sha256=FcYiy4oaoj2rhqzFrrjle940U88QOdQCY2B0ISPWhPw,8476
74
+ datafactory_query/coverage.py,sha256=JxQ6MXOYakNESHBO9Qs97DrNa-iVk0IOtTgNhSUyLeU,2032
75
+ datafactory_query/dataset.py,sha256=o_xPHQgv9HeLmsB10wyzN8-ZvMfTl7BlGwXveG8yw9U,8563
76
+ datafactory_query/defaults.py,sha256=6pWUEx1UE24ZOoXWctpB_9yaRX9iGaMme4C4OyUfGcc,2938
77
+ datafactory_query/land_gaul_pgids.json,sha256=9007K7vA0FO-CRXCZ8jPEZdVaF0smVub1nonMx63E_I,512120
78
+ datafactory_query/land_pgids.json,sha256=DHXui_iFdKb7kCDu_KpGxwdflBiKVQIydSzWNwzqvXM,512718
79
+ datafactory_query/output_format.py,sha256=3Y_y2qYy3af0qsc9aQzMCAm1bX6P1_61OhfJllMN6OA,1886
80
+ datafactory_query/regions.py,sha256=sjKFkJKF9S2uAv1sVvFjWQ-9LAQOwz5qw2FlU1Ke1M4,9860
81
+ datafactory_query/temporal.py,sha256=ynl0OJ-d6DvKDFuSF9BE3DpTQzVe848EbvSURDU619Q,3493
82
+ datafactory_viewpoint/ARCHITECTURE.md,sha256=Sp9TvMWq0dlzsO_S4CpkntGfnUuSyzn7p4nvUKe9x3Y,4286
83
+ datafactory_viewpoint/__init__.py,sha256=1mDuqjYXSb5GsC18iN1PA1SUAMc-OnAD10d5fu0ioOk,1089
84
+ datafactory_viewpoint/profiles.py,sha256=U5TR_6YXm3tw2bCB-oVktFBv2vi0-8V03jiZkwgLbtU,4389
85
+ datafactory_viewpoint/raster_io.py,sha256=8ZfHYe_MvFzX9CMVo_6ivuAVhhROFgYeJML3sZsMTp8,1406
86
+ datafactory_viewpoint/spatial_distribution.py,sha256=CIbmn4wm8MC24MpnZ5hipmJAA7yZj7KOj9y5YTduKtU,5978
87
+ datafactory_viewpoint/spatial_weights.py,sha256=R9jlPHsXVmuY23nNacFpHd3Q0b7-CWEBbZ_h9cht_Mo,6659
88
+ datafactory_viewpoint/survivorship.py,sha256=IoQY-OD3p8DEMHbO3q6o86fgvLxSRvurQWqtbb1GizI,3172
89
+ datafactory_viewpoint/temporal.py,sha256=dRV-zsXyrYBM623eoC_O6AI7CN1qZxC4nRK6g5C8u50,3055
90
+ datafactory_viewpoint/temporal_distribution.py,sha256=3h9wS8LiaVrhne7AvUL-Y408d3htFGXwoPGIR2SHs-E,8819
91
+ datafactory_viewpoint/viewpoint_config.py,sha256=eL6Bcs1B_m-FHAkdUkLmcvNnS9muuMVs9bZoGRgrFPQ,4155
92
+ datafactory_viewpoint/viewpoint_result.py,sha256=zn13Ixx7gG3RoBqZMxkvDw1txK_zcOP89f6FtwUfkYc,1045
93
+ datafactory_viewpoint/builders/__init__.py,sha256=_UfhpExrq4FNf3YS3zRzyQcaXPpOCfZ1KDCgjoT2nvg,878
94
+ datafactory_viewpoint/builders/acled_v1.py,sha256=zugJlCPoUyIIrlQYrhAbhdSsclDbZCj73LdFDRT4308,5809
95
+ datafactory_viewpoint/builders/ghsbuilts_v1.py,sha256=F30JQDc_F7Ad4F838IM-CDUA9zya1X8o2Pq3rMsXReM,10600
96
+ datafactory_viewpoint/builders/ghspop_v1.py,sha256=NHn80hAQ6qbi4dd3Je8fVzwBALjeRh4R6Sb7ERaqIqM,13923
97
+ datafactory_viewpoint/builders/shdi_v1.py,sha256=a1gNrLpCoOqEFED72PdgNnNiVDuMb4X3Izvr2QVLJw0,11245
98
+ datafactory_viewpoint/builders/ucdp_v1.py,sha256=5IqBXPtt3KTjO01dR3i05jyJ2X6VVzC4xDVBUrB9JYs,14967
99
+ datafactory_viewpoint/builders/vdem_v1.py,sha256=A24Zt4Kc3Q9T_12VrefTBtKQ1MtaMtj2woTT5hABJOU,11899
100
+ views_datafactory-1.9.0.dist-info/METADATA,sha256=_UB67SUO2zlG3AN3AaxHJoCNjBg3mj1x8mfI2oOB8rA,33822
101
+ views_datafactory-1.9.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
102
+ views_datafactory-1.9.0.dist-info/licenses/LICENSE,sha256=Pd39JkiREFciWHbwg50y6drerp2JC7dmpJaVMVPYRdo,1087
103
+ views_datafactory-1.9.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any