Skip to main content

WDNAS-Client

PyPI Version

This module allows users to connect to their local WD NAS and view system info (storage capacity, disk temp, volumes, etc.). It is a work-in-progress and my first public Python module.

Initially built for my Home Assistant integration ha-mycloud. I thought I would make it into a python module for a bit of fun and to share the API systems for others to use.

Features

  • Fetches system info, share names, network status, and more.
  • Asynchronous library using asyncio and client.
  • Supports V2 and V5 WD NAS firmware.

Installation

pip install wdnas-client

Usage

Note: An admin account is required for the client to log in.

Here is a basic example of how to connect and pull data:

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())
            print("Uptime:", await wdNAS.uptime())

if __name__ == "__main__":
    asyncio.run(main())

Documentation

For more detailed information, please see the docs folder:

  • Supported Models

    • A list of all tested and compatible NAS models and firmware versions.
  • API Reference

    • A detailed breakdown of the V2 and V5 API endpoints this integration uses.

Metadata

Release files for wdnas-client 0.9.4

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

Source distribution (sdist)

Source distribution for wdnas-client 0.9.4
File Size Uploaded Provenance Actions
wdnas_client-0.9.4.tar.gz 8.0 kB Without provenance Details for wdnas_client-0.9.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wdnas-client 0.9.4
File Interpreter ABI Platform Actions
wdnas_client-0.9.4-py3-none-any.whl Python 3 none any Details for wdnas_client-0.9.4-py3-none-any.whl

Total release size: 15.8 kB

Release files / wdnas_client-0.9.4.tar.gz

Download URL wdnas_client-0.9.4.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5bca5647efe99e6ecc3aa537f97ddf5a27011248f7d5018d28774e66bf3ed6fb
BLAKE2b-256 checksum
How to use checksums
a44df20f4e5b2bbaee3b70b6614485dab0f2bdedf0f8ca859abe487e391abd62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / wdnas_client-0.9.4-py3-none-any.whl

Download URL wdnas_client-0.9.4-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6bab8140f6a7a2f2a131f06501eb9cb2be011c4cfedc8e6579f20f4abcebfa4
BLAKE2b-256 checksum
How to use checksums
a25b0cf465739a54d925e0489e9cb5d686938b6b140c6b6819690b0dd8e7af3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for wdnas-client 0.9.4

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