Creates Python projects according to PyAnsys guidelines
Project description
The ansys-templates repository holds a collection of useful templates compliant with PyAnsys guidelines. It also provides the ansys-templates command line tool for interactively generating new projects based on previous templates.
The main advantages of using this tool are:
Building process is fully interactive. There is no need to manually modify files.
Output of the project can easily be customized during the rendering process.
Generated projects are compliant with PyAnsys Developer’s Guidelines.
For information on using this tool, see the Ansys Templates Documentation.
How to install
Users can install ansys-templates by running:
python -m pip install ansys-templates
The usage of pipx is encouraged too. See installing ansys-templates using pipx.
Basic commands
The following commands are provided with ansys-templates:
ansys-templates --help: lists information about the tool.
ansys-templates list: lists all available templates.
ansys-templates new <template name>: creates a new project from template.
Available templates
Available templates in ansys-templates are:
doc-project: Create a documentation project using Sphinx.
pybasic: Create a basic Python Package.
pyansys: Create a PyAnsys Python Package project.
pyansys-advanced: Create an advanced PyAnsys Python Package project.
pyansys-openapi-client: Create an OpenAPI Client Package project.
pyace: Create a Python project for any method developers.
pyace-flask: Create a Flask project initialized for any developer.
pyace-grpc: Create gRPC project initialized for any developer.
pyace-fast: Create a FastAPI project initialized for any developer.
solution: Create a Solution based on the Solution Application Framework. For Ansys Internal Use Only
Template features
The following table summarizes the main properties for each of the templates available in ansys-templates:
Template |
setup.py |
pyproject.toml |
Actions |
tox.ini |
requirements/ |
Docker |
---|---|---|---|---|---|---|
doc-project |
X |
X |
X |
|||
pybasic |
X |
|||||
pyansys |
X |
X |
X |
|||
pyansys-advanced |
X |
X |
X |
X |
X |
|
pyansys-openapi-client |
||||||
pyace |
X |
X |
X |
X |
X |
X |
pyace-fast |
X |
X |
X |
X |
X |
X |
pyace-flask |
X |
X |
X |
X |
X |
X |
pyace-grpc |
X |
X |
X |
X |
X |
X |
solution “*” |
X |
X |
X |
X |
Demo branches
To have a better idea on how each template will look once it gets rendered, see its corresponding demonstration branch.
Demo branch for doc-project
Demo branch for pybasic
Demo branch for pyansys
Demo branch for pyansys-advanced using flit
Demo branch for pyansys-advanced using poetry
Demo branch for pyansys-advanced using setuptools
Demo branch for pyace
Demo branch for pyace-fast
Demo branch for pyace-flask
Demo branch for pyace-grpc
Demo branch for solution
Demo branch for osl-solution
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ansys_templates-1.4.2.tar.gz
.
File metadata
- Download URL: ansys_templates-1.4.2.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7faab84e559fd3aa04d9a30da5ce1911001dd01c97540d94485f3de302f968 |
|
MD5 | ae6b05cf514876bc3d4df165266017a1 |
|
BLAKE2b-256 | ae9784d46c5ad4d8ec8392af8c8d4e587370616f2452f739d611254ec93c76b7 |
File details
Details for the file ansys_templates-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: ansys_templates-1.4.2-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e50a7639400f576f86f6c90d789ffffa6ef456b36339e5f13034326f30c78bd |
|
MD5 | e4cc132040557ce4d7e0f040e056174b |
|
BLAKE2b-256 | efd8fd256906d49f41e3389a02c21ccf85b0fd648065adef73127c5313a991be |