Skip to main content

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.

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.3.0.tar.gz (53.4 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.3.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yoro-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c3cb0259177a64be98a99a9d6ece0088a826268db6233f05ef51a2c0b0da3bfe
MD5 0c3a4c01cf1ff99a3934ba301d1f0024
BLAKE2b-256 87aa3de5ead750039bf5945091268a077ce47763a647b74d150b6b0fa568c1ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro-0.3.0.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.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for yoro-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40a5dd1f6f3edd9e646484b65b41fed977932059bc43c383b376d97c4136e9b0
MD5 66f8e37410a015e6f6693cbccf418ac0
BLAKE2b-256 fd20cc53a2e2d4792c621381b31d8f35eac14d55995929bce1d4f58ce5312f66

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoro-0.3.0-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 Sentry Error logging StatusPage Status page