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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tdl_client_python-0.27.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d6e80885bf846de2f30ff34c9ca41ceffebffa787454eb6bbd7103d47db25c |
|
MD5 | d7751dad913ba2ac3bc59dff3e4420fd |
|
BLAKE2b-256 | 125bc8f160e04a8c32d5fec81d4792f3b37523daeb2941120f8eae4308132b8d |
Hashes for tdl_client_python-0.27.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f259f4c4b0e39767f8bd8c6b4e523e656b90b45884868fdd0e69f403bc2721 |
|
MD5 | d581671f3334719867057cd18983a858 |
|
BLAKE2b-256 | f0ccf920cfec1aab2958b87cfe43f9f39aa7011f0ba1154a6069ebc561a64cfa |