Overview of PyAthena features
masterPyAthena is a Python client for Amazon Athena that provides several key capabilities:
Core Capabilities
- DB API 2.0 Compliance: Full PEP 249 compatibility.
- SQLAlchemy Integration: Native dialect support including table reflection and ORM capabilities.
- Multiple Cursor Types: Support for Standard, Pandas, Arrow, Polars, S3FS, and Spark cursors.
- Async Support: Asynchronous query execution.
Data Type Support
PyAthena handles complex Amazon Athena data types by converting them to native Python structures:
- STRUCT/ROW: Support for complex nested data structures.
- ARRAY: Ordered collections converted to Python lists.
- MAP: Key-value structures converted to Python dictionaries.
- JSON: Seamless parsing and conversion.
Additional Capabilities
- Connection Management: Efficient pooling and configuration.
- Result Caching: Ability to reuse Athena query results.
- S3 Integration: Direct S3 data access and staging support.