Giter VIP home page Giter VIP logo

consoleapplauncher's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

consoleapplauncher's Issues

Support async/await

Is it possible to support async/await so that the UI does not lock up during the running of the console app?

Thanks,

Mike

.net core support

Hello, thank you for this library.

I'd like to use your library in a .net core application, could you release a .net standard version of it?

Redirecting Standard Input

The code does has RedirectStandardInput = true but I am actually looking to implement it by redirecting stdin from a string parameter of lines if it is indeed possible as I want to avoid having to write say a Python script out to a file before executing it. (I had attempted this on my own unsucessfully before turning to your code.) Let me make it clear as one can do:
ConsoleApp("...python.exe", "-c import "platform;print(platform.architecture()[0]);exit(0)"")
ConsoleApp("...python.exe", "<bits.py")
After writing out a "bits.py" containing:
platform
print(platform.architecture()[0])
exit(0)

But I want to actually invoke a ConsoleApp like library with ("...python.exe", ref string stdin, string.. args)
ConsoleApp("...python.exe", ref stdin, null) say where string stdin in this case =
@"platform
print(platform.architecture()[0])
exit(0)
"

Is it even possible or must I write out the python scripts e.g. "bits.py" to temp file and do a ConsoleApp("...python.exe", "<bits.py") all the time.

Am I being too abitious or niave to think that this could and should even be possible. BTW I am mostly interested in CPython (MinGW) from C# (for geospatial scripting using OSGeo4W pyQGIS and GDAL-OGR) that concerns me and interests me in this..

Let me know if you can offer any advice? Regards.

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.