Skip to main content

PyTwin

PyAnsys Python PyPI Codecov GH-CI MIT Black pre-commit.ci status

Overview

PyTwin is a Python package for consuming a digital twin model that has been exported from Ansys Twin Builder as a TWIN file. Each TWIN file is a self-contained app (twin runtime) that consists of two parts:

  • The twin model, which is the simulation model created and compiled in Twin Builder

  • The runtime SDK, which is the shared library for consuming the twin model within the deployment workflow.

Because PyTwin wraps a twin runtime in a Python interface, you do not need a Twin Builder installation to deploy it.

For more information on digital twins and Ansys Twin Builder, see Digital Twins and Ansys Twin Builder on the Ansys website.

Documentation

For comprehensive information on PyTwin, see the latest release Documentation and its sections:

Installation

The pytwin package supports Python 3.10 through Python 3.13 on Windows and Linux.

Install the latest release from PyPI with this command:

pip install pytwin

If you plan on doing local development of PyTwin with Git, install the latest release with this code:

git clone https://github.com/ansys/pytwin.git
cd pytwin
pip install pip -U
pip install -e .

Dependencies

The pytwin package requires access to an Ansys License Server with the twin_builder_deployer feature available. For more information, see Getting started.

License and acknowledgments

PyTwin is licensed under the MIT license.

Metadata

Release files for pytwin 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytwin 0.13.1
File Size Uploaded Provenance Actions
pytwin-0.13.1.tar.gz 36.1 MB With provenance Details for pytwin-0.13.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytwin 0.13.1
File Interpreter ABI Platform Actions
pytwin-0.13.1-py3-none-any.whl Python 3 none any Details for pytwin-0.13.1-py3-none-any.whl

Total release size: 72.5 MB

Release files / pytwin-0.13.1.tar.gz

Download URL pytwin-0.13.1.tar.gz
Size 36.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ca188d73dc2afaac827d04f03f7192d2b86b3f2390dc6e915335eeef502f7481
BLAKE2b-256 checksum
How to use checksums
6650e0fdad68b04bbaaf35dd7752a6f5f2678ead124dfce73aecc91f7de7156f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / pytwin-0.13.1-py3-none-any.whl

Download URL pytwin-0.13.1-py3-none-any.whl
Size 36.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9359623a13f7a7c3544b10026b8a0089c8bf1ad6c36a755bdfb36962365a929a
BLAKE2b-256 checksum
How to use checksums
af60029a7973af20ab4c9bb3bf178ae75c215407eeba7b0b402ae305e2912e19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for pytwin 0.13.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytwin-0.13.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page