Registry / aws / pyion2json

pyion2json

JSON →
library0.0.2pypypi✓ verified 86d ago

Convert Amazon Ion documents to JSON. Version 0.0.2 is the latest, released March 2020. Low activity, likely stable but not actively maintained.

pip install pyion2json
INSTALL
IMPORT
SIG · PYION2JSON
P
pyion2json
awspythonv0.0.2
Install
3.3s avg
Import
49ms
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.052s · 22.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.3s · import 0.046s · 23MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ion_to_json
from pyion2json import ion_to_json
Main conversion function for single Ion value.
ion_cursor_to_json
from pyion2json import ion_cursor_to_json
Convert an Ion cursor/iterable to JSON.

Loads an Ion value and converts to JSON string.

from pyion2json import ion_to_json import amazon.ion.simpleion as ion ion_data = b'{name: "Alice", age: 30}' ion_val = ion.loads(ion_data) json_str = ion_to_json(ion_val) print(json_str)
Debug
Known issues
gotchaThe library uses amazon.ion internally; if you have a different Ion parser installed, conflicts may occur.
fix
Ensure amazon.ion is the version compatible with this library.
affects: all
gotchaion_cursor_to_json expects an IonCursor object, not a raw iterable. Passing a list of Ion values will fail.
fix
Create an IonCursor from your iterable using amazon.ion's cursor API.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'amazon'
The dependency amazon.ion is not installed.
fix
pip install amazon.ion
AttributeError: module 'pyion2json' has no attribute 'ion_to_json'
Incorrect import or old version installed.
fix
Use: from pyion2json import ion_to_json
Upgrade
Version history
0.0.2latest on PyPI · released Mar 13, 2020
Audit
Dependencies
amazon.ionrequiredRequired for parsing Ion data internally.
Agent activity
22 hits · last 30 days
node
12
Resources
pyion2json — pip install pyion2json · libregistry