genpypress
This library contains several code generator helpers. It is connected to the press code generator.
This package will only run on Windows (submodule table uses external binary as dependency, the binary only exists for Windows).
Usage
Command line application
ph --help- zobrazí nápověduph apatch- provede patch TPT skriptů pro asynchronní stageph cc- připraví SQL a/nebo BTEQ skripty tabulek na podmíněné nasazení
Markdown (mapping) parser
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}")
Table parser
Only supported on MS Windows.
from genpypress import table
filename = "ddl_script.sql"
data = table.from_file(filename)
t = data[0]
# access to table properties and/or columns
print("table name", t.name)
print("first column", t[0])
print("column by name", t["column_name"])
# deletion of columns by name and/or index
del t["another_column"]
del t[O]
Metadata
Release files for genpypress 0.1.52
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genpypress-0.1.52.tar.gz | 3.1 MB | Without provenance | Details for genpypress-0.1.52.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genpypress-0.1.52-py3-none-any.whl | Python 3 | none | any | Details for genpypress-0.1.52-py3-none-any.whl |
Total release size: 6.3 MB
Release files / genpypress-0.1.52.tar.gz
| Download URL | genpypress-0.1.52.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2965fe47708eca5706eed3af28015975dfcce37732f1f504d63cdc2393a43134
|
|
BLAKE2b-256 checksum How to use checksums |
b83bd0a7bc2308bc6fed9ddee40f9fa9e22e61af4a5809336515f1172e6cb3bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.0 Linux/6.14.0-116036-tuxedo
|
Release files / genpypress-0.1.52-py3-none-any.whl
| Download URL | genpypress-0.1.52-py3-none-any.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00aa8686968f7a810facc5818e082580eb836a0c8e09c21cb6119ea4558f9ed3
|
|
BLAKE2b-256 checksum How to use checksums |
6d40b99076a7c197a65bfe1929c94d5266a6eb55efa3c55065251c9b53133c8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.0 Linux/6.14.0-116036-tuxedo
|
Security for genpypress 0.1.52
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.