A suds transport implemented with requests using suds-community
Project description
suds_requests4
Simple port of the original suds_requests <https://github.com/armooo/suds_requests>
to python 3. 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.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for suds_requests4-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e917e6468e51200c7f6b91fc22da02ee48b506f24e4ca36b576d7cbd2a2c37c |
|
MD5 | 2a414acd0ae309e0e98b35c89341b508 |
|
BLAKE2b-256 | 8cf4f48ea9ccc5281aee33eac751a19b2afa782f1c2a53fad9182733338f4f3e |