No project description provided
Project description
WDNAS-Client
About
This module allows users to connect to their local WD NAS and view system info (Storage capacity, Disk temp, volumes etc..) Its heavily a WIP and is my first public python module
My end goal with this is to link into Home Assistant so I can monitor my WD NAS
Code
First create the client with the username, password, the host (Be that hostname or IP address)n and the system version number (2 or 5)
Admin account is requred!
Now call the functions to obtain wanted data - Thats it!
'''python import asyncio from wdnas_client import client
async def main(): username = input("Username: ").lower() password = input("Password: ") host = '192.168.1.42' version = 2 # Can be 2 or 5
async with client(username, password, host, version) as wdNAS:
# V2 and V5 systems
print("System Info:", await wdNAS.system_info())
print("Share Names:", await wdNAS.share_names())
print("System Status:", await wdNAS.system_status())
print("Network Info:", await wdNAS.network_info())
print("Device Info:", await wdNAS.device_info())
print("System Version:", await wdNAS.system_version())
print("Accounts:", await wdNAS.accounts())
print("Alerts:", await wdNAS.alerts())
# V2 systems only
if version == 2:
print("Latest Version:", await wdNAS.latest_version())
# V5 systems only
if version == 5:
print("Cloud Access:", await wdNAS.cloud_access())
print("USB Info:", await wdNAS.usb_info())
if name == "main": asyncio.run(main()) '''
Important Info
Currently supports V2 and V5 systems
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
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
File details
Details for the file wdnas_client-0.9.0.tar.gz.
File metadata
- Download URL: wdnas_client-0.9.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
478297dd9d44253bee6b4fcff9bbdb10e918dd2a0491a96570803346589a88c0
|
|
| MD5 |
d375f094cf82c99d1328b77c1e0b65a1
|
|
| BLAKE2b-256 |
f76297fe020f09c238d8ed1b48e51a71b3723b897461c7fd5c9fe2c88b4cd306
|
File details
Details for the file wdnas_client-0.9.0-py3-none-any.whl.
File metadata
- Download URL: wdnas_client-0.9.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3180b7fc1a8a149da6b2e024f65bee03a16d504a8fa1ccdb788afd519fe23480
|
|
| MD5 |
d9eb10e4cf24aafb80e8df0dd432a9ce
|
|
| BLAKE2b-256 |
2e1ae4ea1bc3cad020544650d3125bedc259f9c6fdf3b91b3898f08f23322cfd
|