Skip to main content

PyConverter-XML2Py converter.

Project description

A Python wrapper to convert XML documentation into Python source code with its related Sphinx documentation.

PyAnsys pypi GH-CI codecov MIT black

Overview

The PyConverter-XML2Py project aims to automatically generate a Python library and a related Sphinx documentation from an XML documentation.

Documentation and issues

On the PyConverter-XML2Py Issues for this repository, you can create issues to submit questions, report bugs, and request new features. To reach the PyAnsys support team, email pyansys.core@ansys.com.

Getting started

Install the pyconverter-xml2py package with:

python -m pip install pyconverter-xml2py

It is recommended to organize the XML documentation as follow:

./doc/source/user_guide/images/diags/graphviz-diag_directory.png

Converting an XML-directory

Once the XML_directory is correctly organized, the converter can be run.

pyconverter-xml2py package -x XML_directory_path

If some functions need to be customized, the path containing the python files can be specified.

pyconverter-xml2py package -x XML_directory_path -f customized_function_directory_path

A new package is then automatically generated. Its default name is package. It is organized as follow:

./doc/source/user_guide/images/diags/graphviz-diag_package.png

Then, the Sphinx documentation can be generated from this package. The following code is to render the documentation as an HTML one from Windows:

cd package
pip install -e .[doc,tests] # Using a virtual environment is recommended.
.\doc\make.bat html

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

pyconverter_xml2py-0.2.0.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

pyconverter_xml2py-0.2.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file pyconverter_xml2py-0.2.0.tar.gz.

File metadata

  • Download URL: pyconverter_xml2py-0.2.0.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyconverter_xml2py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ecc0963be620e08db7a0690ecc4ea55d214a125236c2cf6b0f66a11313049ac2
MD5 298d766f0ded35c37b69ad73dac960dc
BLAKE2b-256 1d92515e9ec69499a24d2e3073b31225078340265666d3d6442a0244159672fd

See more details on using hashes here.

Provenance

File details

Details for the file pyconverter_xml2py-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyconverter_xml2py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54663805e22a313594215c24b4565072fedc49ebb04ce549163795b3d4b3ba0c
MD5 f8e8ec14299d91adac0fbc2a34a22d6f
BLAKE2b-256 3e75cb78aaec970aeb6fe3ec027fccf7d7cd89d951768a7486f75e6d2ed2ce31

See more details on using hashes here.

Provenance

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