archijson 0.1.2

Last updated:

0 purchases

archijson 0.1.2 Image
archijson 0.1.2 Images
Add to Cart

Description:

archijson 0.1.2

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.