Integrate Python based TensorFlow into a .NET application [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
It seems that in order to fully use TensorFlow and associated libraries I need to access it from Python. Utilizing TensorFlow requires building rather complicated graphs which Python helper libraries (e.g. Keras) automate in sophisticated ways. I don't see a way to do that directly from .NET. See for example the respective GitHub discussion about C# support.
My idea is this: The main C# application will call into a Python application to access TensorFlow. That way most code will remain in C# land. I can use CPython which has full support for everything (IronPython does not).
How would I go about "calling into a Python application"? I assume I will need to run python.exe in a child process and make it execute commands. The child process will need to remain running between commands so that I can keep/share objects and data.
How would I best go about doing this? I don't quite know where to start.

Have a look on this:
https://github.com/migueldeicaza/TensorFlowSharp
TensorFlowSharp are .NET bindings to the TensorFlow library. This surfaces the C API as a strongly-typed .NET API for use from C# and F#.

Related

C# to Python converter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a large C# library that I need to convert to Python. Python is a customer requirement, I can not use any other language.
Any automatic C# to Python converter?
Edit: I need a pure Python solution. .Net is not an option for me.
Assuming IronPython will meet their requirement, SharpDevelop can do that for you. I have a feeling it will still be quite painful.
Here's a link:
http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/11/ConvertingCSharpVBNetCodeToIronPython.aspx
You should convince your costumer that Python language can interact with .Net using some libraries. It would be a waste of time to re write the whole library in Python and then test the Python code for any bugs.
There is a library called Python for .NET, by which you can call .net classes and functions inside your Python code, you can create a wrapper code for calling the .Net code.
If you write a wrapper class, it would be just like calling Python classes and functions to other Python programmers.

Good 3270 Emulator (.NET) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Can anyone indicate a good 3270 emulator (which can login, scrape screen, find text, send keys etc. in background) for .NET (win and web). Something very similar to http://www.zephyrcorp.com/legacy-integration/index.htm (apparently zephyr costs like $5k per year, which is quite a lot, for one PC).
I also tried http://open3270.codeplex.com/SourceControl/list/changesets but it's way old and buggy.
Attachmate Reflection is really good, it meets all the requirements you mentioned and it has a great .NET API you can use to easily automate it from your .NET code. They don't list prices on their website but I think it is under $300...
For Desktop: I liked the idea of using a stable and well known client and remote control this instance. Therefore I ended up using x3270 (http://x3270.bgp.nu/) as the full featured, mature client in combination with X3270.Rest (https://www.nuget.org/packages/X3270.Rest/) that let's you remote control it from within a .NET application via the exposed REST interface (http://x3270.bgp.nu/rest.html). Reimplementing a complete new .NET client was not really an option because of all the alternatives out there. All those pitfalls on the road that lead to an reinvented wheel... But with an appropriate interface like the one mentioned it was quite easy to automate tasks without using DDE/HLLAPI.
If running in the background means without visible window one could start the x3270 client from .NET via Process.Start with suitable arguments to avoid a window beeing created.

How to write simple REST based server in C# on mono? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm porting a small server from Scala to C# (on Mono) and need to get a very simple REST interface going. Am trying to figure out the easiest (but robust) way to do this.
For reasons I wont go into, NOT using webservers like Apache, Nginx etc would be preferred.
Yes, I could manually code up something listening to sockets, parse HTTP request coming in, handle threading etc... but hoping there are libraries or frameworks that already handle this.
Any suggestions?
I've built a webserver that should work in mono. At least version 1.1 should.
You can find it here: http://webserver.codeplex.com.
It's not a standalone server, you include it in your project and create a webserver in you code. It support all HTTP verbs and got a small MVC framework which makes it easy to create REST services.
Take a look at manos. It's a standalone high performance web application framework which, I think, can be used as a REST based server.
You can use MonoRail or Mono WCF.
I asked a question about C# options similar to Ruby's Sinatra see Is there a .NET framework similar to Ruby's Sinatra?
Check out Nancy - it's a lightweight web framework for .net
http://nancyfx.org/

.Net FTP Library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I've used FileZilla as my favourite FTP application for quite a while, and admire its amazing functionality.
As I'm a programmer myself, I often run into situation where I need FTP support. And then I always find myself wanting to use FileZilla as a base FTP component in my system, because it supports just about everything I need.
My problem is that I program in C#.NET, and thus can't use the FileZilla source code directly, even though it's open source. Even if it was possible to use it directly, I wouldn't know where to start when looking at the source code, since I can't even get it to compile in VS.NET (I try to compile it as C++, of course).
Would it be possible to wrap the FileZilla code in C# using P/Invoke so we would get the best free .NET FTP library in existance?
While you could wrap just about anything, controlling the interface and error conditions is going to be very challenging. I'd recommend you check for a component/library
This class is already in the .NET Framework: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx
This open source apparently supports SFTP: http://sshnet.codeplex.com/
Or there are a few commercials ones: http://www.dart.com/ptftpnet.aspx or http://www.rebex.net/ftp.net/
or a search of stackoverflow reveals lots of .net/FTP related questions: https://stackoverflow.com/search?q=.net+FTP+library

Is there a .NET based CSS abstraction library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've been working on a really large project for almost 2 years and the client requirements keep changing. These changes, of course, effect everything and I would like to find a way to work with the CSS in a more dynamic fashion.
I assume I could get one of the ruby or python CSS DSLs running under ironRuby/Python but this client is very very particular about what software/frameworks are installed.
I have not found a CSS DSL where the base programming language is vb or c#.
reference:
http://sandbox.pocoo.org/clevercss/ and http://nubyonrails.com/articles/dynamic-css
Less CSS for .NET was recently released.
http://www.dotlesscss.org/
I am not sure about any publicly available products, but I have written an ASP.NET HttpHandler for .css files a few times. Its a pretty simple task, and I usually add things like variable and basic expression support, realtime minification, comment stripping, etc. Is this what your looking for? If so, I think each time its taken maybe 10 hours of work max to write, debug, and implement the handler...not too bad given all the benefits.
You could also write your own DSL, using either the DSL Toolkit that's part of the Visual Studio SDK, or using Oslo. In the former case, the result could be .css files plus whatever else you needed, including API code for your ASP.NET application to call upon.

Categories