noseapp_requests
Requests/Requests-Oauthlib extension for NoseApp library
Installation
pip install noseapp_requests
Usage
from noseapp.ext.requests import RequestsEx, make_config
endpoint = make_config()
endpoint.configure(
base_url='http://httpbin.org/',
key='httpbin'
)
endpoint.session_configure(
always_return_json=True,
raise_on_http_error=True
)
requests_ex = RequestsEx(endpoint)
api = requests_ex.get_endpoint_session('httpbin', auth=('user', 'pass'))
api.get('basic-auth/user/pass')
api.get('get', key1='val1') # GET with query-string parameters
api.post('post', key1='val1') # POST form-encoded data
api.post('post', {'key1': 'val1'}) # POST JSON data
api.get('status/400') # raises HTTPError
Documentation
Metadata
Release files for noseapp_requests 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| noseapp_requests-0.0.2.tar.gz | 4.5 kB | Without provenance | Details for noseapp_requests-0.0.2.tar.gz |
Release files / noseapp_requests-0.0.2.tar.gz
| Download URL | noseapp_requests-0.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42ae018a8864a4471e0bfaa0e92088b6c84c9652a216a3f3974d897ea2249724
|
|
BLAKE2b-256 checksum How to use checksums |
8f4f8b9cf6f3a595cd1c021da1cc832d43b316993655db4cbe4812e19f1e2072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for noseapp_requests 0.0.2
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.