ion-python icon indicating copy to clipboard operation
ion-python copied to clipboard

A Python implementation of Amazon Ion.

Results 83 ion-python issues
Sort by recently updated
recently updated
newest added

Currently ion-python-benchmark-cli `event based` APIs are basically `pure python implementation dump/load` APIs. So, below two commands are same. ``` python-benchmark-cli read --api event python-benchmark-cli read --api simple_ion --c-extension False ```...

benchmark

Test file [bad/ivmInAnnotationWrapper.10n](https://github.com/amazon-ion/ion-tests/blob/master/iontestdata/bad/ivmInAnnotationWrapper.10n) failed with `pypy` but works on CPython. ``` ---------- test_basic[BAD - bad/ivmInAnnotationWrapper_10n ] p = @parametrize(*chain( _basic_params(_T.GOOD, _GOOD_SUBDIR), _basic_params(_T.GOOD, _GOOD_TIMESTAMP_SUBDIR), _basic_params(_T.BAD, _BAD_SUBDIR), _basic_params(_T.BAD, _BAD_TIMESTAMP_SUBDIR), _basic_params(_T.BAD, _BAD_UTF8_SUBDIR), ))...

bug

Currently, the CI/CD for `pypy` fails due to a python intstr conversion issue. Need a fix since it will block all future PRs. example log, ``` ... ... amazon/ion/core.py:286: in...

bug

We use `tracemalloc` to profile memory usage. However, it does not work with pypy because it’s closely tied to CPython internals. So Currently the tool does not generate memory related...

enhancement
benchmark

When loading a large decimal with the c-extension (which has a limited decimal size), if the decimal is too large the error thrown is not helpful: ``` >>> simpleion.loads('49.89999999999999857891452847979962825775146484375') Traceback...

There is currently no description for this package in pypi.

In another channel a user suggested adding additional conversion utilities, including the ability to convert an entire IonPyDict to a native dict type.

Refer to https://github.com/amzn/ion-python/pull/216 > The performance depends on the size of files we are going to read. On the one hand, if the file is really small but we maintain...

enhancement
C extension

The issue was raised in https://github.com/amzn/ion-python/issues/208 Consider ``` obj = simple_types.IonPyTimestamp.fromisoformat("2022-07-01") str = simpleion.dumps(obj) ``` What should be the expected `str` value? It's `2022-07-01T00:00:00.000000-00:00` currently as C extension set precision...

See https://readthedocs.org/projects/ion-python/builds/ The latest successful build of the docs is from April 2021.