Skip to main content

json2daisy

Utility for converting JSON board definitions into valid, libDaisy compatible C++ board support files for the Daisy platform.

Install

Note that this module is not intended as a standalone application at this time. You should not need to install it manually for most use cases.

You can install this package with pip:

python -m pip install json2daisy

If you'd like to build the package and install locally, you'll need the build package:

python -m pip install build

Once that's set up, navigate to the root directory of json2daisy and run:

python3 -m build
python3 -m pip install dist/json2daisy-0.2.0.tar.gz

If pip complains about a missing file, make sure you've entered the correct version number in the archive path.

Usage

This package can be used as a standalone program on the command line or as an imported module.

On the command line:

python -m json2daisy path/to/board_description.json

As a module:

import json2daisy

# If you want to generate from an Electrosmith board:
header_string, board_name, component_info, component_aliases = json2daisy.generate_header_from_board('field')
# If you're supplying custom JSON
header_string, board_name, component_info, component_aliases = json2daisy.generate_header_from_file('path/to/board_description.json')

As you can see, the two functions above will return a number of supplementary objects in addition to the header string. These provide detailed information for how to interact with the generated header. The component_info dictionary provides getters and setters for I/O, and the component_aliases dictionary provides valid aliases for everything in component_info.

For examples of how to structure the board description, take a look at the JSON files in src/json2daisy/resources.

Metadata

Release files for wstd2daisy 0.5.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 wstd2daisy 0.5.3
File Size Uploaded Provenance Actions
wstd2daisy-0.5.3.tar.gz 21.4 kB Without provenance Details for wstd2daisy-0.5.3.tar.gz

Built distribution (wheel)

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

Total release size: 45.4 kB

Release files / wstd2daisy-0.5.3.tar.gz

Download URL wstd2daisy-0.5.3.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1cf6bbc6d08cf1f4d36c1aac2f1ca0c7a7b393c49308757bb3f91b05f8cf397a
BLAKE2b-256 checksum
How to use checksums
d7959694ab6fa53b9a84f27b7e7e9a9d1a876aca458fd19c554425d833f5681b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.2

Release files / wstd2daisy-0.5.3-py3-none-any.whl

Download URL wstd2daisy-0.5.3-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd566d89bb36ec9fb245acff166f401a71374f044ec8db421a08eedd52bbe07b
BLAKE2b-256 checksum
How to use checksums
842e864b0f8a6aa663743608769d59bb175636468a3aa7e355b2af5837cc4d52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.2

Security for wstd2daisy 0.5.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.

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