Skip to main content

A Python library to parse and process TMDL (Table Metadata Description Language) files.

Project description

Contributors Forks Stargazers Issues MIT License


Logo

TMDLParser

A Python library designed to parse and process TMDL (Table Metadata Description Language) files

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

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.

(back to top)

Getting Started

Install the library directly from PyPI:

pip install tmdl-parser

Prerequisites

python>=3.10 Library uses only standart library and no 3th party.

Usage

Basic Example

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']
--------------------

Roadmap

  • 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).

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Project Link: https://github.com/Atzingen/tmdl-parser

gustavo.von.atzingen@gmail.com

(back to top)

Project details


Download files

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

Source Distribution

tmdl_parser-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

tmdl_parser-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file tmdl_parser-0.1.1.tar.gz.

File metadata

  • Download URL: tmdl_parser-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for tmdl_parser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 946725b4ce94394a98aa0728c7a9ef0eff24cb7f3f734adbd15084239673a64a
MD5 69cee06a9082f9ee066c2af409b55582
BLAKE2b-256 252fbdb4c7bfdcc0ec1639af9953414b4205b9bab9c1315f538a500417915117

See more details on using hashes here.

File details

Details for the file tmdl_parser-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tmdl_parser-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for tmdl_parser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c922ecd93bd089953ae612e7c189503e00339852c5756326b3a4cb4bbefb546b
MD5 1915cba06b7b8be1974a3bc592c5052e
BLAKE2b-256 800445642c80139a7fee92f2268f6c0b6272fc7e2bcbcab8859b031926e07a5e

See more details on using hashes here.

Supported by

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