Skip to main content

ObjectNat

Object-oriented Network Analysis Tools

Code style: black PyPI version Tests and coverage Coverage License Docs

РИДМИ (Russian)

ObjectNat logo

ObjectNat is an open-source Python library for spatial analysis of urban objects (buildings, services, street observers, noise sources), developed by the IDU team at ITMO University. It computes accessibility, coverage and service provision on street graphs from IduEdu, visibility in 2D and over building heights, noise levels and insolation. Inputs and outputs are GeoPandas GeoDataFrames; the computationally intensive parts run in a compiled Rust extension.

Documentation · Examples · Документация на русском


Methods

Isochrones (docs, example). get_graph_isochrones and get_stepped_graph_isochrones return the area reachable from origins within a travel time (minutes) or network distance (metres) on an iduedu.UrbanGraph, as one polygon per origin or as bands of width step. The polygon is built from residual-distance buffers around the reachable nodes, at most off_network_distance (150 m) off the streets ("radius"), from the buffered reachable streets ("ways") or from merged buffers ("separate").

Coverage zones (docs, example). get_graph_coverage and get_stepped_graph_coverage assign every place to the service it reaches at the lowest network cost within a budget (search on the reversed graph, Voronoi cells of graph nodes), so zones do not overlap. get_radius_coverage is a graph-free variant with a fixed radius.

Stepped isochrones with geometry_type ways, radius and separate, bands of 3 minutes

Service provision (docs, example). get_service_provision allocates building demand to services with limited capacity using a gravity-based probabilistic model over a dense or pandas-sparse cost matrix and a normative threshold. It returns a ProvisionResult with the sparse flow matrix and per-building and per-service metrics (provision_value is the share of demand supplied within the threshold); helpers join the metrics to GeoDataFrames, build link lines, drop links beyond a shorter threshold and clip the result to an area.

Provision value of residential buildings and building–school links within and beyond a 10-minute threshold

Visibility (docs, examples: 2D, 2.5D). get_visibility computes the exact visibility polygon (isovist) of each observer among obstacles treated as walls of infinite height and, with isovist_metrics=True, area, compactness, occlusivity, radial statistics, drift and visible share; get_isovist_grid maps these metrics over an area. get_viewshed uses building heights and terrain: a grid cell is visible when the line of sight from the eye (by default 1.6 m above the ground or a roof) to the cell passes above every wall and the ground. get_visibility_catchment and get_viewshed_catchment count, for every cell, the observers that see it (get_observer_points places observers along streets); rasterize draws the counts as a raster.

2D visibility polygon, street-level viewshed and roof-level viewshed

Noise (docs, example). simulate_noise_grid computes sound levels on a receiver grid from point, line and polygon sources: direct paths and first-order reflections with geometric spreading, air absorption, wall absorption and vegetation attenuation, and diffraction around building corners into their shadows, summed as energies. simulate_noise is a wave-front model for point sources with multiple reflections, and calculate_simplified_noise_frame a fast estimate from visibility masks and distance decay. Ground effect is not modelled. Background: wiki.

Noise levels on a receiver grid and the levels added by reflections and by diffraction

Insolation (docs, example). get_insolation follows the sun (NOAA solar position) through a day or a period and returns, on a ground grid among buildings of known height and optional terrain (GeoDataFrame, GeoTIFF or array), the daily hours of direct sun, including ground with no direct sun, the hours on the worst day and the longest continuous sunlit period, for which insolation norms set a minimum; rasterize draws them as a raster. get_facade_insolation computes the same quantities for facade points on every floor and checks them against a norm.

Ground shadows of a residential district on 21 June, 15-minute frames

Rasters. Grid results (insolation and noise receivers, catchment cells, isovist fields from get_isovist_grid) are converted to rasters with rasterize; a Raster can be drawn with matplotlib, written to a GeoTIFF file or shown on a folium web map with explore.


Installation

pip install objectnat

ObjectNat supports Python 3.11–3.14 on Linux, macOS and Windows and installs IduEdu 2.4.2 or newer, 3.x included. Wheels include the compiled extension objectnat._rust, so pip needs no compiler. Installing from a source checkout (pip install .) builds the extension and requires a Rust toolchain (rustup). GeoTIFF terrain requires the optional rasterio package.


