Skip to main content

tdl-client-python

Project description

[![Python Version](http://img.shields.io/badge/Python-3.12-blue.svg)](https://www.python.org/downloads/release/python-370/) [![PyPi Version](http://img.shields.io/pypi/v/tdl-client-python.svg)](https://pypi.python.org/pypi/tdl-client-python)

# tdl-client-python Development

### Submodules

Project contains submodules as mentioned in the .gitmodules file:

  • broker

  • tdl/client (gets cloned into test/features)

  • wiremock

### Getting started

Requirements: - Python 3.10 (support for Python 2.x has been dropped) - pip (ensure it supports Python 3.10)

Python client to connect to the central kata server.

Update submodules ` git submodule update --init `

Setting up a development environment: ` python3 -m venv venv . venv/bin/activate pip install -r requirements.txt ` Your virtualenv will be created in ./venv/

# Testing

All test require the ActiveMQ broker and Wiremock to be started.

Start ActiveMQ `shell export ACTIVEMQ_CONTAINER=apache/activemq-classic:6.1.0 docker run -d -it --rm -p 28161:8161 -p 21613:61613 --name activemq ${ACTIVEMQ_CONTAINER} `

The ActiveMQ web UI can be accessed at: http://localhost:28161/admin/ use admin/admin to login

Start two Wiremock servers `shell export WIREMOCK_CONTAINER=wiremock/wiremock:3.7.0 docker run -d -it --rm -p 8222:8080 --name challenge-server ${WIREMOCK_CONTAINER} docker run -d -it --rm -p 41375:8080 --name recording-server ${WIREMOCK_CONTAINER} `

The Wiremock admin UI can be found at: http://localhost:8222/__admin/ and docs at http://localhost:8222/__admin/docs

# Cleanup

Stop dependencies ` docker stop activemq docker stop recording-server docker stop challenge-server `

# Tests

Running all the tests, ` behave `

Pass arguments to behave, e.g. to run a specific scenario,

` $ behave test/features/queue/QueueRunner.feature:154 `

or

` $ behave -n "Process message then publish" `

See behave [docs](https://python-behave.readthedocs.io/en/latest/behave.html) for more details.

## Distributable

Run the below to generate a distributable archive:

`bash python3 -m build `

The tdl-client-python-x.xx.x.tar.gz archive can be found in the dist folder.

# To release

Run

` ./release.sh `

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

tdl_client_python-0.27.13.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

tdl_client_python-0.27.13-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file tdl_client_python-0.27.13.tar.gz.

File metadata

  • Download URL: tdl_client_python-0.27.13.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tdl_client_python-0.27.13.tar.gz
Algorithm Hash digest
SHA256 550470e5a8f405294abdf84e3d04d3536b8108591246a8364ddb6cfc7b395bff
MD5 33c0c5722d2e87900eae1fe709e07526
BLAKE2b-256 2c97583304407aefe448c6f40b905f8001e29101aeaf1740f1bb42e5513aef81

See more details on using hashes here.

File details

Details for the file tdl_client_python-0.27.13-py3-none-any.whl.

File metadata

File hashes

Hashes for tdl_client_python-0.27.13-py3-none-any.whl
Algorithm Hash digest
SHA256 81bb1bba605abe681d2f03383f4e907b04fb9e2ef5075361d00903ee269338b0
MD5 9c72d7a268eac24f7e54843d0d8e20ad
BLAKE2b-256 e64b7c53f1d6bcaf6d5b99c69b574dee315b02ddbc9e6687baae29dbf44a3e2b

See more details on using hashes here.

Supported by

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