Skip to main content

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

Release files for archijson 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archijson 0.1.3
File Size Uploaded
archijson-0.1.3.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for archijson 0.1.3
File Interpreter ABI Platform
archijson-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / archijson-0.1.3.tar.gz

Download URL archijson-0.1.3.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ea203ef5283a56f9763c1e85e75684468951d23f8b9006cf23e1922568050d8c
BLAKE2b-256 checksum
How to use checksums
ce161bd3ecf9bb8b3b826bc9dbd01ad353828e27cd6089fdda3b4ed817aff770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / archijson-0.1.3-py3-none-any.whl

Download URL archijson-0.1.3-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
262899afe913805293e6d6f25b9a40ddbfbcd40c27fe234612a63e406e425d5f
BLAKE2b-256 checksum
How to use checksums
0d1261fe99537c23ae0cf0f4d6ceac2b56e55c40125789b7724e5d35ce1b31e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page