gridpin-orchestrators
Offline geocoding steps for Airflow, Dagster and Prefect. Nothing leaves the machine that runs the step: the country file is local, there is no API key and no network call per address.
One step everywhere: a CSV in, the same CSV with the gp_* answer columns out — byte for byte what
gridpin batch sheet in.csv out.csv --column address writes — and a receipt of the run:
{"rows": 4, "answered": 2, "weak": 0, "without_address": 1, "seconds": 0.008, "input": "orders.csv",
"output": "orders_geo.csv", "sheet": "us"}
The step is gridpin.files.geocode_file from the engine wheel (gridpin 0.10 or later); this package fits it to each
orchestrator.
Install
pip install "gridpin-orchestrators[airflow] @ git+https://github.com/gridpin/gridpin@v0.10.0#subdirectory=integrations/orchestrators"
python -c 'import gridpin; print(gridpin.sheets.fetch("us"))' # the country file, once, verified against the release
Use [dagster] or [prefect] for the others.
Airflow
from gridpin_orchestrators.airflow import GridPinGeocodeOperator
GridPinGeocodeOperator(task_id="geocode", input_csv="orders.csv", output_csv="orders_geo.csv",
sheet="us", column="address")
input_csv, output_csv and sheet are templated. The receipt is the task's return value (XCom).
Dagster
from gridpin_orchestrators.dagster import geocoded_csv_asset
orders_geo = geocoded_csv_asset("orders_geo", input="orders.csv", output="orders_geo.csv", sheet="us")
The receipt is the materialization metadata; deps= names the upstream assets that make the input.
Prefect
from prefect import flow
from gridpin_orchestrators.prefect import geocode_csv
@flow
def nightly():
geocode_csv("orders.csv", "orders_geo.csv", "us", column="address")
The receipt is the task result and a table artifact named gridpin-receipt.
Arguments
| Argument | Meaning |
|---|---|
| input, output | CSV paths; the output is written next to itself and renamed at the end, so a failed run leaves no half file |
| sheet | a country code (us, downloaded once by gridpin-fetch) or the path of a .bin file |
| column | the address column, or a list of columns joined with ", " (default address) |
| poi | optional places layer, as in the engine |
A row without an address, or without an answer, keeps its columns and gets empty gp_* cells with
gp_match_status U. A weak answer is marked gp_weak true: check it before use.
Tests
make orchestrators-venv (one venv per orchestrator: their pins clash) and make test-orchestrators run the step for
real in each, on the Monaco smoke sheet, and compare the output with the CLI byte for byte. Checked with Airflow 3.4.0,
Dagster 1.13.30 and Prefect 3.9.3.
Metadata
Release files for gridpin-orchestrators 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gridpin_orchestrators-0.1.0.tar.gz | 9.5 kB | With provenance | Details for gridpin_orchestrators-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gridpin_orchestrators-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gridpin_orchestrators-0.1.0-py3-none-any.whl |
Total release size: 19.3 kB
Release files / gridpin_orchestrators-0.1.0.tar.gz
| Download URL | gridpin_orchestrators-0.1.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a27044ba2001385add3ecd6cf827e6f52e24999f0e8a0bc3a46f431ebeadea80
|
|
BLAKE2b-256 checksum How to use checksums |
e9f9b20f6a7d6ad9f4e5f22e8ca17097f476d17951d21684729d80fabf60e204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gridpin_orchestrators-0.1.0-py3-none-any.whl
| Download URL | gridpin_orchestrators-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d896fdfa8f461938160d5a4c4570a13037cd6b4e0e8c3f02d67a01da306f17ad
|
|
BLAKE2b-256 checksum How to use checksums |
6ed7f5da07d47389ea0a7e184dbe4660dd105992370627b00ddc2a6a1e4d49cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for gridpin-orchestrators 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gridpin_orchestrators-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.