Skip to main content

Request builder for testing API

Project description

request-api-builder

Request builder for quick testing API

Use

  1. Import RequestBuilder
from request_builder import RequestBuilder
  1. Set cookie and base url
BuildRequests.set_cookie(cookie)
BuildRequests.set_base_url(base_url)
  1. 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

request_api_builder-2.0.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

request_api_builder-2.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file request_api_builder-2.0.3.tar.gz.

File metadata

  • Download URL: request_api_builder-2.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for request_api_builder-2.0.3.tar.gz
Algorithm Hash digest
SHA256 734ed9b6ff2904d6475a22dd6749c44c4b2c437332b0c570bb3bef77c876e356
MD5 d5df3d7ddd7a5b34a9b3faa31d7aa256
BLAKE2b-256 f39d87521535f8cc711526b2fe5455dbbf6482a66cb5253bb7988f22c9433c1a

See more details on using hashes here.

File details

Details for the file request_api_builder-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for request_api_builder-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9078c84a321c7782e4f2fc5fbcf72584e639bafc5da7652f5fb0b66b02256f
MD5 7178ecaa93bf9132d9a54e517d5c5fd4
BLAKE2b-256 a10ff02d1f2056f75eb3a39aad34f55c620c43c0bbc2dd3ac30264dfbe7a2ae3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page