Giter Site home page Giter Site logo

pythonnet / pythonnet Goto Github PK

View Code? Open in Web Editor NEW
4.4K 152.0 682.0 9.58 MB

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.

Home Page: http://pythonnet.github.io

License: MIT License

Python 18.38% C# 81.03% C 0.59%
python dotnet mono clr pythonnet ffi csharp hacktoberfest

pythonnet's Introduction

pythonnet - Python.NET

Join the chat at https://gitter.im/pythonnet/pythonnet stackexchange shield

gh shield

license shield

pypi package version conda-forge version python supported shield

nuget preview shield nuget release shield

Python.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. It allows Python code to interact with the CLR, and may also be used to embed Python into a .NET application.

Calling .NET code from Python

Python.NET allows CLR namespaces to be treated essentially as Python packages.

import clr
from System import String
from System.Collections import *

To load an assembly, use the AddReference function in the clr module:

import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import Form

By default, Mono will be used on Linux and macOS, .NET Framework on Windows. For details on the loading of different runtimes, please refer to the documentation.

.NET Core

If .NET Core is installed in a default location or the dotnet CLI tool is on the PATH, loading it instead of the default (Mono/.NET Framework) runtime just requires setting either the environment variable PYTHONNET_RUNTIME=coreclr or calling pythonnet.load explicitly:

from pythonnet import load
load("coreclr")

import clr

Embedding Python in .NET

  • You must set Runtime.PythonDLL property or PYTHONNET_PYDLL environment variable starting with version 3.0, otherwise you will receive BadPythonDllException (internal, derived from MissingMethodException) upon calling Initialize. Typical values are python38.dll (Windows), libpython3.8.dylib (Mac), libpython3.8.so (most other Unix-like operating systems).
  • Then call PythonEngine.Initialize(). If you plan to use Python objects from multiple threads, also call PythonEngine.BeginAllowThreads().
  • All calls to python should be inside a using (Py.GIL()) {/* Your code here */} block.
  • Import python modules using dynamic mod = Py.Import("mod"), then you can call functions as normal, eg mod.func(args).
  • Use mod.func(args, Py.kw("keywordargname", keywordargvalue)) or mod.func(args, keywordargname: keywordargvalue) to apply keyword arguments.
  • All python objects should be declared as dynamic type.
  • Mathematical operations involving python and literal/managed types must have the python object first, eg. np.pi * 2 works, 2 * np.pi doesn't.

Example

static void Main(string[] args)
{
    PythonEngine.Initialize();
    using (Py.GIL())
    {
        dynamic np = Py.Import("numpy");
        Console.WriteLine(np.cos(np.pi * 2));

        dynamic sin = np.sin;
        Console.WriteLine(sin(5));

        double c = (double)(np.cos(5) + sin(5));
        Console.WriteLine(c);

        dynamic a = np.array(new List<float> { 1, 2, 3 });
        Console.WriteLine(a.dtype);

        dynamic b = np.array(new List<float> { 6, 5, 4 }, dtype: np.int32);
        Console.WriteLine(b.dtype);

        Console.WriteLine(a * b);
        Console.ReadKey();
    }
}

Output:

1.0
-0.958924274663
-0.6752620892
float64
int32
[  6.  10.  12.]

Resources

Information on installation, FAQ, troubleshooting, debugging, and projects using pythonnet can be found in the Wiki:

https://github.com/pythonnet/pythonnet/wiki

Mailing list

https://mail.python.org/mailman/listinfo/pythondotnet

Chat

https://gitter.im/pythonnet/pythonnet

.NET Foundation

This project is supported by the .NET Foundation.

pythonnet's People

Contributors

amos402 avatar badsingleton avatar brianlloyd avatar cronan avatar danabr avatar davidanthoff avatar den-run-ai avatar dmitriyse avatar fdanny avatar filmor avatar gertdreyer avatar jmlidbetter avatar johnburnett avatar koubaa avatar lostmsu avatar lstratman avatar matthid avatar patstew avatar pkese avatar rickardraysearch avatar rmadsen-ks avatar slide avatar stonebig avatar testrunner123 avatar tiran avatar tminka avatar tonyroberts avatar vmuriart avatar williamsardar avatar yagweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonnet's Issues

