Skip to main content

Dynamic HTTP client from httpx

Project description

Http Dynamix

Ruff Code Quality Badge Documentation Built by Sphinx Project Built with Hatchling

Library for creating dynamic HTTP requests in puthon

Quick Start

This guide helps you get started with Http Dynamix.

Prerequisites

  • Docker installed and running

Basic Setup with Docker Compose (Recommended)

  1. Create test directory:
mkdir -p test-api-service/tests && cd test-api-service
  1. create pytest configuration file pytest.ini in the tests directory:

../examples/tests/pytest.ini

  1. Create pytest test cases in `tests/test_httpbin_org_service.py`:

../examples/tests/test_httpbin_org_service.py

  1. Create compose.yaml:

../examples/compose.yaml

  1. Run all tests in parallel:
docker compose up --build
  1. To run only specified tests, override the command in compose.yaml:
command: ["pytest", "-n", "auto", "tests/test_httpbin_org_service.py"]

This uses pytest-xdist for parallel execution.

Contributing

We welcome contributions to Http Dynamix! There are many ways to contribute, from improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into the main project itself.

Local Development Installation

For developers or contributors:

# Install mamba-githook for creation of isolated virtual environment, 
# Choose the correct installer for your platform
# Supported: linux-amd64, linux-arm64, windows-amd64, windows-arm64
curl -L https://github.com/aydabd/mamba-githook/releases/download/1.0.1/mamba-githook-installer-linux-arm64 \
    -o mamba-githook-installer && \
    chmod +x mamba-githook-installer && \
    ./mamba-githook-installer install

# Install micromamba via mamba-githook
mamnba-githook install-micromamba
# Activate permanent micromamba in your shell, Then you need to restart your shell
mamba-githook init-shell

# Create virtual environment via micromamba
micromamba create -n http-dynamix-env hatch pandoc

# Activate virtual environment
micromamba activate http-dynamix-env

# Clone repository
git clone ssh://git@github.com:aydabd/http-dynamix.git
cd http-dynamix

# Install development dependencies
# This will install all dependencies from pyproject.toml
hatch env create

# Run hatch for pre-release:all environment
hatch run pre-release:all

# Install the package in editable mode inside the micromamba environment
pip install -e .

# Build documentation in HTML format
hatch run pre-release:docs-html

Docker/Compose Test Execution

You can run all tests in parallel using Docker Compose:

docker compose up --build

To run only integration tests, override the command in compose.yaml:

command: ["pytest", "-n", "auto", "tests/test_clients_integration.py"]

This uses pytest-xdist for parallel execution. The Dockerfile and compose.yaml are set up for both CI and local testing.

Publish Documentation To Confluence

To publish the documentation to Confluence, you need to virtualenv python and installed hatch. Then you need to set the following environment variables into .env file:

CONFLUENCE_SERVER_USER=<your_confluence_user-at-server>
CONFLUENCE_API_TOKEN=<your-api-token-for-confluence>

After that, you can run the following command to publish the documentation to Confluence:

# Publish the documentation to Confluence
hatch run release:all

[!NOTE] Ensure your project is released with the version number before publishing the documentation to Confluence.

You can find the published documentation at the link provided in the output of the command.

For more information about documentation publishing, check the pyproject.toml file and docs/conf.py file.

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

http_dynamix-1.1.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

http_dynamix-1.1.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file http_dynamix-1.1.0.tar.gz.

File metadata

  • Download URL: http_dynamix-1.1.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for http_dynamix-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1d138eb973649670014e7bd711094aeaa2ca90893ad4b2de5b67398bfea3ca4d
MD5 ea61d1e6b05c3ed04de5afa5f83220a3
BLAKE2b-256 5dc969c480e4151f2d6c68c88222058f524c867603b0ab28a6f0487813921b70

See more details on using hashes here.

Provenance

The following attestation bundles were made for http_dynamix-1.1.0.tar.gz:

Publisher: pypi-release.yml on aydabd/http-dynamix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file http_dynamix-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: http_dynamix-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for http_dynamix-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24b5b93316c2aafede1a5e80f7c7dd679129af6feb13fede375b1731ce6d0a17
MD5 40593897e664b99710f1650d20833b30
BLAKE2b-256 93975068cfe96e544bc07231d9f0a2b144fda827dd99523b97786980bf63ad83

See more details on using hashes here.

Provenance

The following attestation bundles were made for http_dynamix-1.1.0-py3-none-any.whl:

Publisher: pypi-release.yml on aydabd/http-dynamix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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