Street graphs from IduEdu

Graph-based methods take an iduedu.UrbanGraph (nodes and edges as GeoDataFrames, edge weights time_min and length_meter) and use IduEdu’s Dijkstra routines; ObjectNat does not build graphs itself. IduEdu can download a Geofabrik extract and cut the territory out of it, so no Overpass request is needed (IduEdu 2.x needs pip install "iduedu[pbf]" for cutting, 3.x cuts without extras):

import iduedu
from iduedu import get_4326_boundary, get_intermodal_graph

with iduedu.use_pbf(osm_id=1114252, region="northwestern-fed-district"):
    boundary = get_4326_boundary(osm_id=1114252)
    graph = get_intermodal_graph(territory=boundary, clip_by_territory=True)

Without the with block the same calls query the Overpass API.


Configuration

from objectnat import config

config.change_logger_lvl("INFO")   # hide debug messages
config.set_enable_tqdm(False)      # disable progress bars

Contacts

Contributions are described in CONTRIBUTING.md.


Citing ObjectNat

Citation metadata is kept in CITATION.cff; on GitHub, Cite this repository in the repository sidebar exports it as APA or BibTeX. Publications describing ObjectNat will be listed here.

Metadata

Release files for ObjectNat 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ObjectNat 3.0.2
File Size Uploaded Provenance Actions
objectnat-3.0.2.tar.gz 122.7 kB With provenance Details for objectnat-3.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ObjectNat 3.0.2
File Actions
objectnat-3.0.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for objectnat-3.0.2-cp311-abi3-win_amd64.whl
objectnat-3.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for objectnat-3.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
objectnat-3.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for objectnat-3.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
objectnat-3.0.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for objectnat-3.0.2-cp311-abi3-macosx_11_0_arm64.whl
objectnat-3.0.2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for objectnat-3.0.2-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 2.9 MB

Release files / objectnat-3.0.2.tar.gz

Download URL objectnat-3.0.2.tar.gz
Size 122.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8eb43f6a3011d0281cd8a0ef039e5c1bc5482c7d15f16e0c3e7d154511597b12
BLAKE2b-256 checksum
How to use checksums
c706d4c96e416138e6879efb78ce9ac098afb407ad7192040fb48011535ba9be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / objectnat-3.0.2-cp311-abi3-win_amd64.whl

Download URL objectnat-3.0.2-cp311-abi3-win_amd64.whl
Size 497.6 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c0289b067d1e9fc530def84d48ac65696f77db4021ed0ccc006dbe6b57f74eb9
BLAKE2b-256 checksum
How to use checksums
804ebe15e27dd383652087bc1e74043093efbaa61d98b51bc428c64c4b364142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / objectnat-3.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL objectnat-3.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 597.1 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
631becdf4281e38cf2ba10bfcccfa4489ed64ee8c6f3217d7d20168164ec7a4f
BLAKE2b-256 checksum
How to use checksums
1d47b0dcef6665c1a4cba2cade821afb865f6da32e24e37de78ab56ba330f570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / objectnat-3.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL objectnat-3.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 572.6 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
fe7b5bfb5338ee8dc01a48ec411aec8cb14b0f95c8bba2acdaf8d696b3bb98a4
BLAKE2b-256 checksum
How to use checksums
23b8b2877456d0df2fa7ac78cca20a42ca80f3c56bbfff6c5703fff16b2f739a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / objectnat-3.0.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL objectnat-3.0.2-cp311-abi3-macosx_11_0_arm64.whl
Size 538.7 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e5cfc6af1d4dbbf343c875bd39d16613e85b7a3b571312214fc377a8102f876d
BLAKE2b-256 checksum
How to use checksums
36e198ed38a397a0ad7d08dd00f6a5afc7be9775cd5e23e142e768f6db1db2ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / objectnat-3.0.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL objectnat-3.0.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 565.1 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
53ed851ad6d35921a8685d2ddb828ba176bf74084b52c764eab7f2ec4ad838c2
BLAKE2b-256 checksum
How to use checksums
2cae5c8c96506eada65a0f85e535358abab427e4b1e49137c455694a6f5cdcfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Security for ObjectNat 3.0.2

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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for objectnat-3.0.2.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 19, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

3.0.2 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page