Python.Runtime fails on .NET 4.5 and up

Currently library fails on .NET 4.5. I know that 4.5 is not technically supported but the issue very painful because .NET 4.5 is update in place which overrides CLR. So, having it installed I don't really have an option to run it on ver 4.
When I try to run an application that uses Python for .NET i get exception

System.ArgumentNullException was unhandled
HResult=-2147467261
Message=Value cannot be null.
Parameter name: key
Source=mscorlib
ParamName=key
StackTrace:
at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at System.Collections.Generic.Dictionary2.TryGetValue(TKey key, TValue& value)
at Python.Runtime.GenericUtil.Register(Type t) in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonnet\src\runtime\genericutil.cs:line 41
at Python.Runtime.AssemblyManager.ScanAssembly(Assembly assembly) in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonnet\src\runtime\assemblymanager.cs:line 266
at Python.Runtime.AssemblyManager.Initialize() in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonnet\src\runtime\assemblymanager.cs:line 60
at Python.Runtime.Runtime.Initialize() in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonnet\src\runtime\runtime.cs:line 166
at Python.Runtime.PythonEngine.Initialize() in D:\Users\Barton\Documents\Visual Studio 2010\Projects\PySharp\trunk\pythonnet\src\runtime\pythonengine.cs:line 118
at Program.Program.main(String[] _arg1) in C:\Users\mitekm\Documents\Visual Studio 2013\Projects\TryPythonForNet\TryPythonForNet\Program.fs:line 54
InnerException:

I did some extra investigation. What happens is that this line of code fails

https://github.com/pythonnet/pythonnet/blob/develop/pythonnet/src/runtime/genericutil.cs#L41

