# pythonnet/pythonnet

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.

Repository: https://github.com/pythonnet/pythonnet
Canonical: https://ross.abutalabs.com/products/pythonnet
Homepage: http://pythonnet.github.io
Language: C#
License: MIT
License Family: permissive
Topics: python, dotnet, mono, clr, pythonnet, ffi, csharp, hacktoberfest
Last push: 2026-08-16T11:27:23+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 53, longevity 100
- inputs: {"age_days": 4662, "days_push": 17, "days_rel": 102, "gap_med": 305.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5512, forks 780 (observed 2026-08-28T04:09:21.798913+00:00)

## What it is
Python.NET (pythonnet) is a library that integrates CPython with the .NET Common Language Runtime, letting Python code call .NET assemblies and letting .NET applications embed and script Python. It works with .NET Framework, .NET Core, and Mono on Windows, Linux, and macOS.

## Use cases
- call .NET libraries from Python
- use C# assemblies in a Python script
- embed a Python interpreter in a .NET application
- script .NET applications with Python
- load CLR namespaces as Python packages
- interoperate between Python and C# code

## When to choose
- you need to use existing .NET assemblies or services from Python code
- you want to add Python scripting to a C#/.NET application
- you need native CPython speed and C-extension compatibility while accessing the CLR
- you need cross-platform .NET interop including Mono and .NET Core

## When to avoid
- you want Python compiled to managed IL running as a first-class CLR language (use IronPython)
- your project has no need to interact with .NET or the CLR
- you need a pure-Python or pure-.NET solution without native runtime dependencies

## Facets
- artifact type: library
- maturity: stable
- function: sdk, interpreter, developer-tools
- domain: developer-tools, cross-platform, programming-languages
- platform: python, dotnet, windows, cross-platform
- tags: clr, interop, ffi, mono, csharp, embedding, scripting, linux, macos

## Member repositories
- pythonnet/pythonnet (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:21.798913+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:15.070699+00:00, confidence not recorded.
  - readme: https://github.com/pythonnet/pythonnet (fetched 2026-08-28T04:09:21.798913+00:00, sha 058fa8fd9590)
  - homepage: http://pythonnet.github.io (fetched 2026-08-29T08:51:15.486199+00:00, sha 83c55db58dcb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
