Skip to main content

tdl-client-python

Project description

[![Python Version](http://img.shields.io/badge/Python-3.10-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

#### Manual

All test require the ActiveMQ broker to be started. The following commands are available for the broker.

` python ./broker/activemq-wrapper.py start python wiremock/wiremock-wrapper.py start 41375 python wiremock/wiremock-wrapper.py start 8222 `

Stopping the above services would be the same, using the stop command instead of the start command.

#### Automatic (via script)

Start and stop the wiremocks and broker services with the below:

`bash ./startExternalDependencies.sh `

`bash ./stopExternalDependencies.sh `

# Cleanup

Stop external dependencies ` python ./broker/activemq-wrapper.py stop python wiremock/wiremock-wrapper.py stop 41375 python wiremock/wiremock-wrapper.py stop 8222 `

or

`bash ./stopExternalDependencies.sh `

# 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.6.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

tdl_client_python-0.27.6-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

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