Public world-orchestration layer for Cadis runtime dispatch
Project description
cadis-global
cadis-global is the public orchestration layer for:
- world-level resolution (
countryor terminal world state) - bundled CGD dataset loading
- runtime dispatch via
cadis-runtime
Scope (v0.1.0)
- Uses
cadis-runtimeas admin execution engine. - Ships with bundled
ne.global.v0.1.0.cgd. - Supports only explicitly configured/known ISO2 datasets (
TW,JPby default). - Returns deterministic
partialorfailedenvelopes for unsupported/missing/error paths.
Install
pip install cadis-global
Public API
Bundled CGD world dataset mode (default):
from cadis_global import GlobalLookup
lookup = GlobalLookup.from_defaults(
cache_dir="/tmp/cadis-cache",
update_to_latest=False,
)
result = lookup.lookup(25.0330, 121.5654)
Custom local CGD override:
from pathlib import Path
from cadis_global import GlobalLookup
lookup = GlobalLookup.from_defaults(
cgd_path=Path("/path/to/custom/ne.global.v0.1.0.cgd"),
cache_dir=Path("/tmp/cadis-cache"),
update_to_latest=False,
)
result = lookup.lookup(25.0330, 121.5654)
Notes:
"cgd"mode uses bundledne.global.v0.1.0.cgdby default.- Set
cgd_pathto override the bundled dataset with a custom local CGD file. - CGD binary spec lives at
cadis_global/data/CGD_SPEC.md. - Current bundled dataset/spec uses
float32coordinates (bbox + geometry points). - Custom CGD files must follow the same float32 layout expected by this runtime.
Envelope contract:
{
"lookup_status": "ok|partial|failed",
"engine": "cadis-global",
"version": "0.1.0",
"reason": "nullable status reason",
"world_context": {"...": "world resolver payload"},
"admin_result": {"...": "raw cadis-runtime payload or null"}
}
Execution flow
- Resolve world country/terminal state (
open_sea,antarctica,no_sovereign_land). - If terminal: return world-only result (
admin_result = null). - If country found: bootstrap/cache runtime for ISO2.
- Execute
runtime.lookup(lat, lon). - Return unified envelope with
world_context+ untouchedadmin_result.
Runtime bootstrap note:
- Country runtime bootstrap is lazy per ISO2 and may trigger on-demand CDN download on first country hit.
- First lookup latency for an ISO2 can increase while bootstrap/download is in progress.
- If bootstrap/download cannot complete, result is deterministic
partialwith reason such asmissing_datasetorruntime_bootstrap_error.
Status semantics
ok: world resolution succeeded; runtime either not needed (terminal) or returned a valid payload.partial: world resolution succeeded but admin runtime could not return a valid payload.failed: world resolution failed before runtime dispatch.
Common reason values for partial:
unsupported_country_datasetmissing_datasetruntime_bootstrap_errorruntime_dispatch_errorruntime_invalid_responseadmin_interpretation_unavailable
Package boundaries
cadis-global: orchestration/bootstrap/world routing.cadis-runtime: deterministic dataset interpreter only.cadis-core/cadis-cdn: internal-by-contract components.
Distribution note
cadis-global-datasettooling is internal and not published to GitHub.- The built global dataset artifact (for example
ne.global.v0.1.0.cgd) is distributed alongsidecadis-global. - Bundled dataset
ne.global.v0.1.0.cgdis approximately 12 MB (uncompressed package content).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cadis_global-0.1.0.tar.gz
(8.9 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cadis_global-0.1.0.tar.gz.
File metadata
- Download URL: cadis_global-0.1.0.tar.gz
- Upload date:
- Size: 8.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b76d2c8834de193c3185347ccdcfb50e2d9e5600333c035dbd536e044eb9e2d4
|
|
| MD5 |
acf2cd1d6b66cf6cf79e4b25b66c8e5c
|
|
| BLAKE2b-256 |
0cfb3868aea62da2d0c182e247efd3d14b8103fef2c57d58bf1b059d84e24c89
|
File details
Details for the file cadis_global-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cadis_global-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd1ccab8bb9945f589f3114beee3a639a40ba996f4e9a861b90478ca13490d36
|
|
| MD5 |
b9e62c861b7474c7fd46eb8254971af9
|
|
| BLAKE2b-256 |
72fb84f89a67193fb307e51f8fcfb1e1e939eace180a694d52fb32226b853b54
|