Skip to main content

PyDita AST converter.

Project description

A Python wrapper to convert XML documentation into RST files and the Sphinx documentation.

PyAnsys pypi GH-CI codecov MIT black

Overview

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

Documentation and issues

On the PyDita-AST 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 pydita-ast package with:

python -m pip install pydita-ast

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.

python xml2rst.py -p XML_directory_path

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

python xml2rst.py -p 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

pydita_ast-0.1.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

pydita_ast-0.1.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydita_ast-0.1.0.tar.gz
Algorithm Hash digest
SHA256 71b5901a51fb042fccbad2e3a7bdded10c37256e8cb73079d6349b174bc0360b
MD5 3dbbe5d296caac9d6b1c3192ef932295
BLAKE2b-256 cfcff8b75333729fe7b13f7d8ea0cb95a745ed97d27c4b5cd957ea0fcbceafdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydita_ast-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pydita_ast-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8c4aaf2ee9f9cb61ceba21b19f1765fe2a8279a5bf943b7237e0ff8911ec0ed
MD5 d6d084c84659379453d48804f1160a69
BLAKE2b-256 4b9f06ea16bd96f2b953ca8e7571e269d6451e4bddce77230e5798a4daa60a88

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