aurora-prettyparser-1.0.4


توضیحات

Parses Aurora responses into a list dictionaries with column names as keys
ویژگی مقدار
سیستم عامل -
نام فایل aurora-prettyparser-1.0.4
نام aurora-prettyparser
نسخه کتابخانه 1.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Mathew Moon
ایمیل نویسنده mmoon@quinovas.com
آدرس صفحه اصلی https://github.com/QuiNovas/aurora-prettyparser
آدرس اینترنتی https://pypi.org/project/aurora-prettyparser/
مجوز Apache 2.0
============================ aurora_response_parser ============================ ======================================================================= THIS PACKAGE IS NOW PART OF the appsync-tools package Use it instead ======================================================================= https://github.com/QuiNovas/appsync-tools Parses aurora serverless API responses into a more usable format. Results are returned as a list of dictionaries with the column names being the key. Nulls (returned by Aurora as isNull) are returned as None types. Any value that can be parsed as json is cast from a string to a list/dictionary. Responses are returned formated as: .. code-block:: JSON [ {"columnOneName": "value", "columnTwoName": "value"}, {"columnOneName": "value", "columnTwoName": "value"} ] Where each item in the top level array is a separate row. Methods ---------------------------- parseResults(records) -> list Arguments: records -- The records from the API query (execute_statement()["records"]) Example ---------------------------- .. code-block:: python from auroraPrettyParser import parseResults response = client.execute_statement( secretArn=environ["PG_SECRET"], database=environ["DB_NAME"], parameters=parameters, resourceArn=environ["DB_ARN"], includeResultMetadata=True, sql=sql ) print(parseResults(response))


نحوه نصب


نصب پکیج whl aurora-prettyparser-1.0.4:

    pip install aurora-prettyparser-1.0.4.whl


نصب پکیج tar.gz aurora-prettyparser-1.0.4:

    pip install aurora-prettyparser-1.0.4.tar.gz