Skip to main content

Yoro — Geographic addressing via Hilbert curves (GPS ↔ compact codes). 'Yoro' means 'place' in Manding.

Project description

Yoro

Documentation | PyPI | GitHub

Geographic addressing via Hilbert curves — GPS ↔ compact alphanumeric codes.

"Yoro" means "place" in Manding (West Africa).

Install

pip install yoro              # core only
pip install yoro[django]      # Django/GeoDjango integration
pip install yoro[fastapi]     # FastAPI server
pip install yoro[all]         # everything

Quick start

import yoro

code = yoro.encode(6.8, -5.3, domain="CI")   # "CI-..."
result = yoro.decode(code)                     # {"lat", "lon", "bounds", ...}
nbrs = yoro.neighbors(code)                    # 8 adjacent cells

Django integration

# settings.py
INSTALLED_APPS = [..., "yoro.django"]

# urls.py
urlpatterns = [
    path("api/v1/yoro/", include("yoro.django.urls")),
]

FastAPI server

yoro serve --port 8000
# or
python -m yoro.fastapi

CLI

yoro encode 6.8 -5.3 --domain CI
yoro decode CI-4H7A3B

License

MIT — Paul Guindo / Altius Academy SNC.

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

yoro-0.2.1.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

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

yoro-0.2.1-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file yoro-0.2.1.tar.gz.

File metadata

  • Download URL: yoro-0.2.1.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yoro-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2b73fabf564a2a19d5d4f7dc5dc03b8ac4da35895baf31966d27168de8e1a24c
MD5 a2048a302077c427bc9477445dea48bc
BLAKE2b-256 4a3fd43c829f9fac233f2303a8531431d400f8de45c6a5e7118ba63ef5ae8487

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro-0.2.1.tar.gz:

Publisher: publish.yml on Altius-Academy-SNC/yoro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yoro-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: yoro-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yoro-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 781c58033b52a7c8a98d8fa963e5c1a854628b08be62e6403e23db21c54acecb
MD5 6891dfc64e725fcdb516a7f2c83c99a1
BLAKE2b-256 4a585cc7a9afe70d8dba2e052dfd3e9097f00c13e813dae136e2428dbc25c84c

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro-0.2.1-py3-none-any.whl:

Publisher: publish.yml on Altius-Academy-SNC/yoro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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