Registry / serialization / ansys-pythonnet

ansys-pythonnet

JSON →
library3.1.0rc8pypypiunverified

Ansys fork of pythonnet providing .NET and Mono integration for Python. Version 3.1.0rc6, targeting Python 3.7-3.13. Active development with release candidate status.

pip install ansys-pythonnet
INSTALL
IMPORT
SIG · ANSYS-PYTHONNET
A
ansys-pythonnet
serializationpythonv3.1.0rc8
Install
1.9s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.1.0rc8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.5MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 1.9s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

clr
import clr
import clr
load
from pythonnet import load
import clr
set_runtime
from pythonnet import set_runtime
import clr

Basic usage: import clr, add a .NET assembly reference, and import .NET namespaces.

import clr # Add reference to a .NET assembly clr.AddReference('System.Windows.Forms') from System.Windows.Forms import MessageBox MessageBox.Show('Hello from .NET!')
Debug
Known issues
breakingThe PythonNET (pythonnet) fork renamed to ansys-pythonnet. Import statements remain 'import clr' but package name changed. Existing code using 'pythonnet' package will not work; reinstall with 'pip install ansys-pythonnet'.
fix
Replace 'pythonnet' with 'ansys-pythonnet' in requirements.txt and environment.
affects: all versions of this fork
deprecatedclr.AddReference works, but the newer recommended approach uses 'import clr' and then 'clr.AddReference' with assembly names. Avoid loading assemblies via absolute paths if possible.
fix
Use assembly name without extension: clr.AddReference('System.Windows.Forms') instead of path.
affects: >=3.1.0rc1
gotchaPython 3.13 is not fully supported yet; current version supports <3.14,>=3.7 but only tested up to 3.12. Use Python 3.12 or earlier for stable behavior.
fix
Use Python 3.12 or earlier. Check official repo for updates.
affects: 3.1.0rc6
Upgrade
Version history
3.1.0rc8latest on PyPI · released May 14, 2026
Audit
Dependencies
clrrequiredCore .NET integration module
Agent activity
29 hits · last 30 days
node
22
OpenAI (training)
1
Resources
ansys-pythonnet — pip install ansys-pythonnet · libregistry