Request builder for testing API
Project description
request-api-builder
Request builder for quick testing API
Use
- Import RequestBuilder
from request_builder import RequestBuilder
- Set cookie and base url
BuildRequests.set_cookie(cookie)
BuildRequests.set_base_url(base_url)
- Create request
# GET
request_get = RequestBuilder(
method='get',
url_template='https://test.com/{id}/another/{another_id}',
id='123',
another_id='456',
query_param_1='value1',
query_param_2='value2',
)
# POST
request_post = RequestBuilder(
method='post',
url_template='https://test.com/{id}/another/{another_id}',
data={},
id='123',
another_id='456',
query_param_1='value1',
query_param_2='value2',
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file request_api_builder-2.0.2.tar.gz.
File metadata
- Download URL: request_api_builder-2.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f406c7a6f4147d4ffdeb937c6a24ead31e48c50f4aa9c1bae4402f51e99793b
|
|
| MD5 |
a66c3033941b9b71d0b95e514cbe0ffb
|
|
| BLAKE2b-256 |
fd3261ee1c0a70f407180280477dfd29c2ed2c246ec4a26eb2967897d146bcf8
|
File details
Details for the file request_api_builder-2.0.2-py3-none-any.whl.
File metadata
- Download URL: request_api_builder-2.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6ad78092de0842a9d56f31f16796a93302a5f7847b378181ad5430055bd7fa8
|
|
| MD5 |
c9e681cbeeb7b0dc108e413ca805ba51
|
|
| BLAKE2b-256 |
0a9ab18ed7564fda09c054af2dcf81057047bc0ad0c1620e19613f404ed3e990
|