Utility functions for interacting with data factories.
Project description
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()
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
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
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 data_factory_utils-1.1.0.tar.gz.
File metadata
- Download URL: data_factory_utils-1.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
064a5ac7b57e63757d2803d3af5e08694f381374605d3fa310bcf8d03a280580
|
|
| MD5 |
9b1093b1ff5744826655037ce0087926
|
|
| BLAKE2b-256 |
88daa1fc73081c5fc5ffd07a211544b640ac06e06bb60098cebc914eb8444c5d
|
File details
Details for the file data_factory_utils-1.1.0-py3-none-any.whl.
File metadata
- Download URL: data_factory_utils-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dad854c7977c710bd7160868eb37fa0bd1e6bc4ff2407abbcdaaec116925e53e
|
|
| MD5 |
1ec191767d253ddc4e2103c2ed9d980c
|
|
| BLAKE2b-256 |
882179b696d8d263df5494a5b124cd5a16ab9832473f5e8bfc31d8f4c570f06d
|