Skip to main content

Python bindings for cityjson-lib

Project description

Python Binding

This directory contains the cityjson-lib Python package built on top of the shared low-level C ABI.

The binding stays intentionally small:

  • ctypes loading of the shared library
  • CityModel wrappers over native handles
  • typed authoring classes for Value, Contact, CityObjectDraft, RingDraft, SurfaceDraft, ShellDraft, and GeometryDraft
  • typed resource IDs for semantics, materials, textures, geometries, templates, and cityobjects
  • probe, parse, serialize, create, summary, and stream helpers
  • smoke tests that exercise the published surface

The package is publishable to PyPI as cityjson-lib. The build step compiles the shared Rust FFI core and bundles the native library into the wheel and source distribution.

The main end-to-end Python reference is examples/fake_complete.py, which builds the full cityjson_fake_complete.city.json fixture through the public Python API.

The package follows the same MIT-or-Apache-2.0 licensing as the Rust crates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cityjson_lib-0.5.3.tar.gz (229.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cityjson_lib-0.5.3-py3-none-any.whl (981.4 kB view details)

Uploaded Python 3

File details

Details for the file cityjson_lib-0.5.3.tar.gz.

File metadata

  • Download URL: cityjson_lib-0.5.3.tar.gz
  • Upload date:
  • Size: 229.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cityjson_lib-0.5.3.tar.gz
Algorithm Hash digest
SHA256 1325a3eed1569c44516e52538bc4b2bf4ec43c8053706b03d0c45e75505b6432
MD5 2db21044eaaef7e320822b4eabffd232
BLAKE2b-256 5e22f50334c3174fea80f2ea8f057a49e11df36fd4e354b55483ec1794371a2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cityjson_lib-0.5.3.tar.gz:

Publisher: release.yml on 3DGI/cityjson-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cityjson_lib-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: cityjson_lib-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 981.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cityjson_lib-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2c008e0a1640fef341743fca20e1553266c76a8586f347c96a64705ce8006b
MD5 a9366492078750e99782a4c370199a6f
BLAKE2b-256 70239c8dc96b041fe64e55b0c279f9caaa9a06d7b96e4ffaa2ee6ef5a514b89a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cityjson_lib-0.5.3-py3-none-any.whl:

Publisher: release.yml on 3DGI/cityjson-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page