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.1.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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: request_api_builder-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e279e0920fc5da40fbfaeabc3d5b78ab7e6e9b88d56aa2443d70a6cb8c0daa63
MD5 8764553a1ae1f88c2c59adfbd4820d9e
BLAKE2b-256 2ac904982386e64e5d0876ece25b2373ef4b729d6ca6e2eb4b162dfacb86a7f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for request_api_builder-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f09f01ad66d807bdec63acd7058821d0d08ff6469779e4f3e636890c29396538
MD5 92754fb181f2d0f599c258e716c46f28
BLAKE2b-256 d5e283d35719318d878ca6bb0f42c2132660e06d0daaf48620f04bd410c14169

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