A suds transport implemented with requests using suds-py3
Project description
Simple port of the original suds_requests <https://github.com/armooo/suds_requests> to python 3.7. All API is the same.
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
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
suds_requests4-1.0.0.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file suds_requests4-1.0.0.tar.gz
.
File metadata
- Download URL: suds_requests4-1.0.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2c74828221d9eccb6fb76f06618a9daac607f2d884036af709278cd7f36dc6 |
|
MD5 | 306660ee6d5772f9de074f59f4407377 |
|
BLAKE2b-256 | b23f96809805264ec417a12460295a232fcc76cc19201dd01a886d651ba07b01 |
File details
Details for the file suds_requests4-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: suds_requests4-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d856e201a0a3338591d3766228817cc97b17593fad5430c3dd2fafd291d5cf |
|
MD5 | 5f40f2dd5bdfa71d7ce1833c5614c725 |
|
BLAKE2b-256 | 48ab68f98cc3fe7d7b180a053ee1af35190f277978ea2f989ff344489cd33137 |