Skip to main content

requests-base-url

Languate - Python PyPI - License PyPI PyPI - Downloads

Http client with base_url base on requests

Install

pip install requests-base-url

Simple Use

from requests_base_url import http

resp = http.get('https://httpbin.org/get?a=1&b=2')
print(resp)

Config base_url

from requests_base_url import HTTP

http = HTTP(basse_url='https://httpbin.org')
resp = http.get('/get?a=1&b=2')
print(resp)

resp = http.post('/post', data=dict(a=1, b=2))
print(resp)

Config default Headers, Params or Proxies

from requests_base_url import HTTP

http = HTTP(basse_url='https://httpbin.org', headers={"token": "xxx"})
resp = http.get('/get?a=1&b=2')
print(resp)

Metadata

Release files for requests-base-url 0.1.0

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

Source distribution (sdist)

Source distribution for requests-base-url 0.1.0
File Size Uploaded Provenance Actions
requests_base_url-0.1.0.tar.gz 3.2 kB Without provenance Details for requests_base_url-0.1.0.tar.gz

Release files / requests_base_url-0.1.0.tar.gz

Download URL requests_base_url-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b55b16647f8ff73a351ff2398741aa37476d6f3cbd08c69d7a50c0217479e30d
BLAKE2b-256 checksum
How to use checksums
a4c6154635300bb692a9a13bc72c32e0f363d55eaa826c54aaf664e0366e90d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.6

Security for requests-base-url 0.1.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file 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