This release is a pre-release and may not be stable for production use.
python-mgjson
A nifty library for encoding mgjson documents from python.
Made possibly by the the works of JuanIrache . This library is a new partial implementation in python for generating Motion Graphics Json documents.
Static data properties of type int, boolean and ascii-string are supported. Dynamic data as time series are supported. These will be translated to timezone encoded time series.
installation
pip install mgjson
Usage
from mgjson import MgJSON
mgjson = MgJSON()
# static properties
mgjson.add_property("numberOfCats", 3)
mgjson.add_property("isItTrue", False)
mgjson.add_property("title", "A new adventure awaits!")
# dynamic data (time series)
mgjson.add_stream("temperature", [[0.0, 1.000], [2.59292, 0.777]])
print(mgjson.json)
License
MIT
Metadata
Release files for mgjson 0.1.0b1
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 | |
|---|---|---|---|---|
| mgjson-0.1.0b1.tar.gz | 5.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mgjson-0.1.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / mgjson-0.1.0b1.tar.gz
| Download URL | mgjson-0.1.0b1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e80e35496cc1d04c922901e1bfdf411e6c764fac7497d8f1f81e4e8cf82977e5
|
|
BLAKE2b-256 checksum How to use checksums |
4bfb0abfeb4c9c7b641ef1f0081c6ee17a68a351b6b14443fef289917461b07b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.0
|
Release files / mgjson-0.1.0b1-py3-none-any.whl
| Download URL | mgjson-0.1.0b1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
559f5af76476c8e1035b6c1d6b84845482ac5a347d705ad0c8269fcdeb62b78e
|
|
BLAKE2b-256 checksum How to use checksums |
2ac8efa538a36f9a801b646c768c3e1129d4dd7d1adcb71b465a09ce66ee5eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.0
|
Security for mgjson 0.1.0b1
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.