Skip to main content

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

Download files

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

Source Distribution

data_factory_utils-2.2.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

data_factory_utils-2.2.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file data_factory_utils-2.2.0.tar.gz.

File metadata

  • Download URL: data_factory_utils-2.2.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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

Hashes for data_factory_utils-2.2.0.tar.gz
Algorithm Hash digest
SHA256 1c984788a70428479af991819b5f60c91424e377fd74c2fe5148ad2e9e935806
MD5 d36a5829efef1faa802f74f2270c1a18
BLAKE2b-256 ac4ec6f1253230d46655e9a296096fe5a8b56b0fabc9226443c8eab6d7ef7df7

See more details on using hashes here.

File details

Details for the file data_factory_utils-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: data_factory_utils-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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

Hashes for data_factory_utils-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd06c7f76726a768ea89ee87caeac25059b340403b7b44c15f99028e36be0a98
MD5 dc46d299c595fcb50ed0cd8f5cb57f95
BLAKE2b-256 5b47785abd02a11c1cf9e0fcef6eaf717ac106ff9ae90293498d21641d99ce4e

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.6.0

2 files

2.5.1

2 files

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.0

2 files

This release

2.2.0 This release

2 files

2.1.0

2 files

2.0.0

2 files

1.13.0

2 files

1.12.1

2 files

1.12.0

2 files

1.11.0

2 files

1.10.1

2 files

1.10.0

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.3.0

2 files

Supported by

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