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
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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf66024e3b1a43cc0e11774f7fb489d2d7433e98489c91f71c8429494b72d66 |
|
MD5 | 5c8d64fa375d619ca8f2151a9597d3e6 |
|
BLAKE2b-256 | 74f8af1c5995f93130e4bfcb35b461f8f1153c706a2976c41a4f94df9e3488ab |