Athena-mvsh
O que é o Athena-mvsh ?
Athena-mvsh é um biblioteca python, que interage com o serviço Amazon Athena, que é um serviço de consulta interativa que permite usar SQL para analisar dados diretamente no Amazon S3.
Algumas regras da DB API 2.0 (PEP 249) são implementadas.
Instalação
Para instalar o pacote:
pip install athena-mvsh
Credenciais
Para se conectar é preciso informar o aws_access_key_id, aws_secret_access_key o local de saida das consultas s3_staging_dir
e a regiao do bucket region_name. Se você usar o arquivo de perfil padrão, não será necessário informar as credenciais.
from athena_mvsh import (
Athena,
CursorPython
)
cursor = CursorPython(
s3_staging_dir='s3:/caminho-saida-consulta/',
aws_access_key_id='KEY_ID',
aws_secret_access_key='SECRET_KEY',
region_name='us-east-1'
)
with Athena(cursor=cursor) as cliente:
cliente.execute("SELECT 1")
rst = cliente.fetchone()
Como usar ?
Esta biblioteca Python facilita a consulta ao Amazon Athena, oferecendo suporte para três tipos de cursores: Python, Parquet e DuckDB. Com esta biblioteca, você pode executar consultas SQL no Amazon Athena e obter os resultados no formato desejado de maneira fácil e eficiente.
Funcionalidades Consulta ao Amazon Athena: Execute consultas SQL no Amazon Athena.
Cursores Diversos:
CursorPython: Retorna os resultados da consulta como objetos Python.CursorParquet: Retorna os resultados da consulta no formato Parquet.CursorParquetDuckdb: Retorna os resultados da consulta integrados ao DuckDB.
Metadata
Release files for athena-mvsh 0.0.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| athena_mvsh-0.0.29.tar.gz | 28.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| athena_mvsh-0.0.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.3 kB
Release files / athena_mvsh-0.0.29.tar.gz
| Download URL | athena_mvsh-0.0.29.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e50f3081d80d81e99111227acd237704128a5dceebb356b43dc283da80ca9705
|
|
BLAKE2b-256 checksum How to use checksums |
f891af732bffe18304448e6e0ba377f455db98983d2ec2035c1725d72842ec05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.11.16 Linux/6.17.0-1022-azure
|
Release files / athena_mvsh-0.0.29-py3-none-any.whl
| Download URL | athena_mvsh-0.0.29-py3-none-any.whl |
|---|---|
| Size | 33.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35dba2192b048b4f6a52dd6e20b4e1a1295d65c7adba9da9042a74f49f409159
|
|
BLAKE2b-256 checksum How to use checksums |
30e6c51f5e51735716c7084fd4386814e224ca676aba41bbf99df4ce45e34ca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.11.16 Linux/6.17.0-1022-azure
|
Security for athena-mvsh 0.0.29
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.