Skip to main content

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

archijson-0.1.2.tar.gz (9.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page