Chinsese version of requests for grasspy
Project description
网络请求 (requests)
介绍
优雅简单的 python requests 库的草蟒中文版
安装方法
python -m pip install -U grasspy-requests
使用简介
GET 基本使用:
>>> 导入 网络请求
>>> 响应 = 网络请求.查_get('https://www.grasspy.cn')
>>> 响应.状态码
200
>>> '中文编程' 在 响应.内容.解码('utf-8')
True
... 或 POST:
>>> 数据 = 字典型(key1='value1', 键2='值2')
>>> 响应 = 网络请求.增_post('https://httpbin.org/post', 数据=数据)
>>> 打印(响应.文本)
{
...
"form": {
"key1": "value1",
"\u952e2": "\u503c2"
},
...
}
当然也支持其他 HTTP 方法.
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
grasspy-requests-0.3.2271.tar.gz
(17.2 kB
view details)
Built Distribution
File details
Details for the file grasspy-requests-0.3.2271.tar.gz
.
File metadata
- Download URL: grasspy-requests-0.3.2271.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67996111cc31a2b86327c19e5832f9fb843b8f88a243fa229ddc79a53ef79033 |
|
MD5 | 1cc989199bab0bd9273a9d66333a3bd5 |
|
BLAKE2b-256 | 12ad58824cdb64766b278fa6b947666647f2a22782e66f987dd802d579cbdf36 |
File details
Details for the file grasspy_requests-0.3.2271-py3-none-any.whl
.
File metadata
- Download URL: grasspy_requests-0.3.2271-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49af13836da9b6a6d25d9ae8975ce4ed5107e9b66b14c2b1ad57ebd4210a6417 |
|
MD5 | 45646fc069288babf5aad062dc27f27b |
|
BLAKE2b-256 | 18e03643e680702998dfc599d49b4b3510b6216f6fa52ba06b38344a74493813 |