Data Developer & Engineer IO Utility Objects
Project description
Data Utility Package: IO
Table of Contents:
This Utility IO Object was created for load
the config data from any file
format types like .yaml
, .json
, or .toml
, and manage retention and version
of this config file lifecycle.
Installation
pip install ddeutil-io
Features
Config
The Config Object is the file system handler object.
from pathlib import Path
from ddeutil.io.config import ConfFl
config: ConfFl = ConfFl(path=Path('./file.gz.yaml'), compress="gzip")
Register
The Register Object is the metadata generator object for the config data. If you passing name and configs to this object, it will find the config name in any stage storage and generate its metadata to you.
from ddeutil.io.register import Register
from ddeutil.io.models import Params
registry: Register = Register(
name='examples:conn_data_local_file',
config=Params.model_validate({
"stages": {
"raw": {"format": "{naming:%s}.{timestamp:%Y%m%d_%H%M%S}"},
},
}),
)
registry.move(stage="raw")
License
This project was licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ddeutil_io-0.1.4.tar.gz
(26.1 kB
view hashes)
Built Distribution
ddeutil_io-0.1.4-py3-none-any.whl
(24.0 kB
view hashes)
Close
Hashes for ddeutil_io-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f2378aa5f5a5bfd486a40b95263ed205b39c70003ae72f71b87ac00630fab9 |
|
MD5 | dd6a6f9cdb6e816436543b69709b369f |
|
BLAKE2b-256 | 633b345e688914239e6ec3c17615f7799189d6a7c1c8afbb46fafde171397e93 |