Mr.Lee's CSharp Helpers
Project description
🌺mycsharp
执行C#源码
使用示例:
from pylhb-csharp.mycsharp import MyCSharp
if __name__ == '__main__':
code = """
using System;
namespace MyTest
{
public class SayHelp
{
public string SayHello(string name)
{
return "Hello " + name;
}
}
}
"""
dlls=["System.dll","mscorlib.dll"]
mycsharp=MyCSharp(code,dlls)
if mycsharp.compiler():
result=mycsharp.callMethod("SayHelp","SayHello",['李生',])
print(result)
else:
count,errMsg=mycsharp.getErrors()
print(count)
print(errMsg)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylhb_csharp-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylhb_csharp-1.0.0.tar.gz.
File metadata
- Download URL: pylhb_csharp-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d30bb535703f9113229d901abf9d569c135fa25e5e3d68d355878de5987d5c8
|
|
| MD5 |
2093036cc27ab32f68de05df1d8921cb
|
|
| BLAKE2b-256 |
f1610dc2b90889b897a5990861be749cb688e602b4560429b2f42f0f782b99b0
|
File details
Details for the file pylhb_csharp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pylhb_csharp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d75bb8e6c9c415218bd07875a2ee7f0fa9804895ad9838fbb783e72cb20d058d
|
|
| MD5 |
b17bd4ad6c2e74fe38234501e833e5f8
|
|
| BLAKE2b-256 |
7abf9aa00612f22947dd43ec74d81c073bded4d8060c6fae80951aebb7438352
|