PythonNet VS NuGetForUnity

Compare PythonNet vs NuGetForUnity and see what are their differences.

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. (by pythonnet)

NuGetForUnity

A NuGet Package Manager for Unity (by GlitchEnzo)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
PythonNet NuGetForUnity
37 7
4,353 2,698
1.7% -
7.0 8.1
25 days ago 19 days ago
C# C#
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

PythonNet

Posts with mentions or reviews of PythonNet. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-18.

NuGetForUnity

Posts with mentions or reviews of NuGetForUnity. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-16.
  • Is there a way to install a NuGet package with only the necessary target framework dependencies?
    1 project | /r/dotnet | 15 Jan 2023
  • Use Math.NET in Unity
    1 project | /r/Unity3D | 10 Dec 2022
    For nuget packages: There is an open source package "nuget for unity" that you can use to install nuget packages into your unity project
  • Problems with data serialization
    1 project | /r/Unity3D | 22 Aug 2022
    You can use Json.Net /Newtonsoft's solution ofr Json serialization and deserialization, it's pretty much a standard for json in C# projects. Use this https://assetstore.unity.com/packages/tools/input-management/json-net-for-unity-11347 Or Download from Nuget using https://github.com/GlitchEnzo/NuGetForUnity
  • Is it possible to connect to google calendar
    1 project | /r/Unity3D | 16 Jun 2022
  • How do I use the Cloudinary .NET SDK with Unity?
    2 projects | /r/Unity3D | 16 Jun 2021
    Hey, thanks for the comment. At this point I'm just trying to figure out how to add it to my Unity project. I'm new to adding pre-compiled DLLs to a Unity project. There are the files on the GitHub repo and the NuGet Package. I attempted to install via the NuGet Unity Package Manager but it gave me a ton of Namespace/Type Not Found errors. Same thing happened when I tried just moving the files from the GitHub repo into my Assets folder. I might just need to somehow learn more about how to install pre-compiled .NET packages into Unity. But if you have any thoughts or any directions to point me in, I would be in your debt. Thank you!
  • Tutorial - Embedding Python in Unity - using python libraries/modules in unity code. More details in the comments
    2 projects | /r/Unity3D | 24 Mar 2021
    Download the packages from https://www.nuget.org/packages/pythonnet/3.0.0-preview2021-03-03 and https://www.nuget.org/packages/System.Security.Permissions/ . Alternatively you can also install a unity-nuget plugin : https://github.com/GlitchEnzo/NuGetForUnity and install from there, This will allow you to skip the next step as the dlls are already unpacked if you use this tool. Remember to use the 3.0.0 preview version as the older versions are not compatable with Unity (reloading/reruning the game crashes the entire program)
  • https://np.reddit.com/r/Unity3D/comments/mcezws/tutorial_embedding_python_in_unity_using_python/gs36msm/
    1 project | /r/backtickbot | 24 Mar 2021
    Steps: - Create a folder in Assets for storing the dlls that are needed. - Download the packages from https://www.nuget.org/packages/pythonnet/3.0.0-preview2021-03-03 and https://www.nuget.org/packages/System.Security.Permissions/ . Alternatively you can also install a unity-nuget plugin : https://github.com/GlitchEnzo/NuGetForUnity and install from there, This will allow you to skip the next step as the dlls are already unpacked if you use this tool. Remember to use the 3.0.0 preview version as the older versions are not compatable with Unity (reloading/reruning the game crashes the entire program) - The packages contain the dlls so you need to unzip them and copy over the Python.Runtime.dll from \lib\netstandard2.0 inside the unzipped folder and System.Security.Permissions.dll from lib\net461\ which pythonnet depends on. Copy these dlls into the folder in Assets. - Download an embedded python (I was able to get it working with python 3.7, not sure how well the other versions work) and install pip and any other modules you want. Move the folder into the StreamingAssets folder in Assets (create one if you don't have one). - Change the Api Compatability level to 4.x. This can be found in Edit -> Project Settings -> Player -> Other settings -> Api Compatability level. - Create a script to use python. You need to point to the python (Python3x.dll for windows, libpython3.x.so for Linux and libpython3.x.dylib for Mac where x is the version) in the streaming assets folder. - More info can be found here: https://github.com/pythonnet/pythonnet#embedding-python-in-net here is a sample script for running numpy.

What are some alternatives?

When comparing PythonNet and NuGetForUnity you can also consider the following projects:

Iron python - Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR).

CloudinaryDotNet - Cloudinary DotNet library

PyWin32 - python for windows extensions

WinPython - A free Python-distribution for Windows platform, including prebuilt packages for Scientific Python.

CefSharp - .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

CppSharp - Tools and libraries to glue C/C++ APIs to high-level languages

pyxll-utils

pinvoke - A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.

LegacyWrapper - LegacyWrapper uses a x86 wrapper to call legacy dlls from a 64 bit process (or vice versa).

pythonlibs - A Python wrapper for the extremely fast Blosc compression library

python-language-server - Microsoft Language Server for Python

py2many - Transpiler of Python to many other languages