quadbin-py
Python library for quadbin.
Install
pip install quadbin
Usage
>>> import quadbin
>>> longitude = -3.7038
>>> latitude = 40.4168
>>> resolution = 10
>>> quadbin.point_to_cell(longitude, latitude, resolution)
5234261499580514303
API
| Function |
|---|
is_valid_index(index) |
is_valid_cell(cell) |
cell_to_tile(cell) |
tile_to_cell(tile) |
cell_to_point(cell, geojson=False) |
point_to_cell(longitude, latitude, resolution) |
cell_to_boundary(cell, geojson=False) |
cell_to_bounding_box(cell) |
get_resolution(index) |
index_to_string(index) |
string_to_index(index) |
k_ring(origin, k) |
k_ring_distances(origin, k) |
cell_sibling(cell, direction) |
cell_to_parent(cell, parent_resolution) |
cell_to_children(cell, children_resolution) |
geometry_to_cells(geometry, resolution) |
cell_area(cell) |
Development
Make commands:
- init: create the environment and install dependencies
- lint: run linter (flake8) + fix (black)
- test: run tests (pytest)
- publish-pypi: publish package in pypi.org
- publish-test-pypi: publish package in test.pypi.org
- clean: remove the environment
NOTE: Python2 is supported to enable the usage in platforms like Amazon Redshift.
Metadata
Release files for quadbin 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quadbin-0.2.2.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quadbin-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / quadbin-0.2.2.tar.gz
| Download URL | quadbin-0.2.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e121344ca70f966b8015a7b6fac56402bbce65ddcde174bd79d24b8accc6253c
|
|
BLAKE2b-256 checksum How to use checksums |
e9acabdc4af03abe4767133c327df81d65b7df2b8bf720210240ecce8e1b37fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Release files / quadbin-0.2.2-py3-none-any.whl
| Download URL | quadbin-0.2.2-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7c3ee3a197ca5baf660cbd4646040a7ab85b6aeeab71ae6069729cdf81a1b81
|
|
BLAKE2b-256 checksum How to use checksums |
3947c3be6f86f6536450ff2a1054606f99d35d9dd78256b4db6306c5942a37d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|