PyLibSharp 1.1.0
Suggested Alternatives
Additional Details
我们将使用新的包名继续更新,请下载PyLibSharp.Requests,谢谢;
另外我们将开发PyLibSharp的其他类库。
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PyLibSharp --version 1.1.0
NuGet\Install-Package PyLibSharp -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PyLibSharp" Version="1.1.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PyLibSharp" Version="1.1.0" />
<PackageReference Include="PyLibSharp"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PyLibSharp --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PyLibSharp, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PyLibSharp@1.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PyLibSharp&version=1.1.0
#tool nuget:?package=PyLibSharp&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
简单用法: ReqResponse return=Requests.Get("网址",参数对象ReqParams); ReqResponse return=Requests.Post("网址",参数对象ReqParams);
ReqParams中可以设置Header等,若要自定义Header,请使用CustomHeader;无论是Get还是Post,参数最好通过Params进行传递。 可以在参数中设置现存的CookieContainer,也可以利用请求返回的ReqResponse对象中的Cookies获取到。 ReqResponse中: RawStream参数是存有响应的原始字节流 Text参数是根据Encode参数自动解码的字符串,可以通过手动修改Encode的值,让Text以不同编码进行解码。 Json函数可以直接获取按Json格式解码响应后的JObject对象。
目前还在早期开发阶段,文档和代码注释会在项目成熟后补齐。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.2.4 | 791 | 1/28/2021 | |
| 1.2.3 | 1,081 | 11/30/2020 | |
| 1.2.2 | 919 | 11/30/2020 | |
| 1.2.1 | 777 | 11/21/2020 | |
| 1.2.0 | 805 | 11/21/2020 | |
| 1.1.9 | 1,023 | 10/16/2020 | |
| 1.1.8 | 826 | 10/11/2020 | |
| 1.1.7 | 840 | 9/20/2020 | |
| 1.1.6 | 887 | 9/19/2020 | |
| 1.1.5 | 800 | 9/9/2020 | |
| 1.1.4 | 787 | 9/7/2020 | |
| 1.1.3 | 784 | 9/7/2020 | |
| 1.1.0 | 842 | 8/31/2020 | |
| 1.0.0 | 829 | 8/25/2020 |
初始