Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for suds-requests4, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size suds_requests4-1.0.0-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size suds_requests4-1.0.0.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page