Skip to main content

py2emap

py2emap is a module that converts Python objects to Emap.

Emap is designed to be useful for exchange data between Neos VR and external applications.

Installation

$ pip install py2emap

How to use?

import py2emap

pydata = {
    "name": "John",
    "age": 30,
    "address": {
        "street": "Main Street",
        "city": "New York",
        "state": "NY"
    }
}

string = py2emap.dumps(pydata)
print(string)
# =>
# l$#5$#v$#k0$#name$#v0$#John$#t0$#string$#k1$#age$#v1$#30$#t1$#number$#k2$#address.street$#v2$#Main Street$#
# t2$#string$#k3$#address.city$#v3$#New York$#t3$#string$#k4$#address.state$#v4$#NY$#t4$#string$#

Also, you can convert json to emap in command line.

$ python -m py2emap '{"key1": "value1", "key2":"value2"}'
l$#2$#v$#k0$#key1$#v0$#value1$#t0$#string$#k1$#key2$#v1$#value2$#t1$#string$#

It can take stdin.

$ echo '{"key1": "value1", "key2":"value2"}' | python -m py2emap -
l$#2$#v$#k0$#key1$#v0$#value1$#t0$#string$#k1$#key2$#v1$#value2$#t1$#string$#

By bringing these converted strings into Neos, objects can be easily restored and handled through LogiX. Please see the proposer's repository for more details on how to handle this in Neos.

Metadata

Release files for py2emap 0.1.0

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

Source distribution (sdist)

Source distribution for py2emap 0.1.0
File Size Uploaded Provenance Actions
py2emap-0.1.0.tar.gz 3.3 kB Without provenance Details for py2emap-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / py2emap-0.1.0.tar.gz

Download URL py2emap-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d965f051675e0f338d7bd11e263fff8242dafa8e4bb82d3158afd54374b42506
BLAKE2b-256 checksum
How to use checksums
ed46ec31eafcfbd484582e9d59b5f067afde0e5dd9c38846b94d8d71a6f84b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Linux/5.15.37-gentoo-x86_64

Release files / py2emap-0.1.0-py3-none-any.whl

Download URL py2emap-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11848f097bbf74ca1d21d41480a52521e001cdd5a9530ee77f0cd8151780764b
BLAKE2b-256 checksum
How to use checksums
3f6a5f215e4d7c477dc64227ee9cc0eda4a328450847f5e76589dd6d92d639fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Linux/5.15.37-gentoo-x86_64

Security for py2emap 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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