Wrapper around suds-jurko that adds django_statsd instrumentation and improved proxy support.
Project description
This package is a wrapper around suds that adds django_statsd instrumentation and improved HTTP proxy support.
Usage
Install the instrumented-soap package (pip install git+ssh://git@gitlab.com/thelabnyc/instrumented-soap.git#r1.0.0).
Configure using your Django project’s settings.py file. The available options and their defaults are shown below. All configuration is optional.:
# Enables Suds request/response logging DEBUG = True # Remove the Suds file cache of pickled WSDLs upon process exit SOAP_REMOVE_CACHE_ON_EXIT = False # Optional mapping of http(s):// WSDL URLs => file:// URLs to locally saved versions of the WSDL SOAP_WSDL_INTERCEPTS = {} # Optional HTTP/HTTPS proxy URL SOAP_PROXY_URL = None # Timeouts for opening WSDLs and sending method calls. Should be a # tuple containing (1) the TCP connect timeout and (2) the response # timeout. SOAP_OPEN_TIMEOUT = (3.05, 27) SOAP_SEND_TIMEOUT = (3.05, 10)
Use with your SOAP API.:
from soap import get_client client = get_client('http://some.dope.soap.api.com/path?WSDL', 'DOPE API LOG PREFIX') resp = client.service.DoStuff(42) print(resp)
Changelog
1.0.0 (2016-01-23)
Initial release.
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
Close
Hashes for instrumented_soap-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fbd41759927ce86f0bf0be4067aac88768d85e7e391319cc1dd2569b5bf23a |
|
MD5 | cf60d920a8808327fe91a46f94dfbdc1 |
|
BLAKE2b-256 | ce27e842c6ee1792cf6fdadee369c7405fa550225e57e344446f77b2a8d2443d |