Skip to main content

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


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 details)

Uploaded Source

Built Distribution

suds_requests4-1.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file suds_requests4-1.0.1.tar.gz.

File metadata

  • Download URL: suds_requests4-1.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for suds_requests4-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b9e6c7186ed6b30b13b5f70752d86046ab3c0d5028e4b6b2aa1d077f30a487a8
MD5 b57f663341e1eb165bd0db45fbf4ce65
BLAKE2b-256 b86f8057935d4c09f643c21fe772a016a9ba4e04beb5d6c3327bdc9ad4f57e37

See more details on using hashes here.

File details

Details for the file suds_requests4-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: suds_requests4-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for suds_requests4-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e917e6468e51200c7f6b91fc22da02ee48b506f24e4ca36b576d7cbd2a2c37c
MD5 2a414acd0ae309e0e98b35c89341b508
BLAKE2b-256 8cf4f48ea9ccc5281aee33eac751a19b2afa782f1c2a53fad9182733338f4f3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page