Skip to main content

PySynClient

Automatically detects Synology Drive Client sync folders on Windows and provides stable, device-independent access to their local paths.

Unlike the Synology Drive Client's internal numeric indices (which can shift between machines or when NAS connections change), PySynClient keys everything by NAS hostname and share name — identifiers that stay consistent across devices.

Installation

pip install pysynclient

Usage

Get sync folder paths

import pysynclient

paths = pysynclient.get_server_paths()
# {
#     "my-nas": {
#         "home": Path("D:/SynologyDrive/home"),
#         "datasets": Path("D:/SynologyDrive/datasets"),
#         "photos": Path("D:/SynologyDrive/photos"),
#     }
# }

# Access a specific folder
datasets = paths["my-nas"]["datasets"]

List connected NAS systems

hosts = pysynclient.get_nas_hosts()
# ["my-nas"]

Get detailed connection info

info = pysynclient.get_connection_info()
# {
#     "my-nas": {
#         "host_name": "my-nas",
#         "server_name": "my-nas.example.com",
#         "server_ip": "10.0.0.1",
#         "username": "admin",
#     }
# }

Example: Building a cross-device file path

import pysynclient

paths = pysynclient.get_server_paths()

# Works on any machine connected to this NAS — no hardcoded paths
model_weights = paths["my-nas"]["datasets"] / "models" / "weights.pt"

Requirements

  • Windows (Synology Drive Client stores its data in %LOCALAPPDATA%)
  • Synology Drive Client installed and connected to at least one NAS
  • Python >= 3.10

Metadata

Release files for pysynclient 0.2.0

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

Source distribution (sdist)

Source distribution for pysynclient 0.2.0
File Size Uploaded Provenance Actions
pysynclient-0.2.0.tar.gz 16.2 kB Without provenance Details for pysynclient-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysynclient 0.2.0
File Interpreter ABI Platform Actions
pysynclient-0.2.0-py3-none-any.whl Python 3 none any Details for pysynclient-0.2.0-py3-none-any.whl

Total release size: 32.3 kB

Release files / pysynclient-0.2.0.tar.gz

Download URL pysynclient-0.2.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
100763cd0848458c7b068604ef8f930a4e38ee21865f0fb595cbab45b2a60f26
BLAKE2b-256 checksum
How to use checksums
676c6b3431a0c3361373f60c938c00a1ca01fcb7c77046a9f5565bd1b975aa14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pysynclient-0.2.0-py3-none-any.whl

Download URL pysynclient-0.2.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
305f0344d99f9d3af10d3802428aae3e41e26569c96c447777cb8d4ebe43ce08
BLAKE2b-256 checksum
How to use checksums
27589b8137e6031a27a6edf77f8ef00bda56caee5fe4a03d54d0431d4ad693c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for pysynclient 0.2.0

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