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.0.tar.gz (295.3 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.0-py3-none-any.whl (4.8 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cityjson_lib-0.6.0.tar.gz
Algorithm Hash digest
SHA256 b77a6c25fb3fd39e541c2e8edcfab2903dced0140a2977cd34fdd4f92dd14593
MD5 35bbc8706a68d0623e44d967b9d926da
BLAKE2b-256 86ac4fb52f988f210d7cf80c2ac7baa3e5f80b30d8862df949b5f8164884b120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cityjson_lib-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d555fd346ec2b39b9f8dda2749b8549784b5b226a8ac2daa14459ccd55e7457
MD5 e2c5aacfaec6627f6f1b4c9fd2051c3f
BLAKE2b-256 bb46b6cbdb3d642ec99a7f3574e539f53f8a0cc698c53fc5433b8d8f1462bd39

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