Catalog PyPI
Back to packageRELEASE DETAILS

0.2.1

PyPI

a5-fast

Fast Python bindings for the A5 discrete global grid system

a5dggsgeospatialgridspatial-index
Published31 Mar 2026
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 0.2.1 documentation

a5_fast

Fast Python bindings for the A5 discrete global grid system, powered by Rust and PyO3.

Installation

pip install a5_fast

Usage

import a5_fast

# Convert (lon, lat) to a cell index at resolution 5
cell = a5_fast.lonlat_to_cell(13.4, 52.5, 5)

# Get the centre of a cell
lon, lat = a5_fast.cell_to_lonlat(cell)

# Get the boundary polygon of a cell
boundary = a5_fast.cell_to_boundary(cell)

# Batch convert coordinates (flat list: [lon0, lat0, lon1, lat1, ...])
cells = a5_fast.lonlat_to_cell_batch([13.4, 52.5, -73.9, 40.7], 5)

# Traverse the hierarchy
parent = a5_fast.cell_to_parent(cell)
children = a5_fast.cell_to_children(cell)

# Neighbours within k hops
disk = a5_fast.grid_disk(cell, 1)

# Compact / uncompact cell sets
compacted = a5_fast.compact(cells)
expanded = a5_fast.uncompact(compacted, 5)

# Hex conversion
hex_str = a5_fast.u64_to_hex(cell)
cell = a5_fast.hex_to_u64(hex_str)

# Metadata
res = a5_fast.get_resolution(cell)
area = a5_fast.cell_area(5)           # area in m² at resolution 5
n = a5_fast.get_num_cells(5)          # total cells at resolution 5
base = a5_fast.get_res0_cells()       # the 12 resolution-0 cells

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

12 collected
a5_fast-0.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

bdist_wheel · 302.24 KB · Python cp310

Source file
a5_fast-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

bdist_wheel · 309.59 KB · Python cp310

Source file
a5_fast-0.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

bdist_wheel · 301.93 KB · Python cp311

Source file
a5_fast-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

bdist_wheel · 309.39 KB · Python cp311

Source file
a5_fast-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

bdist_wheel · 300.91 KB · Python cp312

Source file
a5_fast-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

bdist_wheel · 308.6 KB · Python cp312

Source file
a5_fast-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl

bdist_wheel · 270.46 KB · Python cp313

Source file
a5_fast-0.2.1-cp313-cp313-macosx_11_0_arm64.whl

bdist_wheel · 264.73 KB · Python cp313

Source file
a5_fast-0.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

bdist_wheel · 301.01 KB · Python cp313

Source file
a5_fast-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

bdist_wheel · 308.44 KB · Python cp313

Source file
a5_fast-0.2.1-cp313-cp313-win_amd64.whl

bdist_wheel · 162.47 KB · Python cp313

Source file
a5_fast-0.2.1.tar.gz

sdist · 7.36 KB · Python source

Source file

Repository

PENDING
afterrealism/a5_fast

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:86cbc3dee56483d5f10daaf3d8e302c8d73ef4ffd61c51a5f3186d9c167fd1e1

Other collected versions

View all collected versions →