ArchiJSON: A Light Weight Web Data Exchange Format for Architectrual Design
Project description
ArchiJSON is a JSON-based protocol for exchanging architectural design data and parameters.
The purpose of ArchiJSON is to design readable and compact data interaction formats to make data exchange between front and back ends easier. It integrates perfectly with ArchiWeb and provides data visualization and manipulation.
This is the python implementation, providing a socket-io server and convert tool to COMPAS geometries.
Installation
pip install archijson
Documentation
The documentation is intergrated with ArchiWeb Docs.
Geometry Primitive
- shape
- Cuboid
- Plane
- Cylinder
- mesh
- Vertices
- Segments
- Faces
- Mesh
Usage
ArchiServer
For more help, check out the documentation.
from archijson import ArchiServer, ArchiJSON
server = ArchiServer(URL, TOKEN, IDENTITY)
def on_connect():
print('exchanging')
server.send('client', {'msg': 'hello'})
def on_receive(id, body):
print(id)
print(body)
archijson = ArchiJSON(body)
for geom in archijson.geometries:
print(geom)
server.on_connect = on_connect
server.on_receive = on_receive
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archijson-0.1.3.tar.gz.
File metadata
- Download URL: archijson-0.1.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea203ef5283a56f9763c1e85e75684468951d23f8b9006cf23e1922568050d8c
|
|
| MD5 |
4150d93986ee41ad58ada0a3af90c330
|
|
| BLAKE2b-256 |
ce161bd3ecf9bb8b3b826bc9dbd01ad353828e27cd6089fdda3b4ed817aff770
|
File details
Details for the file archijson-0.1.3-py3-none-any.whl.
File metadata
- Download URL: archijson-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262899afe913805293e6d6f25b9a40ddbfbcd40c27fe234612a63e406e425d5f
|
|
| MD5 |
7fbb24b8f8499db0b51d7208f4c37179
|
|
| BLAKE2b-256 |
0d1261fe99537c23ae0cf0f4d6ceac2b56e55c40125789b7724e5d35ce1b31e8
|