Skip to main content

easywsy Documentation

easywsy is a high-level API based on suds for developing connections to any Web Service. The main feature is the readability and simpleness of the code required to connect to a Web Service.

For example, this code connects to a Web Service, and use one of its functions to sum two numbers:

from easywsy import WebService

class WSCalc(WebService):
ws = WSCalc(WSURL)
request_data = {
    'Add': {
        'intA': 10,
        'intB': 20,
    }
}
ws.add(request_data)
response = ws.request('Add')
# response will then be 30

Another big feature is the support for dynamic checks on the fields sent to the Web Service. This allows the developer to check the values that will be send to the Web before sending them, preventing a connection to the internet that will always return an error.

This is achieved through method decoration as follows:

from easywsy import wsapi

@wsapi.check(['intA', 'intB'])
def validation_method(value):
    if isinstance(value, int):
        return True
    else:
        return False

Following the previous example, this method will be called twice, each time with the value of intA and intB in the value paramenter. If the method returns False, a predefined error will be raised, and if it returns True, the flow continues.

Metadata

Release files for easywsy 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easywsy 4.0.1
File Size Uploaded Provenance Actions
easywsy-4.0.1.tar.gz 9.8 kB Without provenance Details for easywsy-4.0.1.tar.gz

Release files / easywsy-4.0.1.tar.gz

Download URL easywsy-4.0.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7c62189f5f86f60b7767145d6da3bbb0d87b78b02073eb247376640a0a1905a5
BLAKE2b-256 checksum
How to use checksums
ed30f8459510629684356cc096d0857c0405c96c83e7e5d35f7e6871369c9e18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15rc1

Security for easywsy 4.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page