Skip to main content

XML to Ogl Object Model

Project description

CircleCI

CircleCI Maintenance PyPI version

This project is intended to be used by Pyut Plugin developers to convert Pyut XML files to the Ogl Model classes. These model classes can then be used by the Pyut UI to display as UML Diagrams.


Use as follows:

from untanglepyut.Types import Document
from untanglepyut.Types import DocumentTitle

from untanglepyut.Types import UntangledOglClasses
from untanglepyut.Types import UntangledOglLinks
from untanglepyut.Types import UntangledOglNotes
from untanglepyut.Types import UntangledOglTexts

from untanglepyut.UnTangler import UnTangler

fqFileName: str = 'MultiLinkDocument.xml'
untangler: UnTangler = UnTangler()

untangler.untangleFile(fqFileName=fqFileName)

document: Document = untangler.documents[DocumentTitle('Diagram-1')]

oglClasses: UntangledOglClasses = document.oglClasses
oglLinks: UntangledOglLinks = document.oglLinks
oglNotes: UntangledOglNotes = document.oglNotes
oglTexts: UntangledOglTexts = document.oglTexts

The following is the UML diagram for the Pyut Untangler

UntanglePyut


Developer Notes

This project uses buildlackey for day to day development builds

Note

For all kind of problems, requests, enhancements, bug reports, etc., please drop me an e-mail. Written by Humberto A. Sanchez II (C) 2023


I am concerned about GitHub's Copilot project

I urge you to read about the Give up GitHub campaign from the Software Freedom Conservancy.

While I do not advocate for all the issues listed there I do not like that a company like Microsoft may profit from open source projects.

I continue to use GitHub because it offers the services I need for free. But, I continue to monitor their terms of service.

Any use of this project's code by GitHub Copilot, past or present, is done without my permission. I do not consent to GitHub's use of this project's code in Copilot.

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

untanglepyut-2.5.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

untanglepyut-2.5.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file untanglepyut-2.5.0.tar.gz.

File metadata

  • Download URL: untanglepyut-2.5.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for untanglepyut-2.5.0.tar.gz
Algorithm Hash digest
SHA256 0ea946ddebb795bae37046f3af9b7ef57abc419a682c18fb26ad104b52aaf0e5
MD5 1e4e7c786f5b9750ff079de6e8e09b6e
BLAKE2b-256 cdb3c2c291a63ed277c554c59da6b1b7d2fc7c99080d823935abbe1acc0db6f4

See more details on using hashes here.

File details

Details for the file untanglepyut-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: untanglepyut-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for untanglepyut-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e56a68ddf0d6b6e8cfb8acbd6fd0516108e1202f9a663625a99290abc143c73
MD5 808a9d62a9dcfc61cfb0abf3c7174537
BLAKE2b-256 e128586f1267a319da6fb0b3c611627153d0c8ee76da930a89da3cc5a941d47d

See more details on using hashes here.

Supported by

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