Electrolux Laundry System Python utility package
Project description
ELSPy
ELSPy is a Python utility to communicate with Electrolux Laundry System.
Utility has been tested with Electrolux Laundry System version 1.2.0.2.
Install
pip install ELSPy
Usage
from ELSPy.ELS import ELS
wsdl = '<YOUR_DOMAIN_AND_PATH>/Api/Mobile/VisionMobile.asmx?WSDL'
username = '<USERNAME>'
password = '<PASSWORD>'
els = ELS(wsdl, username, password)
# Get bookable items
choises = els.get_choises()
# Get bookings info for bookable item (choise) between dateranges
bookings = els.get_bookings(2, '2019-01-22', '2019-01-23')
get_choises()
Get bookable items
choises = els.get_choises()
[{
'Name': 'Övernattningsrum',
'Index': 0
}, {
'Name': 'Tvättstuga',
'Index': 1
}]
get_bookings(choise, start_date, end_date)
Returns booking info for bookable item (choise) between dateranges.
bookings = els.get_bookings(2, '2019-01-22', '2019-01-23')
[{
'BookDate': '2019-01-23',
'BookDayPassesAmount': 3,
'BookPasses': {
'BookDayPass': [
{
'PassIndex': 3,
'StartTime': '16:00',
'EndTime': '19:00',
'PassAvailability': {
'Availability': [
{
'IsFree': False,
'IsBookable': True,
'HasAnythingBooked': False
},
{
'IsFree': False,
'IsBookable': True,
'HasAnythingBooked': False
},
{
'IsFree': True,
'IsBookable': True,
'HasAnythingBooked': False
}
]
}
},
{
'PassIndex': 4,
'StartTime': '19:00',
'EndTime': '22:00',
'PassAvailability': {
'Availability': [
{
'IsFree': True,
'IsBookable': True,
'HasAnythingBooked': False
},
{
'IsFree': True,
'IsBookable': True,
'HasAnythingBooked': False
},
{
'IsFree': True,
'IsBookable': True,
'HasAnythingBooked': False
}
]
}
}
]
}
}]
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
ELSPy-0.1.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ELSPy-0.1.1-py3-none-any.whl
(3.0 kB
view details)
File details
Details for the file ELSPy-0.1.1.tar.gz.
File metadata
- Download URL: ELSPy-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
499386a4b2685b8db3ed308ee94896d93045552153987970b7c063e7483f4b84
|
|
| MD5 |
b7ced92c63e48f6d6bb804b314858d9e
|
|
| BLAKE2b-256 |
2f04ddd183f060c78421fd08d0768876c3af422ac2e7ce6ec63bfeea9cc5df29
|
File details
Details for the file ELSPy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ELSPy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d539ecb839f76c58f1d43e4904086da4f358322c70029e51e72daca36e2f575e
|
|
| MD5 |
bf7abdeb6177c20a7dc0a9b43a992e7d
|
|
| BLAKE2b-256 |
56e290f333ce400fb9d56a3125ebdc2d811a4384c08eebed1796f86e067f9e25
|