Skip to main content

Flask插件for restful api client

Usage

First init:

from flask_rest_client import RestCient
rest_client = RestClient()
rest_client.init_app(app)

API

users_api = rest_client.get_api('users')
j = users_api.get(1).json()  # 获取/users/1的数据
j = users_api.get()  # 获取/users/的数据

配置项

配置项

说明

REST_CIENT_BASE_URL

api的url_prefix

REST_CIENT_USERNAME

BaseAuth的username

REST_CIENT_PASSWORD

BaseAuth的password

REST_CIENT_VERIFY

requests的verfy配置,可以是自定义证书的路径

Metadata

Release files for Flask-RestClient 0.1.3

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

Source distribution (sdist)

Source distribution for Flask-RestClient 0.1.3
File Size Uploaded Provenance
Flask-RestClient-0.1.3.tar.gz 1.9 kB Without provenance Details

Release files / Flask-RestClient-0.1.3.tar.gz

Download URL Flask-RestClient-0.1.3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
201385d7c30c288e7a2bbf4a6f6b4fae003b142a28b3fae3d3991200b303528f
BLAKE2b-256 checksum
How to use checksums
44581ac34a21ee665c356d8cfd1f4ea69c292780f159b1fef2f37e778950d1eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-RestClient 0.1.3

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.

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