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.

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.0.tar.gz (200.5 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.0-py3-none-any.whl (988.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cityjson_lib-0.5.0.tar.gz
  • Upload date:
  • Size: 200.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for cityjson_lib-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d7f3c34e2409d4c21b285063caca004b78bb06dcaa043b2268ae3cf2000103cb
MD5 43d8ca013beddb31df311a01ac3d0c41
BLAKE2b-256 3cf07fb167b03a263d6f113809fcef70f43c69a44575fee394cd5e75c73c1f55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cityjson_lib-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c542cc98dfdb4f2b1bb259dbde9b47d1ada12036a495fcfc3cede862a4b02d78
MD5 4bb26f47bb4e7fadf6094476f98b7475
BLAKE2b-256 45067e6888cb8f9ed05e6793e8b0c14efbf30ae565b6c9aa7ff69d224c1474f2

See more details on using hashes here.

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