An open API service indexing awesome lists of open source software.

https://github.com/losttech/whichpython

Cross-platform .NET library, that helps to list available Python installations
https://github.com/losttech/whichpython

hacktoberfest

Last synced: 5 months ago
JSON representation

Cross-platform .NET library, that helps to list available Python installations

Awesome Lists containing this project

README

          

# WhichPython
Cross-platform library, that lists available Python environments

[![WhichPython on NuGet](https://img.shields.io/nuget/v/WhichPython)](https://www.nuget.org/packages/WhichPython/)

## Sample (see app folder)

```csharp
foreach (var environment in PythonEnvironment.EnumerateEnvironments()
.Concat(CondaEnvironment.EnumerateCondaEnvironments())) {
Console.WriteLine(this.HomeOnly
? environment.Home?.FullName
: $"{environment.LanguageVersion?.ToString(2) ?? "??"}-{environment.Architecture?.ToString() ?? "???"} @ {environment.Home}");
}
```