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:

```python
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:

```python
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 3.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 3.0.1
File Size Uploaded
easywsy-3.0.1.tar.gz 9.3 kB Details

Release files / easywsy-3.0.1.tar.gz

Download URL easywsy-3.0.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d40a2837568d0cf244a45fbb3388607e70cc40dbfb69c155c40c6966d1b4ffa9
BLAKE2b-256 checksum
How to use checksums
eb81451268b3456b17b2a417da8acedf65026018c7486f018ee7c7bf536d48b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

4.0.1

1 release file

3.0.2

1 release file

This release

3.0.1 This release

1 release file

2.3.66

1 release file

2.3.65

1 release file

0.3.65

1 release file

0.3.64

1 release file

0.3.63

1 release file

0.3.62

1 release file

0.3.61

1 release file

0.3.60

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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