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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| archijson-0.1.3.tar.gz | 10.0 kB | Without provenance | Details for archijson-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| archijson-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for archijson-0.1.3-py3-none-any.whl |
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
|
Security for archijson 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.