because Namespace property is null on generic type EmptyArray`1 introduced in .NET 4.5. This type located in root namespace therefore Namespace property value is null.
I made quick fix on
https://github.com/pythonnet/pythonnet/blob/develop/pythonnet/src/runtime/assemblymanager.cs#L286

to replace
if (t.IsGenericTypeDefinition) {
GenericUtil.Register(t);
}

with
if (t.IsGenericTypeDefinition && t.IsPublic) {
GenericUtil.Register(t);
}
Honestly, I don't understand why the Python.Runtime process non-public type.

It worked on .NET 4 because this type EmptyArray'1 didn't exist there. As a matter of fact there were no generic types in root namespace.

Do you plan to start taking pull requests soon?

Thanks, Dmitry

compile on linux 64 bit with mono

Hi,

I have compiled mono on my linux (Fedora 17) 64 but machine. With some basic checks, i can say that it is working. I then tried to compile the pythonnet downloaded from github but i have not been able to compile it. I wanted to know whether it is compatible with 64 bit systems. Honestly, I am not familiar with csharp, and i use pythondotnet to connect to some csharp libraries and use them in python.

I get this error, even though i have put NuGet.exe in mono, I still cant get it to work. I would appreciate any help

Unhandled Exception: System.TypeLoadException: Could not load type 'NuGet.Program' from assembly 'NuGet, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=null'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'NuGet.Program' from assembly 'NuGet, Version=2.8.50126.400, Culture=neutral, PublicKeyToken=null'.

Compiled project crashes when frozen with cx_freeze

Machine specs:
Windows 7 64bit
Python 2.7 32bit
.Net Framework 4.5.2

I download the repo for pythonnet and built the project using ReleaseWin on platform x86 using visual studio 2012.
pythonnet works fine but once i freeze the app using cx_freeze the app crashes.

It worked well with the source forge version but fails on windows 8 and 8.1.

After googling around i found that building the repo using x86 solves the problem.

Please anyone knows a fix ?

dynamic PyObject cast required inconsistenly

I'm passing a float as dynamic PyObject from Python to C# and this kind of assignment is automagically accepted:

double csharpfloat = PythonFunctionReturningFloat();

But when using this PyObject in other numerical operations, then explicit casting is required:

double csharpfloat = 1/(double)PythonFunctionReturningFloat();
double csharpfloat += (double)PythonFunctionReturningFloat();

Any reason for such inconsistent behavior?

Find msbuild.exe location from registry

Currently setup.py is using msvc9compiler.MSVCCompiler's find_exe method to find the location of msbuild.exe. That doesn't work unless VS is installed. We should probably be able to find the msbuild location by reading the official location from the registry, thus removing the dependency on VS.

.ToString() compatability with IronPython

Hi,

I tried to run an IronPython code with python for .Net

the place it failes is demonstrated with:

x = 22
x.ToString()

on IronPython the results is
'22'

on python for .net, an exception is raised:
AttributeError: 'int' object has no attribute 'ToString'

Any way to solve this issue? (importing clr doesn't help)

Thanks!

Add support for DLR types

Using this it's possible to implement all required functionality in a separate DLR meta-class. I've already tried to do this in Python but sadly the .NET types (or their representation in Python-space) are not patchable.

building on OSX

I'm having trouble building 64bit pythonnet on OSX (Mavericks 10.9.5). I have downloaded 64bit Mono (3.12.0) from http://www.monobjc.net/downloads-archives-mono.html which works just fine, but building fails with:

tests-Mac-2:pythonnet-develop test$ python setup.py build
running build
running build_ext
All packages listed in packages.config are already installed.
XBuild Engine Version 12.0
Mono, Version 3.12.0.0
Copyright (C) 2005-2013 Various Mono authors
/Users/test/Documents/pythonnet-develop/pythonnet.sln:  warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.
XBuild Engine Version 12.0
Mono, Version 3.12.0.0
Copyright (C) 2005-2013 Various Mono authors
        Configuration: ReleaseMono Platform: x64
assemblymanager.cs(188,37): warning CS0168: The variable `e' is declared but never used
methodbinder.cs(128,16): warning CS0219: The variable `typeArgs' is assigned but its value is never used
methodbinding.cs(102,10): warning CS0219: The variable `len' is assigned but its value is never used
/Users/test/Documents/pythonnet-develop/pythonnet.sln:  warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.
Configuration: ReleaseMono Platform: x64
fieldtest.cs(28,17): warning CS0219: The variable `i' is assigned but its value is never used
fieldtest.cs(29,17): warning CS0219: The variable `j' is assigned but its value is never used
arraytest.cs(54,23): warning CS0414: The private field `Python.Test.PrivateArrayTest.items' is assigned but its value is never used
Configuration: ReleaseMono Platform: x64
pyimport.cs(45,17): warning CS0219: The variable `r' is assigned but its value is never used
Configuration: Release Platform: x64
assemblyinfo.cs(24,49): warning CS0618: `System.Security.Permissions.SecurityAction.RequestMinimum' is obsolete: `This requests should not be used'
pythonconsole.cs(24,24): warning CS0219: The variable `a' is assigned but its value is never used
building 'clr' extension
creating build/temp.macosx-10.6-intel-2.7
creating build/temp.macosx-10.6-intel-2.7/src
creating build/temp.macosx-10.6-intel-2.7/src/monoclr
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/monoclr/pynetinit.c -o build/temp.macosx-10.6-intel-2.7/src/monoclr/pynetinit.o -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/pkgconfig/../../include/mono-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/glib-2.0/include -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/monoclr/clrmod.c -o build/temp.macosx-10.6-intel-2.7/src/monoclr/clrmod.o -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/pkgconfig/../../include/mono-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/glib-2.0/include -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/src/monoclr/pynetinit.o build/temp.macosx-10.6-intel-2.7/src/monoclr/clrmod.o -o build/lib.macosx-10.6-intel-2.7/clr.so -L/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/pkgconfig/../../lib -lmono-2.0 -lpthread -L/Library/Frameworks/Mono.framework/Versions/3.12.0/lib -lglib-2.0 -lintl
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libglib-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libglib-2.0.dylib
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libintl.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libintl.dylib
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/monoclr/pynetinit.c -o build/temp.macosx-10.6-intel-2.7/src/monoclr/pynetinit.o -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/pkgconfig/../../include/mono-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/glib-2.0/include -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/monoclr/python.c -o build/temp.macosx-10.6-intel-2.7/src/monoclr/python.o -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/pkgconfig/../../include/mono-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/glib-2.0/include -I/Library/Frameworks/Mono.framework/Versions/3.12.0/include
/usr/bin/clang build/temp.macosx-10.6-intel-2.7/src/monoclr/pynetinit.o build/temp.macosx-10.6-intel-2.7/src/monoclr/python.o -L/Library/Frameworks/Python.framework/Versions/2.7 -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload -o build/lib.macosx-10.6-intel-2.7/npython -L/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/pkgconfig/../../lib -lmono-2.0 -lpthread -L/Library/Frameworks/Mono.framework/Versions/3.12.0/lib -lglib-2.0 -lintl 
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libglib-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libglib-2.0.dylib
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libintl.dylib, file was built for i386 which is not the architecture being linked (x86_64): /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/libintl.dylib
Undefined symbols for architecture x86_64:
  "_PyErr_SetString", referenced from:
      _PyNet_Init in pynetinit.o
  "_PyExc_ImportError", referenced from:
      _PyNet_Init in pynetinit.o
  "_PyList_GetItem", referenced from:
      _main_thread_handler in pynetinit.o
  "_PyList_Size", referenced from:
      _main_thread_handler in pynetinit.o
  "_PyString_AsString", referenced from:
      _main_thread_handler in pynetinit.o
  "_PySys_GetObject", referenced from:
      _main_thread_handler in pynetinit.o
  "_Py_Main", referenced from:
      _main in python.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1

pip uninstall leaves Python.Runtime.dll behind

Install via

pip install git+https://github.com/pythonnet/pythonnet#egg=pythonnet

then uninstall via

pip uninstall pythonnet

This leaves Python.Runtime.dll behind in the site-packages directory, which it shouldn't.

PS: if the initial install is from a wheel, everything gets uninstalled correctly.

class docstring gets unset if the class has a constructor

Setting a class docstring using DocStringAttribute doesn't work if the class has a constructor, unless SuppressDocs is set.

The class docstring should only get defaulted to the ctor string if no explicit docstring has been provided.

Include Python.Runtime.dll in scripts directory in the wheels

nPython.exe as installed by the wheels doesn't work because it doesn't find the runtime dll. I think the correct solution is that the wheel places two copies of the runtime dll in the python dirs: one in the scripts directory and one in the site-packages location.

Enable source dist creation from setup.py

We need setup.py to create a working source distribution that can be uploaded to pypi so that pip install pythonnet works on linux. The main task here is to make sure all the source files are included in the source distribution.

Error with python 3.4

This is more for the Renshaw Bay Fork but I am posting here as there is no issue tracker there.

Basically Python 3.4 (and 3.3 AFAIK) have larger unicode support and trigger the UCS4 support in PythonNET's setup.py, causing the build to fail as Mono.Posix most likely is not available.

I get around this by editing setup.py to always use UCS2, but this needs to be fixed.

problem loading transitive assembly dependencies from PYTHONPATH

Transitive assembly dependencies do not seem to be found in the augmented search path… this became a problem with commit b65fa30, Use Assembly.Load(Byte[]) instead of Assembly.LoadFrom.

Prior to this commit, calling clr.AddReference("X") in python for an assembly X in the PYTHONPATH did not result in invocation of ResolveHandler for its dependencies that lived in the same directory as X.

After this commit, ResolveHandler is invoked and passes to LoadAssemblyPath the args.Name that looks like this (say Y is a dependency of X):

"Y, Version=a.b.c.d, Culture=neutral, PublicKeyToken=null"

So, FindAssembly fails because its temp = path + ".dll' looks like

"C:\\pathtoassembly\\Y, Version=a.b.c.d, Culture=neutral, PublicKeyToken=null.dll"

Any advice on how to fix would be appreciated.

Invoking a System.Func fails -

Any reason in particular this fails?

In [36]: def myfunc(x): x + 1

In [37]: f = Func[Int32,Int32](myfunc)

In [38]: f(2)
---------------------------------------------------------------------------
ConversionException                       Traceback (most recent call last)
<ipython-input-38-8ffcfab90d28> in <module>()
----> 1 f(2)

ConversionException: could not convert Python result to System.Int32
at Python.Runtime.Dispatcher.Dispatch(ArrayList args)
at __System_Func`2\[\[System_Int32\, mscorlib\, Version=4_0_0_0\, Culture=neutral\, PublicKeyToken=b77a5c561934e089\]\,\[System_Int32\, mscorlib\,  Version=4_0_0_0\, Culture=neutral\, PublicKeyToken=b77a5c561934e089\]\]Dispatcher.Invoke(Int32 )

