data-factory-utils
A package for random utils for data factories.
Installation
This is a published package. Install using your favourite installation method.
uv add data-factory-utils
pip install data-factory-utils
Usage
Environment functions
This set of functions reads from your data factory dynamically. It should infer the environment you are in as well.
No matter how many times you initiate the class, it will re-use old variables. To do so...
from data_factory_utils.environment import Environment
env = Environment(use_web_identity=False, kube=False, local=False)
To return information about the environment (if we are in development with account number 0101010101):
env.account_no
# 0101010101
env.environment_name
# dev
env.is_prod
# False
To get an S3 bucket name (outputted as cloudpathlib's S3Path) (let us imagine here that the name is emds-dev-random-name-202512161154001309058001):
s3_random_name_bucket = env.get_full_bucket_url("random-name", full_prefix=True)
print(str(s3_random_name_bucket.bucket))
# emds-dev-random-name-202512161154001309058001
Metadata
Release files for data-factory-utils 3.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| data_factory_utils-3.1.1.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| data_factory_utils-3.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.5 kB
Release files / data_factory_utils-3.1.1.tar.gz
| Download URL | data_factory_utils-3.1.1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16c59e50a865cc3653f174f5c6f5631f3b8037ee686bbc60cf32805330943d2c
|
|
BLAKE2b-256 checksum How to use checksums |
b23daa9e975fe66ef79f5651af61abc0fba2080fc16469430bda8114a908a534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / data_factory_utils-3.1.1-py3-none-any.whl
| Download URL | data_factory_utils-3.1.1-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a799feee4ea7cd689efe66f4400ad861c1e730f203b5a43fb5f262799d4fe8d8
|
|
BLAKE2b-256 checksum How to use checksums |
32b3280153a0c47fbfd85ece736f7d50f27f62a70cee9f873b83d1af653ec88f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|