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 details)

Uploaded Source

File details

Details for the file archijson-0.1.2.tar.gz.

File metadata

  • Download URL: archijson-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for archijson-0.1.2.tar.gz
Algorithm Hash digest
SHA256 434589a68a3d3f7528bf3cb8184a170e3b6f117cdd885e0805341e141ae4f8e6
MD5 13437f6d309946d1dd5a6f03aacbb1cc
BLAKE2b-256 a32516c6a435f169542f8fe8f2c266d2be8af6faff606909b0ec94257ad1c558

See more details on using hashes here.

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