Missing Python.Runtime in new pre-release version of Python.net

Hi!
I have installed (using pip) the new prerelease version of Python.net. If I run python.exe, and do 'import cld' I get a FileLoadException, as shown below:

Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.

C:\Users\rudil>python
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.

import clr

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'Python.Runtime, Version=4.0.0.1, Culture=neutral, PublicKeyToken=5000fea6cba7
02dd' or one of its dependencies. The located assembly's manifest definition doe
s not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod
eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntro
spection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String code
Base, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& s
tackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntros
pection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as
semblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMar
k& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIn
trospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at clrModule.initclr()

Regards,
Rudi

pythonnet-2.0-Beta0-clr4.0 cannot import clr from anywhere but C:\Python27 dir

I cannot import clr unless the 3 files (nPython, Python.Runtime & clr) are placed in the directory C:\Python27.
If placed anywhere else I get the following error:
"dynamic module not initialized properly"
I'm on CPython 2.7.5, Win7 32bit.
I have .NET Framework 4.5 installed.
If I try to build the pythonnet solution in VS2012 I get the following error:
Error 2 The target "RGieseckeDllExport" does not exist in the project. C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\clrmodule\clrmodule.csproj 124 29 clrmodule

If I try to run python setup.py install I get:

C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet>python se
tup.py install
running install
running bdist_egg
running egg_info
writing pythonnet.egg-info\PKG-INFO
writing top-level names to pythonnet.egg-info\top_level.txt
writing dependency_links to pythonnet.egg-info\dependency_links.txt
reading manifest file 'pythonnet.egg-info\SOURCES.txt'
writing manifest file 'pythonnet.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_ext
Microsoft (R) Build Engine version 4.0.30319.18408
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Build Engine version 4.0.30319.18408
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.

