A python wrapper for Ansys SimAI
Project description
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:
Start by cloning this repository:
git clone https://github.com/ansys/pysimai
Use PDM to create a virtual env with the dependencies and activate it
pdm install eval $(pdm venv activate)
Finally, verify your development installation by running:
tox
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: checs 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:
python -m pip install pre-commit && pre-commit install
Documentation
For building documentation, you can either run the usual rules provided in the Sphinx Makefile, such as:
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
PDM commands can help you build or publish the package
pdm build
pdm publish
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_simai_core-0.1.3.tar.gz
.
File metadata
- Download URL: ansys_simai_core-0.1.3.tar.gz
- Upload date:
- Size: 57.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15a101dc591dd612fb8fa64d0c7d9d01b9592d6b97e41b93a358ad789f4585f9 |
|
MD5 | 117de67ef3a0733fcf01eb72beeaeda7 |
|
BLAKE2b-256 | dc26fc3ada4bb13a9df9bef3e07ac0fe2912dfb2189b4631d60eab3ace64a69d |
File details
Details for the file ansys_simai_core-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: ansys_simai_core-0.1.3-py3-none-any.whl
- Upload date:
- Size: 102.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1448c19c5d43321b6f53edd795110fb01c1b55c31ee6f66bc7ff7fd6abdd35f |
|
MD5 | 43131dd3996c2b1cbcd9db50b55f14eb |
|
BLAKE2b-256 | 3076b35ec18a66264bbe32c402aa19ba12d8ea8e17500d01c6a376781aeee022 |