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.2
Use docker executor for tests.
Use versiontag>=1.0.3
1.0.1
Updated README
1.0.0
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
File details
Details for the file instrumented-soap-1.0.2.tar.gz
.
File metadata
- Download URL: instrumented-soap-1.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0def7887b2513b6ac8432f15cb7e84b8e62555c8bcda2fb770483ea8b88cdc7 |
|
MD5 | dcf3d142f6bcf273f59f9d1b654475e8 |
|
BLAKE2b-256 | 3f890c8b1556f626d2892d32358593be07462925e6a77177ef80e2edfe2b68ef |
Provenance
File details
Details for the file instrumented_soap-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: instrumented_soap-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76a045faa93f78af20a75e42451e596215fd36d3ac34c985f69830ba966fce8 |
|
MD5 | c466c86bef360d18868ebe49a33cb863 |
|
BLAKE2b-256 | c7552b151d3d2e6be8acf37c77f07f55c7bf77c31f18be6a55db50476f9d1de9 |