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 serializationSpatialQuery— HSTP spatial range query constructionSWID— Spatial Web Identifier (did:swid) generation per W3C DID specUDGNode— 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)
| File | Size | Uploaded | |
|---|---|---|---|
| spatial_web_sdk-0.1.0.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|