CefSharp
PythonNet
Our great sponsors
CefSharp | PythonNet | |
---|---|---|
22 | 37 | |
9,629 | 4,306 | |
0.6% | 2.2% | |
8.4 | 7.2 | |
2 days ago | 8 days ago | |
C# | C# | |
GNU General Public License v3.0 or later | MIT License |
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.
CefSharp
-
Is there a way to dynamically interpret a string as javascript within a C# winforms program?
I dont want to state the obvious but of course there is CefSharp .. But of course thats pretty heavy duty as you end shipping a headless version of Chrome in your app, but it can do anything a browser can do (of course it can, its Chrome), including exectuting a JavaScript string on the fly and getting a response. Because its Chrome you evenn have access the the dev tool and everything like that. But the other suggestions might be better suited as they might be more lightweight.
-
How do control a browser?
Two options: Either use an embedded browser you can control programmatically like CefSharp (https://cefsharp.github.io/) or spawn a real browser and use sendkeys() to control the browser by emulating user input.
-
Chrome extensions in .NET web view controls
Chrome Runtime discussion in CefSharp repository.
-
Is there something like Electron or Tauri for dotnet?
I always use https://cefsharp.github.io/
- HTMLtoPDF
-
Massive file size 298.2GB
grocy-desktop doesn't do any logging on purpose (CefSharp is the web browser component used).
-
.NET Core ASP - PDF Generation for hosting on Azure?
Haven’t seen anyone suggest this, but an option would be to use https://github.com/cefsharp/CefSharp and basically render some html, open it in chromium and use the print feature. It does a pretty decent job. It may not be a solution for heavy loads, as it was demanding quite a lot of resources for such a “basic” task.
-
Weekly Developer Roundup #23 - Sun Nov 22 2020
cefsharp/CefSharp (C#): .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
PythonNet
- I modified and hacked away xonsh source code
-
[WPF, C#] Need ideas on how to automate these operations based on the response I get from python script.
If you're running the python within C# using Python.NET, then you're somewhat within-process and there are ways of sending the data across. (Return objects, channel/queues, whatever fits your use case.)
-
Starting Python, confused about cross platform app development. Is IronPython + .NET the only option?
I am not set on .NET, but just curious, so thanks for the suggestions. Interesting that it's billed as cross-plaform, but doesn't do it that well. I just searched 'python wrapper for .net' and found PythonNET. Also, it seems yes IronPython is active.
There's other modules that provide the interface to .NET. The pywin32 module is very popular to allow access to the complete Windows API. Or try Pythonnet.
-
TIA Openness with Docker
I created a Django based python project that interfaces to TIA Openness to create some Remote IO. To do this I use the pythonnet library. so that I can load the Openness DLL.
-
Python's “Disappointing” Superpowers
Any .NET language with https://github.com/pythonnet/pythonnet
-
A Simple Union Between .NET Core and Python
We’re going to be looking at Python for .NET in order to accomplish this goal. This library allows you to take advantage of Python installed on the running machine from within your .NET Core applications. You must configure it to point at the corresponding Python DLL that you’d like to use, and after a couple of lines of initialization you’re off to the races!
- CLI Scraper
-
.NET-compatible scripting languages for users to write their own scripts to query/manipulate objects/properties in the app
There is also PythonNET which is a wrapper around the actual C based Python implementation (python.org). I don't know about a sandboxing capability though.
-
Create CPython extensions in .NET?
Maybe PythonNET can do what you need? http://pythonnet.github.io. My use case was embedding a Python engine into my app, but I believe you could use it to create a "module" for Python. I would recommend writing a wrapper that does the import clr and so forth automatically though, so the user doesn't have to do that themselves.
What are some alternatives?
Iron python - Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR).
PuppeteerSharp - Headless Chrome .NET API
PyWin32 - python for windows extensions
WinPython - A free Python-distribution for Windows platform, including prebuilt packages for Scientific Python.
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
CppSharp - Tools and libraries to glue C/C++ APIs to high-level languages
NuGetForUnity - A NuGet Package Manager for Unity
LegacyWrapper - LegacyWrapper uses a x86 wrapper to call legacy dlls from a 64 bit process (or vice versa).
Sharpen - Sharpen is an Eclipse plugin created by db4o that allows you to convert your Java project into c#
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.