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.0.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.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tmdl_parser-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 373a23ca3227ca8e5d641514cae655edb988680380edf46987d688c399855bbc
MD5 82762e1fcb1a0c2ae85ec01a39fc0a4a
BLAKE2b-256 47c89832f286e34727766f8f3690b0c22fd82c6ba7cbc4ab3df5bd3866d41372

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tmdl_parser-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa1e047cce69e81a798df2bfbd5b1c948d51af81c6f7195fc7554515ef258bba
MD5 1502b48a7db3fe7e11d69c9689a29544
BLAKE2b-256 0e3d56bff8546ed9b779070bcb18704f3c146b8285bfd22889b6cf0373021970

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