Reusable NYC geography resources, normalization helpers, and boundary loaders for Python tools.
Project description
nyc-geo-toolkit
Reusable NYC geography resources, normalization helpers, and boundary loaders for Python tools.
What this package provides
nyc-geo-toolkit packages canonical NYC boundary layers and the small helper
API needed to discover, normalize, load, subset, and convert them.
The initial release focuses on:
- packaged boundary layers for boroughs, community districts, council districts, NTAs, ZCTAs, and census tracts
- canonical normalization helpers for layer names and boundary values
- typed boundary models for boundary collections and features
- GeoJSON and optional DataFrame / GeoDataFrame helpers
- bbox clipping for typed boundary collections
Install
Base install:
pip install nyc-geo-toolkit
With pandas helpers:
pip install "nyc-geo-toolkit[dataframes]"
With geopandas + shapely helpers:
pip install "nyc-geo-toolkit[spatial]"
With all optional helpers:
pip install "nyc-geo-toolkit[all]"
Quick example
from nyc_geo_toolkit import load_nyc_boundaries, list_boundary_layers
print(list_boundary_layers())
queens = load_nyc_boundaries("borough", values="Queens")
print(queens.features[0].geography_value)
Public surface
The stable public API centers on:
list_boundary_layers()list_boundary_values()load_boundaries()load_nyc_boundaries()load_nyc_boundaries_geodataframe()load_nyc_census_tracts()load_nyc_council_districts()load_nyc_neighborhood_tabulation_areas()normalize_boundary_layer()normalize_boundary_value()normalize_boundary_values()boundaries_to_geojson()boundaries_to_dataframe()clip_boundaries_to_bbox()
Documentation
Docs: Home, Getting Started, API Reference, Architecture, Contributing
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nyc_geo_toolkit-0.1.1.tar.gz.
File metadata
- Download URL: nyc_geo_toolkit-0.1.1.tar.gz
- Upload date:
- Size: 8.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31fe08a1d0a4230b66df5cef44e2c0ecbd3ace45b61693fd2ee43f2b9501a67e
|
|
| MD5 |
8424974d021a2006737c86c242a9f8a0
|
|
| BLAKE2b-256 |
c9d26369198ec8d9e013556e0da380defc74f79411742032350e229141614999
|
Provenance
The following attestation bundles were made for nyc_geo_toolkit-0.1.1.tar.gz:
Publisher:
cd.yml on random-walks/nyc-geo-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nyc_geo_toolkit-0.1.1.tar.gz -
Subject digest:
31fe08a1d0a4230b66df5cef44e2c0ecbd3ace45b61693fd2ee43f2b9501a67e - Sigstore transparency entry: 1210391290
- Sigstore integration time:
-
Permalink:
random-walks/nyc-geo-toolkit@cfb5bceac220a9d433cdbd0ea641693aec3d4364 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/random-walks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@cfb5bceac220a9d433cdbd0ea641693aec3d4364 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nyc_geo_toolkit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nyc_geo_toolkit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cef6634356525d91db5377101a0c1d2124f18951da8b6eac93b9559cfc07c16c
|
|
| MD5 |
26786361d7ead44f4fa646735fb6ada8
|
|
| BLAKE2b-256 |
b11974a28d06569495676a62917dd9129a37d49bd19e0e010f4c93b1a5b48698
|
Provenance
The following attestation bundles were made for nyc_geo_toolkit-0.1.1-py3-none-any.whl:
Publisher:
cd.yml on random-walks/nyc-geo-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nyc_geo_toolkit-0.1.1-py3-none-any.whl -
Subject digest:
cef6634356525d91db5377101a0c1d2124f18951da8b6eac93b9559cfc07c16c - Sigstore transparency entry: 1210391320
- Sigstore integration time:
-
Permalink:
random-walks/nyc-geo-toolkit@cfb5bceac220a9d433cdbd0ea641693aec3d4364 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/random-walks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@cfb5bceac220a9d433cdbd0ea641693aec3d4364 -
Trigger Event:
release
-
Statement type: