Skip to main content

AiBox Data Lake Toolkit.

Project description


AiBox Lab
aibox-data-lake

AiBox Data Lake Toolkit.

Python PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aibox_data_lake-1.3.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aibox_data_lake-1.3.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file aibox_data_lake-1.3.0.tar.gz.

File metadata

  • Download URL: aibox_data_lake-1.3.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for aibox_data_lake-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6785bf40b046f0826b89fcc11cd15eea70ec19335d00d35b62e59b196b4979fb
MD5 9e1d6ada37b4a6d2aecfaffce8728330
BLAKE2b-256 ad6a56862dfc57e3adfe309e20060eb1c5468620edbcddbe80225ef9c1cd0378

See more details on using hashes here.

File details

Details for the file aibox_data_lake-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aibox_data_lake-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adeca4a4f2f548019cab86347dd1e9d3150c6ca214c771bec417dfc84eedd464
MD5 eb5eba4f7b0095ae5a8d137720d0b4b1
BLAKE2b-256 7fbe46a2c48215bd49f42f9fd04719ef3b68bba4e0f897002c23f06b82facb6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page