A suds transport implemented with requests
Project description
suds_requests
suds_requests is a suds transport implemented with requests. This lets you use all of the goodness of requests (connection pooling, simple auth, etc.) along with the pain of soap.
Examples
Simple:
import suds.client import suds_requests c = suds.client.Client( 'http://wsdl_url', transport=suds_requests.RequestsTransport() )
Adding basic auth:
import requests import suds.client import suds_requests session = requests.Session() session.auth=('user', 'password') c = suds.client.Client( 'http://wsdl_url', transport=suds_requests.RequestsTransport(session) )
Changing the connection pool size:
import requests import requests.adapters import suds.client import suds_requests session = requests.Session() adapter = requests.adapters.HTTPAdapter( pool_connections=1000, pool_maxsize=1000, ) session.mount('http://', adapter) session.mount('https://', adapter) c = suds.client.Client( 'http://wsdl_url', transport=suds_requests.RequestsTransport(session) )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
suds_requests-0.4.0.tar.gz
(1.8 kB
view details)
File details
Details for the file suds_requests-0.4.0.tar.gz
.
File metadata
- Download URL: suds_requests-0.4.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | add545024cbadc17e66342188f900694cd9d9c633d49da4520b8279665c55c24 |
|
MD5 | de35abe4c5f6f6903a3229336c454db9 |
|
BLAKE2b-256 | cd21a0a6cf699d70e53b50cb2461c75a6687f1cf8d7d052cc591d73a2e562dcb |