assemblymanager.cs(188,37): warning CS0168: The variable 'e' is declared but ne
ver used [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonne
t\src\runtime\Python.Runtime.csproj]
Python.Runtime -> C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develo
p\pythonnet\src\runtime\bin\x86\ReleaseWin\Python.Runtime.dll
eventtest.cs(44,48): warning CS0067: The event 'Python.Test.EventTest.InternalS
taticEvent' is never used [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet
-develop\pythonnet\src\testing\Python.Test.csproj]
eventtest.cs(46,47): warning CS0067: The event 'Python.Test.EventTest.PrivateSt
aticEvent' is never used [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-
develop\pythonnet\src\testing\Python.Test.csproj]
eventtest.cs(52,41): warning CS0067: The event 'Python.Test.EventTest.InternalE
vent' is never used [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-devel
op\pythonnet\src\testing\Python.Test.csproj]
eventtest.cs(54,40): warning CS0067: The event 'Python.Test.EventTest.PrivateEv
ent' is never used [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develo
p\pythonnet\src\testing\Python.Test.csproj]
Python.Test -> C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\p
ythonnet\src\testing\bin\x86\ReleaseWin\Python.Test.dll
C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3245: Could not resolve this reference. Could not locate the assemb
ly "nunit.framework". Check to make sure the assembly exists on disk. If this r
eference is required by your code, you may get compilation errors. [C:\Users\ma
rnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\Pyt
hon.EmbeddingTest.csproj]
pyimport.cs(4,7): error CS0246: The type or namespace name 'NUnit' could not be
found (are you missing a using directive or an assembly reference?) [C:\Users
marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\P
ython.EmbeddingTest.csproj]
pyiter.cs(3,7): error CS0246: The type or namespace name 'NUnit' could not be f
ound (are you missing a using directive or an assembly reference?) [C:\Users\ma
rnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\Pyt
hon.EmbeddingTest.csproj]
pyobject.cs(2,7): error CS0246: The type or namespace name 'NUnit' could not be
found (are you missing a using directive or an assembly reference?) [C:\Users
marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\P
ython.EmbeddingTest.csproj]
pythonexception.cs(2,7): error CS0246: The type or namespace name 'NUnit' could
not be found (are you missing a using directive or an assembly reference?) [C:
\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_
tests\Python.EmbeddingTest.csproj]
pyimport.cs(14,10): error CS0118: 'Python.EmbeddingTest.PyImportTest.SetUp()' i
s a 'method' but is used like a 'type' [C:\Users\marnj\Downloads\pythonnet-deve
lop\pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
pyimport.cs(14,10): error CS0246: The type or namespace name 'SetUpAttribute' c
ould not be found (are you missing a using directive or an assembly reference?)
[C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\em
bed_tests\Python.EmbeddingTest.csproj]
pyimport.cs(48,10): error CS0118: 'Python.EmbeddingTest.PyImportTest.TearDown()
' is a 'method' but is used like a 'type' [C:\Users\marnj\Downloads\pythonnet-d
evelop\pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
pyimport.cs(48,10): error CS0246: The type or namespace name 'TearDownAttribute
' could not be found (are you missing a using directive or an assembly referenc
e?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src
\embed_tests\Python.EmbeddingTest.csproj]
pyimport.cs(67,10): error CS0246: The type or namespace name 'Test' could not b
e found (are you missing a using directive or an assembly reference?) [C:\Users
\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests
Python.EmbeddingTest.csproj]
pyimport.cs(67,10): error CS0246: The type or namespace name 'TestAttribute' co
uld not be found (are you missing a using directive or an assembly reference?)
[C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\emb
ed_tests\Python.EmbeddingTest.csproj]
pyimport.cs(9,6): error CS0246: The type or namespace name 'TestFixture' could
not be found (are you missing a using directive or an assembly reference?) [C:
Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_t
ests\Python.EmbeddingTest.csproj]
pyimport.cs(9,6): error CS0246: The type or namespace name 'TestFixtureAttribut
e' could not be found (are you missing a using directive or an assembly referen
ce?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\sr
c\embed_tests\Python.EmbeddingTest.csproj]
pyiter.cs(13,10): error CS0118: 'Python.EmbeddingTest.PyIterTest.SetUp()' is a
'method' but is used like a 'type' [C:\Users\marnj\Downloads\pythonnet-develop
pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
pyiter.cs(13,10): error CS0246: The type or namespace name 'SetUpAttribute' cou
ld not be found (are you missing a using directive or an assembly reference?) [
C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embe
d_tests\Python.EmbeddingTest.csproj]
pyiter.cs(20,10): error CS0118: 'Python.EmbeddingTest.PyIterTest.TearDown()' is
a 'method' but is used like a 'type' [C:\Users\marnj\Downloads\pythonnet-devel
op\pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
pyiter.cs(20,10): error CS0246: The type or namespace name 'TearDownAttribute'
could not be found (are you missing a using directive or an assembly reference?
) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\e
mbed_tests\Python.EmbeddingTest.csproj]
pyiter.cs(27,10): error CS0246: The type or namespace name 'Test' could not be
found (are you missing a using directive or an assembly reference?) [C:\Users\m
arnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\Py
thon.EmbeddingTest.csproj]
pyiter.cs(27,10): error CS0246: The type or namespace name 'TestAttribute' coul
d not be found (are you missing a using directive or an assembly reference?) [C
:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed
_tests\Python.EmbeddingTest.csproj]
pyiter.cs(8,6): error CS0246: The type or namespace name 'TestFixture' could no
t be found (are you missing a using directive or an assembly reference?) [C:\Us
ers\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tes
ts\Python.EmbeddingTest.csproj]
pyiter.cs(8,6): error CS0246: The type or namespace name 'TestFixtureAttribute'
could not be found (are you missing a using directive or an assembly reference
?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src
embed_tests\Python.EmbeddingTest.csproj]
pyobject.cs(12,10): error CS0118: 'Python.EmbeddingTest.PyObjectTest.SetUp()' i
s a 'method' but is used like a 'type' [C:\Users\marnj\Downloads\pythonnet-deve
lop\pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
pyobject.cs(12,10): error CS0246: The type or namespace name 'SetUpAttribute' c
ould not be found (are you missing a using directive or an assembly reference?)
[C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\em
bed_tests\Python.EmbeddingTest.csproj]
pyobject.cs(19,10): error CS0118: 'Python.EmbeddingTest.PyObjectTest.TearDown()
' is a 'method' but is used like a 'type' [C:\Users\marnj\Downloads\pythonnet-d
evelop\pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
pyobject.cs(19,10): error CS0246: The type or namespace name 'TearDownAttribute
' could not be found (are you missing a using directive or an assembly referenc
e?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src
\embed_tests\Python.EmbeddingTest.csproj]
pyobject.cs(26,10): error CS0246: The type or namespace name 'Test' could not b
e found (are you missing a using directive or an assembly reference?) [C:\Users
\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests
Python.EmbeddingTest.csproj]
pyobject.cs(26,10): error CS0246: The type or namespace name 'TestAttribute' co
uld not be found (are you missing a using directive or an assembly reference?)
[C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\emb
ed_tests\Python.EmbeddingTest.csproj]
pyobject.cs(7,6): error CS0246: The type or namespace name 'TestFixture' could
not be found (are you missing a using directive or an assembly reference?) [C:
Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_t
ests\Python.EmbeddingTest.csproj]
pyobject.cs(7,6): error CS0246: The type or namespace name 'TestFixtureAttribut
e' could not be found (are you missing a using directive or an assembly referen
ce?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\sr
c\embed_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(12,10): error CS0118: 'Python.EmbeddingTest.PythonExceptionT
est.SetUp()' is a 'method' but is used like a 'type' [C:\Users\marnj\Downloads
pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\Python.EmbeddingT
est.csproj]
pythonexception.cs(12,10): error CS0246: The type or namespace name 'SetUpAttri
bute' could not be found (are you missing a using directive or an assembly refe
rence?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet
\src\embed_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(19,10): error CS0118: 'Python.EmbeddingTest.PythonExceptionT
est.TearDown()' is a 'method' but is used like a 'type' [C:\Users\marnj\Downloa
ds\pythonnet-develop\pythonnet-develop\pythonnet\src\embed_tests\Python.Embeddi
ngTest.csproj]
pythonexception.cs(19,10): error CS0246: The type or namespace name 'TearDownAt
tribute' could not be found (are you missing a using directive or an assembly r
eference?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\python
net\src\embed_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(26,10): error CS0246: The type or namespace name 'Test' coul
d not be found (are you missing a using directive or an assembly reference?) [C
:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed
_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(26,10): error CS0246: The type or namespace name 'TestAttrib
ute' could not be found (are you missing a using directive or an assembly refer
ence?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet
src\embed_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(40,10): error CS0246: The type or namespace name 'Test' coul
d not be found (are you missing a using directive or an assembly reference?) [C
:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\embed
_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(40,10): error CS0246: The type or namespace name 'TestAttrib
ute' could not be found (are you missing a using directive or an assembly refer
ence?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet
src\embed_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(7,6): error CS0246: The type or namespace name 'TestFixture'
could not be found (are you missing a using directive or an assembly reference
?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src
embed_tests\Python.EmbeddingTest.csproj]
pythonexception.cs(7,6): error CS0246: The type or namespace name 'TestFixtureA
ttribute' could not be found (are you missing a using directive or an assembly
reference?) [C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pytho
nnet\src\embed_tests\Python.EmbeddingTest.csproj]
assemblyinfo.cs(24,34): warning CS0618: 'System.Security.Permissions.SecurityAc
tion.RequestMinimum' is obsolete: 'Assembly level declarative security is obsol
ete and is no longer enforced by the CLR by default. See http://go.microsoft.co
m/fwlink/?LinkID=155570 for more information.' [C:\Users\marnj\Downloads\python
net-develop\pythonnet-develop\pythonnet\src\console\Console.csproj]
Console -> C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pytho
nnet\src\console\bin\x86\Release\nPython.exe
C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
warning MSB3245: Could not resolve this reference. Could not locate the assemb
ly "RGiesecke.DllExport.Metadata". Check to make sure the assembly exists on di
sk. If this reference is required by your code, you may get compilation errors.
[C:\Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\cl
rmodule\clrmodule.csproj]
ClrModule.cs(42,6): error CS0246: The type or namespace name 'RGiesecke' could
not be found (are you missing a using directive or an assembly reference?) [C:
Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\clrmodu
le\clrmodule.csproj]
ClrModule.cs(42,6): error CS0246: The type or namespace name 'RGiesecke' could
not be found (are you missing a using directive or an assembly reference?) [C:
Users\marnj\Downloads\pythonnet-develop\pythonnet-develop\pythonnet\src\clrmodu
le\clrmodule.csproj]
Traceback (most recent call last):
File "setup.py", line 196, in
"install_lib" : PythonNET_InstallLib
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 73, i
n run
self.do_egg_install()
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 93, i
n do_egg_install
self.run_command('bdist_egg')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 179
, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Python27\lib\site-packages\setuptools\command\bdist_egg.py", line 166
, in call_command
self.run_command(cmdname)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\install_lib.py", line 92, in run
self.build()
File "C:\Python27\lib\distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Python27\lib\distutils\command\build_ext.py", line 448, in build_exte
nsions
self.build_extension(ext)
File "setup.py", line 78, in build_extension
check_call(" ".join(cmd) + " /t:Build", shell=True)
File "C:\Python27\lib\subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'C:\windows\Microsoft.NET\Framework\v4.0.
30319\msbuild.exe pythonnet.sln /p:Configuration=ReleaseWin /p:Platform=x86 /p:D
efineConstants="PYTHON27;UCS2" /p:PythonBuildDir=C:\Users\marnj\Downloads\python
net-develop\pythonnet-develop\pythonnet\build\lib.win32-2.7 /p:NoNuGet=true /ver
bosity:minimal /t:Build' returned non-zero exit status 1

