Set of tools and utilities connected with press code generator.
Project description
genpypress
This library contains several code generator helpers. It is connected to the press
code generator.
Usage
from pathlib import Path
from genpypress import mapping
# import a file in markdown format
file = Path("TGT_ACCS_METH_RLTD_906_900_915_AMR_NIC_PCR_2_M2C.md", encoding="utf-8")
map = mapping.from_markdown(file.read_text(encoding="utf-8"))
# access table mapping property
print("Type of historization:", map.etl_historization)
# access a column mapping property (case insensitive)
print("hist_type =", map["hist_type"].transformation_rule)
# nonexisting column will - of course - blow the code up
try:
print(map["not available"])
except KeyError as err:
print(f"error: {err}")
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
genpypress-0.1.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for genpypress-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecfe6926472db93bd40baa67457e78d0ed1e10d4ba01789747345f573996d7bc |
|
MD5 | 3d1a49499a0cbf317279f165120d64b1 |
|
BLAKE2b-256 | 6936eb7ea2eb3dfe89b013b297040f674dca533ef6ce130ffe43d21e4e71686a |