Skip to main content

Creates Python projects according to PyAnsys guidelines

Project description

PyAnsys Python PyPI CH-CI Codecov MIT Black

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.

https://github.com/ansys/ansys-templates/raw/main/doc/source/_static/basic_usage.gif

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.

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

ansys_templates-1.3.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

ansys_templates-1.3.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file ansys_templates-1.3.1.tar.gz.

File metadata

  • Download URL: ansys_templates-1.3.1.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

Hashes for ansys_templates-1.3.1.tar.gz
Algorithm Hash digest
SHA256 4fd8085456644cf93c7a790a182d3e68d3bb0e3adfa7acef317f3afe3c181733
MD5 2fd49c13ca0f0ce4c7a5286dfc4df066
BLAKE2b-256 3874e81d7b0c32db8f55725ec72dbe6be128b41e53adbe7edef985ecf35aa5e4

See more details on using hashes here.

File details

Details for the file ansys_templates-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_templates-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44eaa837dba1be9a3f86689166fb5977a1a6385a6e0149433463a4e0bd7b316c
MD5 2cb2ddca51c649ff5be96db5db12f214
BLAKE2b-256 a434fd838c8e273ca7166a25db1068af0bebdc0147f80ea38060494d9de885fa

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