Skip to main content

使用手册

快速开始

import httper

params = {
    "a": 1,
    "b": 2
}

# 发送get请求
httper.get("http://localhost:8080/test/get?id=1")
httper.get("http://localhost:8080/test/get?id=1", params)
httper.get("http://localhost:8080/test/get?id=1", params=params, timeout=10, headers={})

# 发送post请求
httper.post("http://localhost:8080/test/post?id=1")
httper.post("http://localhost:8080/test/post?id=1", params)
httper.post("http://localhost:8080/test/post?id=1", params=params, timeout=10, headers={})

# 发送post表单请求
httper.postForm("http://localhost:8080/test/postForm?id=1", params)
httper.postForm("http://localhost:8080/test/postForm?id=1", form=params, timeout=10, headers={})

# 下载文件
httper.getFile("http://localhost:8080/test/getFile?id=1", "test.py")
httper.getFile("http://localhost:8080/test/getFile?id=1", "test.py", progress=True)

httper.postFile("http://localhost:8080/test/postFile?id=1", "test.py")
httper.postFile("http://localhost:8080/test/postFile?id=1", "test.py", progress=True)

httper.downloadFile("http://localhost:8080/test/downloadFile?id=1", "test.py")
httper.downloadFile("http://localhost:8080/test/downloadFile?id=1", "test.py", progress=True)

# 上传文件
httper.uploadFile("http://localhost:8080/test/uploadFile?id=1", "file1", "./files/test.py")
httper.uploadFile("http://localhost:8080/test/uploadFile?id=1", "file1", open("./files/test.py"))
httper.uploadFile("http://localhost:8080/test/uploadFile?id=1", name="file1", file="[fileBytes]", fname="test.py")
httper.uploadFile("http://localhost:8080/test/uploadFile?id=1", name="file1",
                  file=("", open("./files/test.py", "rb"), "image/jpeg", {"refer": "localhost"}))
httper.uploadFile("http://localhost:8080/test/uploadFile?id=1", name="file1",
                  file=("new_filename.py", open("./files/test.py", "rb"), "image/jpeg", {"refer": "localhost"}))

httper.uploadImage("http://localhost:8080/test/uploadImage?id=1", "file2", "./files/img1.py")

Metadata

Release files for httper 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for httper 0.0.1
File Size Uploaded Provenance
httper-0.0.1.tar.gz 5.4 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for httper 0.0.1
File Interpreter ABI Platform
httper-0.0.1-py3.9.egg Legacy Egg format - - Details
httper-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.6 kB

Release files / httper-0.0.1.tar.gz

Download URL httper-0.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
48759f4db3837937a77cfd580a14ac71678f263c1ff43b6ee327e3282c86c5ea
BLAKE2b-256 checksum
How to use checksums
9d0b26f7f32201eca6715421d28570fe2b82ed68611ce87c8a1329f213910f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / httper-0.0.1-py3.9.egg

Download URL httper-0.0.1-py3.9.egg
Size 6.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
9883cfd62e79d880b67a9290a7599f54d1a5c40f05ffba4041a0f24e7c5ef064
BLAKE2b-256 checksum
How to use checksums
a431f8c5ff012da63af29d5645c09f45a9633210fd1f5b56214d474087e092d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / httper-0.0.1-py2.py3-none-any.whl

Download URL httper-0.0.1-py2.py3-none-any.whl
Size 3.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5bf1819b561c23e62fb64ae846e69e9c3ee6ca2d2c7bcc2fb81bea890ccbb30a
BLAKE2b-256 checksum
How to use checksums
50ab95a99231fb8296e2f80f835343e18194926212c83467805263b17cb859ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for httper 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page