A Working pythonnet

Hi David. From the archives [https://mail.python.org/pipermail/pythondotnet/2014-February/001472.html] you mentioned:

"My immediate next goal would be to release a stable version. So my sense is that we should not try to do new features, but first get something out that works again."

Is there a rugged definition of "that works again"? Assuming Python for .NET worked in the past, what year would I be in, what OS would I be using, and what versions of Python and .NET would I have installed?

System.IO.FileLoadException when calling "import clr" in x86 build

I downloaded the latest source code from the "develop" branch.

I then opened pythonnet.sln, and, in the Visual Studio Configuration Manager changed the active solution configuration to "ReleaseWin" and the active solution platform to "x86".

I then rebuilt the solution, and copied Python.Runtime.dll and clr.pyd to my Python 2.7 directory (C:\Python27).

I then opened a command prompt and ran python.exe.

In the interpreter, I then entered "import clr" and got the following error:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Python.Runtime, Version=4.0.0.1, Culture=neutral, PublicKeyToken=5000fea6cba702dd' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at clrModule.initclr()

This is a clean installation of python 2.7.8. I have checked that there are no other copies of Python.Runtime.dll anywhere.

nPython.exe crashes with runtime error

Install Python.Net with this command:

pip install git+https://github.com/pythonnet/pythonnet#egg=pythonnet

import clr works from a normal python.

Running npython.exe crashes with

image

.net 2.0 support without HashSet

For Python.Runtime the only issue compiling on Win7-64bit, .NET 2.0 is usage of HashSet. I'm going to create a fork to compile without using HashSet for now.

isinstance doesn't work with interfaces

eg

from System import String, IComparable
s = String("")

# doesn't work
isinstance(s, IComparable)
>> False

# works
s.GetType().GetInterface("IComparable")
>> <System.RuntimeType at 0xaccb048>

I think it just needs tp_bases to be set in the typemanager instead of tp_base.

net tcp fails in cpython x86

Thank you for this wonderful package! I hope it continues to mature!

I wish I understood this issue, it is very repeatable, but I'm not clear what causes it. One of the references in my .net assembly uses net.tcp to communicate with an SQL server.

  • with x64/Release target on x64-cpython27 it works
  • with x86/Release target on x86-cpython27 I get the error that net tcp failed, only allowed under full trust not partial
  • with .net console application, it works with both x86 and x64 targets
  • with IronPython it works with both architectures.

So this seems to indicate there is something going on with Pythonnet, I think, but not sure.

Thanks!

Ability to specify a name resolver for different naming conventions

Hi everyone, I thought it would be a nice feature to be able to specify a name resolver to allow a different naming convention to be used from python.

Right now you need to access methods / properties using whatever casing you use from .NET (so pascal-case in most cases), but from python most seem to use lower-case / camel-case names.

I altered ClassManager.GetClassInfo calls to MethodInfo.Name and lower-cased them, and that seemed to work fine for a quick test, but I don't know enough about the internals of this project to know what other issues this could cause.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.