Skip to content

Releases: sadhbh-c0d3/pydotnet

PyDotnet 1.5.1 (Python 3.12 64-bit)

14 Mar 01:50

Choose a tag to compare

What's new

PyDotnet version 1.5.1 supports:

  • Python 3.12 64-bit
  • Python 3.10 64-bit
  • Built with Visual Studio 2022 (vc143)

Installation

pip install dotnet

Windows on ARM64

We found out that the native ARM64 build is not possible, because Microsoft does not plan to add native ARM64 support to .NET Framework.

PyDotnet 1.4.2 (Python 3.9)

30 Oct 21:45
3d3bb3e

Choose a tag to compare

What's new

  • Python 3.9 support

This is a release for Python 3.9 (amd64).

Support Python 2.7 and 3.6 exists in earlier release 1.3.1. There is no significant code changes between 1.4.2 and 1.3.1 other than Python 3.9 is now supported.

There is no Linux version. PyDotnet is available exclusively on Windows.

Installation

pip install dotnet

Usage

example 1.

import dotnet.seamless

hello = Tuple2[String, Int32]('Hello', 123)
print('{} - {}'format(hello.Item1, hello.Item2))

output 1.

Hello - 123

example 2.

from System.Collections.Generic import List

stuff = List[Dictionary[String, Object]]([
    {'name':'Bob', 'age':40},
    {'name':'Marry', 'age':28}
])

for entry in stuff:
    print('%(name)s is %(age)s years old' % entry)

output 2.

Bob is 40 years old
Marry is 28 years old