Skip to main content

A python wrapper for Ansys SimAI

Project description

PyAnsys Python PyPI GH-CI Codecov MIT Ruff

A Python wrapper for Ansys SimAI

How to install

At least two installation modes are provided: user and developer.

For users

In order to install PySimAI, make sure you have the latest version of pip. To do so, run:

python -m pip install -U pip

Then, you can simply execute:

python -m pip install ansys-simai-core

For developers

Installing PySimAI in developer mode allows you to modify the source and enhance it.

Before contributing to the project, please refer to the PyAnsys Developer’s guide. You will need to follow these steps:

  1. Start by cloning this repository:

    git clone https://github.com/ansys/pysimai
  2. Install uv. NB: If you are a Windows user, make sure that Python is installed on your system and it is added to the Path.

  3. Use uv to run commands

    uv run pytest -xlv
  4. Finally, verify your development installation by running:

    uv tool install tox --with tox-uv
    tox
  5. Alternatively, you can also run tasks defined in pyproject.toml using poethepoet:

    uv tool install poethepoet
    uv run poe lint
    uv run poe test
    uv run poe doc

How to test

This project takes advantage of tox. This tool allows to automate common development tasks (similar to Makefile) but it is oriented towards Python development.

Using tox

As Makefile has rules, tox has environments. In fact, the tool creates its own virtual environment so anything being tested is isolated from the project in order to guarantee project’s integrity. The following environments commands are provided:

  • tox -e style: will check for coding style quality.

  • tox -e py: checks for unit tests.

  • tox -e py-coverage: checks for unit testing and code coverage.

  • tox -e doc: checks for documentation building process.

Raw testing

If required, you can always call the style commands (ruff) or unit testing ones (pytest) from the command line. However, this does not guarantee that your project is being tested in an isolated environment, which is the reason why tools like tox exist.

A note on pre-commit

The style checks take advantage of pre-commit. Developers are not forced but encouraged to install this tool via:

uv tool install pre-commit && pre-commit install

Documentation

For building documentation, you can either run the usual rules provided in the Sphinx Makefile, such as:

uv run make -C doc/ html && open doc/html/index.html

However, the recommended way of checking documentation integrity is using:

tox -e doc && open .tox/doc_out/index.html

Distributing

uv commands can help you build or publish the package

uv build
uv publish

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_simai_core-0.3.4.tar.gz (310.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansys_simai_core-0.3.4-py3-none-any.whl (150.8 kB view details)

Uploaded Python 3

File details

Details for the file ansys_simai_core-0.3.4.tar.gz.

File metadata

  • Download URL: ansys_simai_core-0.3.4.tar.gz
  • Upload date:
  • Size: 310.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ansys_simai_core-0.3.4.tar.gz
Algorithm Hash digest
SHA256 f9e9f72f456f940721fc378897d69739725f67597e59f4a9e5f46c58cd85c5f2
MD5 69ac396d17789c29d2ccc0f881222d48
BLAKE2b-256 b6a20bcca29a1f70ca86b9d77f3e45712f992dea8b42dcdaa6cff416d053143b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_simai_core-0.3.4.tar.gz:

Publisher: ci_cd.yml on ansys/pysimai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansys_simai_core-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_simai_core-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b34fece6096da06a35472e5adfd61bf47ee843c3584dfc47e09e0e2e75701ea4
MD5 88cc7b637476a06b32565c297f986a1a
BLAKE2b-256 3ab39bad956c743da2a0b993f93837a1eb206e4c001ea67d8f47bce964279e60

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansys_simai_core-0.3.4-py3-none-any.whl:

Publisher: ci_cd.yml on ansys/pysimai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page