Skip to main content

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

Metadata

Release files for pyconverter-xml2py 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyconverter-xml2py 0.3.0
File Size Uploaded
pyconverter_xml2py-0.3.0.tar.gz 37.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyconverter-xml2py 0.3.0
File Interpreter ABI Platform
pyconverter_xml2py-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 85.8 kB

Release files / pyconverter_xml2py-0.3.0.tar.gz

Download URL pyconverter_xml2py-0.3.0.tar.gz
Size 37.7 kB
Tags Source
SHA-256 checksum
How to use checksums
227586cbfbc4cf5d7d645cf1a8c4b95aaf3d67259fb8613082549788b89f5c87
BLAKE2b-256 checksum
How to use checksums
65f823c3092c672aed1b6e1960bc41430aaad9986eace80c38a9b28a8bd3e11e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.15

Release files / pyconverter_xml2py-0.3.0-py3-none-any.whl

Download URL pyconverter_xml2py-0.3.0-py3-none-any.whl
Size 48.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0975ac15222d544066b733be952227efceeb8d799a365ba54ca47a02343b849
BLAKE2b-256 checksum
How to use checksums
4395976dd8e530e63caa86b387c257b5e8934ad3f6ee05d73e6f200426153206
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.15

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page