Pre-release
This release is a pre-release and may not be stable for production use.
DataHex Utility Library
The DataHex Utility library is a collection of utilities functions and classes that are useful for DataHex applications. There are various reusable modules in this library so please refer to each section for the respective usage guide.
Installation
This library is published to RZT Nexus and can be installed by using the command:
pip install dhx-utils-lib
Catalog Service module
The catalog service module contains various handy functions to call the private catalog API for common scenarios.
from dhx_utils.catalog import CatalogService
CatalogService(catalog_api=api).get_sub_data_asset_locations('83b294680f7a11ec9611a6f3ae174d1e', '2020-01-01', '2021-09-01', {'exchange_id': '151'})
[('151#2020-03-02', 's3://datalake-storage-dhx-dev-rozettatech/hl/assest_partitioned/D151/2020/03/02/'), ('151#2020-02-02', 's3://datalake-storage-dhx-dev-rozettatech/hl/assest_partitioned/D151/2020/02/02/')]
or let the util lib to build the catalog api path by using the env
from dhx_utils.catalog import CatalogService
#env could be dev, qa, prod, the catalog serveris would use url 'https://catalog.{env}.datahex.internal/dev'
_env = "dev"
CatalogService(env=_env).get_sub_data_asset_locations('83b294680f7a11ec9611a6f3ae174d1e', '2020-01-01', '2021-09-01', {'exchange_id': '151'})
[('151#2020-03-02', 's3://datalake-storage-dhx-dev-rozettatech/hl/assest_partitioned/D151/2020/03/02/'), ('151#2020-02-02', 's3://datalake-storage-dhx-dev-rozettatech/hl/assest_partitioned/D151/2020/02/02/')]
Metadata
Release files for dhx-utils-lib 1.7.9b306
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dhx_utils_lib-1.7.9b306-py3-none-any.whl | Python 3 | none | any | Details |
Release files / dhx_utils_lib-1.7.9b306-py3-none-any.whl
| Download URL | dhx_utils_lib-1.7.9b306-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e0a747cb3c12cedcbd833fc5ddd8a21b2eb425fff2ae6b856189c8e0db44766
|
|
BLAKE2b-256 checksum How to use checksums |
eec7b9a59b80b2dd736b780b96f8a0534dd3c20c3581c77b117c99daf52bdabd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|