Table of Contents
TMDLParser is a Python library designed to parse and process TMDL (Table Metadata Description Language) files. It provides a structured way to handle data descriptions, properties, and calculations with an easy-to-use API.
- Parses TMDL files into structured Python objects.
- Handles multiple levels of nested properties.
- Supports detailed descriptions, elements, properties, and calculations.
- Easily integrates with other Python applications.
- Lightweight and easy to install.
Install the library directly from PyPI:
pip install tmdl-parserpython>=3.10 Library uses only standart library and no 3th party.
from tmdlparser import TMLDParser
# Initialize the parser with a TMDL file path
parser = TMLDParser("path/to/tmdl/file.tmdl")
# Print the parsed structure
print(parser)Results:
Description: Table Description
Element: Table Name
Properties:
----------
Description: Column Description
Element: Column Name
Props: ['property_1', 'property_2']
Calcs: ['calculation_1']
Calculation: ['Calculation Formula']
--------------------- Publish to pip
- Create tests
- Better return format for parsed files
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Project Link: https://github.com/Atzingen/tmdl-parser