clr_loader
Generic pure Python loader for .NET runtimes
What it is and what it does
clr-loader is a pure Python package that abstracts the complexity of loading and interacting with Common Language Runtime (CLR) implementations from within Python code. It provides a generic interface so you don't have to handle platform-specific or runtime-specific details yourself when you need to call .NET functions from Python.
The package depends only on cffi for low-level interoperability and targets Python >=3.10. It is actively maintained and has no known vulnerabilities, though its beta status means the API may change. Use it when you need to integrate Python with existing .NET code or libraries without managing the runtime loading boilerplate yourself.
Use it for:
- Calling .NET library functions from a Python application without manually managing CLR initialization.
- Bridging Python data processing pipelines with .NET components in a mixed-language system.
- Testing .NET code from Python test suites by loading the CLR runtime and invoking functions.
- Wrapping .NET utilities in a Python interface for cross-platform deployment.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Loads and provides a generic interface to call functions on CLR (.NET) runtime implementations from Python.
Yes, if you need to call .NET functions from Python and want to avoid runtime-loading boilerplate. Verify the license terms first (they are not recorded in the package metadata), confirm that your target CLR implementation is supported, and ensure Python >=3.10 is available. Low install friction and active maintenance make it a reasonable choice for .NET interop.
Install
clr-loader on PyPI
pip
pip install clr-loaderuv
uv add clr-loaderpoetry
poetry add clr-loaderInstalling clr_loader
Before you install
Low install friction with a pure Python wheel and single runtime dependency (cffi). Active maintenance with recent commits, though the repository has modest visibility (43 stars). Beta status suggests the API may still evolve.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is recorded. Verify the actual license terms in the repository before use in proprietary or restricted contexts.
Quickstart
pip install clr-loader
import clr_loader
# Load a CLR runtime and call a function
runtime = clr_loader.get_runtime()
result = runtime.call_function(...)
Requires Python >=3.10 and a CLR runtime installed on the system.
Verify before relying
- Which CLR implementations are supported (Mono, .NET Framework, .NET Core, etc.)
- Whether cffi requires compilation or system libraries on target platforms
- Scope of 'simple functions' supported—parameter types, return values, exception handling
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — cffi |
| Maintenance | actively maintained — 118 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,621,072/month — #2,555 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: clr_loader-0.3.1-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pythonnetpythonnet enables Python code to call .NET and…
permissive · top 5,000 on PyPI
dotnetcore2Bundles the .NET Core 3.1 runtime as a Python…
permissive · top 15,000 on PyPI
dnfileParses .NET executable files to extract and…
permissive · top 15,000 on PyPI
cleCLE loads binary executables and shared…
permissive · top 5,000 on PyPI
chialisp-loaderLoads compiled Chialisp programs (`.hex` files)…
unclear · top 15,000 on PyPI
aiodataloaderBatches and caches concurrent data requests in…
permissive · top 5,000 on PyPI
dotenvLoads environment variables from a .env file…
unclear · top 5,000 on PyPI
fastsafetensorsLoads safetensors model files significantly…
permissive · top 5,000 on PyPI
dncildncil is a Python library for disassembling…
permissive · top 15,000 on PyPI
espeakng-loaderLoads the espeak-ng shared library and makes it…
unclear · top 5,000 on PyPI