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.6.1.tar.gz (304.8 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.6.1-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cityjson_lib-0.6.1.tar.gz
  • Upload date:
  • Size: 304.8 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.6.1.tar.gz
Algorithm Hash digest
SHA256 57a3db1bda907915c43532102b2677e560394ba38e9ee9463fa3c71832373410
MD5 9a3e72e0a5ff13b16cb97b5b60cd0c35
BLAKE2b-256 13822b9ed023ec435689fa5d1119c1444b3eb26d180bc64b33109c5e0fc81a86

See more details on using hashes here.

Provenance

The following attestation bundles were made for cityjson_lib-0.6.1.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.6.1-py3-none-any.whl.

File metadata

  • Download URL: cityjson_lib-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 MB
  • 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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a9e25c37ac06da4af5795fe93c03b121e12fd2302f7177ddc643c6a773277b7
MD5 167cbd649ba8fe67ca8f78037897f451
BLAKE2b-256 9b4e47ff24498ad97c65bff6fe54c7de1b32dba449b663ed8e8e1714c03cf2c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cityjson_lib-0.6.1-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