Skip to main content

Se corrige el acceso a los esquemas cuando el usuario tiene más privilegios

Project description

Objetivo

Permite definir de una forma unificada el acceso a las zonas definidas en la arquitectrura de analítica avanzada de Mutua Tienerfeña.

Se han definido las siguientes zonas de trabajo.

  • lz - Landing Zone. Son los datos que llegan desde el operacional. Pendiente de ser revisados y formatados para la silver.
  • sz - Silver Zone. Son los datos limpios, preparados para poder cruzarse utilizarse en los correspondientes modelos.
  • gz - Golden Zone. Son los datos asociados a los resutlados de los modelos definitivos.

Forma de uso

En los cuadernos de python, se debe realizar lo siguiente.

Para acceder a los dataframes (pandas) almacenados en una zona:

from mutuazones import lz

lz.df_names

Para guardar nuevos data frames en una zona

from mutuazones import sz

df_clientes = sz.load_df('clientes')
 ...
sz.save_df('clientes_con_coche')

Publicar nueva versión

Para publicar nueva versión en Pypi ejecutar los siguientes comandos. El primer genera la distribución correspondiente. El segundo sube/actualiza la distribución en Pypi

python3 setup.py sdist bdist_wheel
python3 -m twine upload  dist/*

Posteriormente, donde se use, actualizar la librería:

sudo -H pip3 install --upgrade mutuazones

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

mutuazones-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

mutuazones-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mutuazones-0.1.0.tar.gz.

File metadata

  • Download URL: mutuazones-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4

File hashes

Hashes for mutuazones-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cbbeeb6a36092daebfcf62fda49409337e03999f4bea2c3a213a922eae90ac39
MD5 eeec70047e6539ab64590d763217a99e
BLAKE2b-256 c2b24bfdcae945dbbcbea6b1cfe6491a3013c5d6f2e72baf9ef2635c17b9502e

See more details on using hashes here.

File details

Details for the file mutuazones-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mutuazones-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4

File hashes

Hashes for mutuazones-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f64cf87a7d0c1a9814208c87e9f1400fa9f43601355dec693380668d13714e33
MD5 e2aec0257c0dc4c7d7ce9964245de167
BLAKE2b-256 0e8da80938c87cc1a04cf7d7ef91e6a1cb97f926d8106d8c5371b271d20b7012

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