Skip to main content

spatial-web-sdk

Python SDK for the IEEE 2874-2025 Spatial Web standard — the first open-source implementation of HSML (Hyperspace Modeling Language) and HSTP (Hyperspace Transaction Protocol).

About IEEE 2874-2025

IEEE 2874-2025 is the Spatial Web Protocol, Architecture and Governance standard, ratified May 29, 2025. It defines:

  • HSML — Hyperspace Modeling Language: a human- and machine-readable semantic modeling language for describing entities (people, places, things, AI agents) and their relationships
  • HSTP — Hyperspace Transaction Protocol: the protocol defining how Spatial Web entities interact, including spatial range queries, verifiable credentialing, and automated contracting
  • UDG — Universal Domain Graph: the distributed metagraph of all Spatial Web relationships
  • Agent Framework — governance and interoperability for autonomous AI agents

Described as the third foundational web protocol after TCP/IP (1970s) and HTTP/HTML (1990s).

Status

Pre-Alpha. Core HSML entity serialization and HSTP query client are in active development.

Planned Features

  • Entity — HSML entity definition and JSON serialization
  • SpatialQuery — HSTP spatial range query construction
  • SWID — Spatial Web Identifier (did:swid) generation per W3C DID spec
  • UDGNode — Local Universal Domain Graph node utilities
  • Domain-specific ontology extensions (healthcare, manufacturing, energy)

Installation

pip install spatial-web-sdk

Quick Start (Coming Soon)

from spatial_web_sdk import Entity, EntityType, SpatialQuery

entity = Entity(
    entity_type=EntityType.DEVICE,
    name="Sensor A1",
    location={"lat": 37.7749, "lon": -122.4194},
)

print(entity.to_hsml())   # HSML JSON document
print(entity.swid)         # did:swid:...

Resources

License

Apache 2.0

Release files for spatial-web-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for spatial-web-sdk 0.1.0
File Size Uploaded
spatial_web_sdk-0.1.0.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spatial-web-sdk 0.1.0
File Interpreter ABI Platform
spatial_web_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / spatial_web_sdk-0.1.0.tar.gz

Download URL spatial_web_sdk-0.1.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3def0d5dfdd960fa185e13ed3e946d03e05d90908f99cca01cf8d34627a9866d
BLAKE2b-256 checksum
How to use checksums
aed44b83d254a0ff3377289e4d382229aa619c77ccd257ae93c3fd34558897ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / spatial_web_sdk-0.1.0-py3-none-any.whl

Download URL spatial_web_sdk-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8f562d8c30126e7b102ec3ab40aa9ab2b73c5472ca83bc71cd18b0755785e27
BLAKE2b-256 checksum
How to use checksums
dbaa06c9c00db79ef501bbda3633b93063d43d6b59743a789bd3089f869712c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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