Skip to main content

A JSON-based serialization of SCXML (State Chart XML) for modern tooling, interoperability, and education.

Project description

scjson Python Package

This directory contains the Python implementation of scjson, a format for representing SCXML state machines in JSON. The package provides a command line interface and utility functions to convert between .scxml and .scjson files and to validate documents against the project's schema.

Installation

pip install scjson

You can also install from a checkout of this repository:

cd py && pip install -e .

Command Line Usage

After installation the scjson command is available:

# Convert a single file
scjson json path/to/machine.scxml

# Convert back to SCXML
scjson xml path/to/machine.scjson

# Validate recursively
scjson validate path/to/dir -r

License

All source code in this directory is released under the BSD 1-Clause license. See LEGAL.md for details.

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

scjson-0.1.4.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scjson-0.1.4-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file scjson-0.1.4.tar.gz.

File metadata

  • Download URL: scjson-0.1.4.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for scjson-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f4608e54a4370bffe2f8e07b3ea0ca972203069ef9c9e7c9dd34ac20482460bf
MD5 721f6fa29bf9ccddd12ff55b93ce84ff
BLAKE2b-256 84adba46fd86836ad15afdba81fe30c96cb1475255c8678c4575435b35ab3ae8

See more details on using hashes here.

File details

Details for the file scjson-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: scjson-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for scjson-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82e13df94bd81b828ba70b1787f44b5a27f0e57b4d491078ab671d03c7015339
MD5 8e0d88298772f31e0e00c6a6d28e2080
BLAKE2b-256 6250d47fad1c2bb8b0c64cc7d055689da12c06409ffe1cef251963e6a58a62c5

See more details on using hashes here.

Supported by

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