Wrapper around suds-jurko that adds django_statsd instrumentation and improved proxy support.
Project description
================
Instrumented SOAP
================
This package is a wrapper around suds_ that adds django_statsd instrumentation and improved HTTP proxy support.
.. _suds: https://bitbucket.org/jurko/suds
Usage
=====
1. Install the `instrumented-soap` package (``pip install git+ssh://git@gitlab.com/thelabnyc/instrumented-soap.git#r1.0.0``).
2. 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)
3. 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.
Instrumented SOAP
================
This package is a wrapper around suds_ that adds django_statsd instrumentation and improved HTTP proxy support.
.. _suds: https://bitbucket.org/jurko/suds
Usage
=====
1. Install the `instrumented-soap` package (``pip install git+ssh://git@gitlab.com/thelabnyc/instrumented-soap.git#r1.0.0``).
2. 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)
3. 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
File details
Details for the file instrumented-soap-1.0.0.tar.gz
.
File metadata
- Download URL: instrumented-soap-1.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e356e4ee404c5f603c1feabddd0b090b51b1499501e95d972b62b7b4c1e68297 |
|
MD5 | f3731291bf27f475887819a2c57892db |
|
BLAKE2b-256 | a2e2e6c3c592ed985d0fb36250bbbf529f34dc27c829198189231c66b681e36e |
Provenance
File details
Details for the file instrumented_soap-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: instrumented_soap-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077526e5f103d2b7a27b6505d5105f13ac63d6e798e10c33ddedff00973a6611 |
|
MD5 | 210e464ff1b495895839cb2ebc687def |
|
BLAKE2b-256 | a823b3af7308fb3a5168a7c1bc2da5f9228682fa3a9791097ad1b5d83a64df8e |