Skip to main content

Lat/Lon to administrative hierarchy lookup with managed datasets.

Project description

cadis

cadis is the single public control layer of the Cadis system.

It orchestrates:

  • dataset install and bootstrap lifecycle
  • world resolution and runtime execution coordination
  • deterministic state to user-facing actions
  • SDK + CLI + REST integration surfaces

Install

pip install cadis

Quick Start (SDK)

from cadis import CadisSDK

sdk = CadisSDK()
out = sdk.lookup(25.0330, 121.5654)
print(out["execution"]["lookup_status"])

Interaction Modes

Core APIs

  • lookup(lat, lon)
  • bootstrap(iso2, ...)
  • reinstall(iso2, ...)
  • info()
  • CadisSDK
  • CadisRemoteSDK

Dataset Lockdown

By default, Cadis serves lookups from any installed dataset in the cache folder.

To restrict serving to a subset of installed country datasets, set:

export CADIS_ALLOWED_ISO2=TW,JP

When enabled, Cadis fails lookups outside the allowlist with state.dataset.status = "blocked" and refuses bootstrap/reinstall for those countries.

Architecture

cadis (public control layer)
  -> world resolution (`cadis.world`)
  -> dataset install/provisioning (`cadis.cdn`)
  -> dataset bootstrap/lookup runtime (`cadis.runtime`)
  -> deterministic structural engine (`cadis.core`)
  -> remote REST surface (`cadisd`)

ISO Code Policy

Cadis uses ISO 3166-1 alpha-2 codes as technical identifiers.

These codes are interpreted strictly according to the ISO 3166 standard and are used solely for data partitioning and administrative dataset selection.

Cadis does not interpret ISO codes as political statements or sovereignty declarations.


Supported ISO 3166-1 Entities

ISO2 Name Dataset ID Package Size (tar.gz) Unpacked Size Release Date (UTC)
TW Taiwan tw.admin 1.8 MB 2.0 MB 2026-02-28
JP Japan jp.admin 20.4 MB 21.3 MB 2026-03-05
GB United Kingdom gb.admin 4.8 MB 5.1 MB 2026-03-11
IT Italy it.admin 22.8 MB 25.7 MB 2026-03-11

Additional ISO 3166-1 entity datasets will be published as they become available.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cadis-0.3.4.tar.gz (8.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cadis-0.3.4-py3-none-any.whl (8.9 MB view details)

Uploaded Python 3

File details

Details for the file cadis-0.3.4.tar.gz.

File metadata

  • Download URL: cadis-0.3.4.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

Hashes for cadis-0.3.4.tar.gz
Algorithm Hash digest
SHA256 9b91109049eb90738cbc7e01afab1ea74388fde939b7085bf3e3566fbe47d757
MD5 041ecff63d7c54166aaa2b5d4c29c36a
BLAKE2b-256 145d83b1f430b9eae65a2b9a55253737aba06dca22f00d4736992d0b1f0e495e

See more details on using hashes here.

File details

Details for the file cadis-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: cadis-0.3.4-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

Hashes for cadis-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7cc04713685b80b16349cb1157f7851f10254dbc828fb6d11e8b23adca16237f
MD5 b9466a9bd4d1664b6e14007c5e0d57e4
BLAKE2b-256 84ae400f7d3db3d2f661d09bfa0af8f3f03b623f4dcc95afe846e59385e453ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page