AiBox Data Lake Toolkit.
Project description
aibox-data-lake
AiBox Data Lake Toolkit.
Quickstart
O AiBox Data Lake Toolkit é uma biblioteca enxuta que fornece acesso uniforme a Data Lakes em provedores de nuvem (e.g., GCP). Essa biblioteca foi desenvolvida para uso interno, mas grande parte do código-fonte e dos padrões adotados são comuns e podem ser aplicados a outros contextos.
A biblioteca pode ser instalada usando o seu gerenciador de pacotes preferido:
uv add aibox-data-lake
uv pip install aibox-data-lake
pip install aibox-data-lake
Depois de instalada, a biblioteca pode ser configurada através do aibox-dl config. A biblioteca fornece um registro simples de buckets, que associa a URL de um bucket (e.g., gs://my-bucket) a um nome (e.g., bronze). As credenciais da nuvem devem ser configuradas pelas bibliotecas cliente do provedor (e.g., google-cloud-storage, boto3). A CLI também oferece outros recursos, como listagem de objetos e leitura de metadados de datasets.
Também é possível utilizar a biblioteca com a URL do bucket diretamente, sem a necessidade de configuração extra.
A principal classe para acesso e manipulação programática do Data Lake é a aibox.data_lake.Client. Essa classe fornece métodos para operações comuns no Data Lake, como leitura de arquivos específicos ou carregamento de datasets. Exemplo de uso:
from aibox.data_lake import Client
# Load the configuration and authenticates
# to the cloud providers.
client = Client()
# List all objects on a bucket
client.list_objects("<bucket-name>")
# Loads a structured data source (e.g.,
# .parquet, .csv).
ds = client.get_tabular_dataset("<bucket-name>", "<dataset-prefix>")
# A structured data source can be easily
# loaded to a DataFrame
ds.to_frame()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aibox_data_lake-1.2.0.tar.gz.
File metadata
- Download URL: aibox_data_lake-1.2.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b81ddf970092acea54812682951167f5aa35fe4547198226f1ae7a089b3176d
|
|
| MD5 |
95a2cb60733782dea425afabaebc40e5
|
|
| BLAKE2b-256 |
b3ad4aa079713f44ebfe6df7812ed4a2bff73f4bb92077a025aae2a69f7f6e3b
|
File details
Details for the file aibox_data_lake-1.2.0-py3-none-any.whl.
File metadata
- Download URL: aibox_data_lake-1.2.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bb66a30f356aa2d1874a05829230e5bdbd8d7cee9d9fe67c736fe67c205e957
|
|
| MD5 |
9a162bfad9dbaa127d10ef12e1e729b2
|
|
| BLAKE2b-256 |
1ba4aca7fd102e8e684ff5385ce47a73c778c84c2a30a13aea7c1ab51e86e479
|