Skip to main content

Synology Drive Web API integration for wcpan.drive

Project description

wcpan.drive.synology

Synology Drive Web API integration for wcpan.drive framework.

Installation

pip install wcpan-drive-synology

For the server component:

pip install "wcpan-drive-synology[server]"

Usage

Client

The client connects to a running wcpan.drive.synology server instance and implements the wcpan.drive.core FileService interface.

from wcpan.drive.synology import create_service

async with create_service(server_url="http://localhost:8080") as file_service:
    root = await file_service.get_root()
    print(f"Root: {root}")

Server

The server mirrors a Synology Drive instance locally via a REST API and webhook-driven update pipeline. Configure it with a YAML file (see server.example.yaml):

# Copy and edit the example config
cp server.example.yaml server.yaml

# Start the server
wcpan.drive.synology --config server.yaml serve

# Other subcommands
wcpan.drive.synology --config server.yaml gc
wcpan.drive.synology --config server.yaml backfill /
wcpan.drive.synology --config server.yaml squash

Config file

version: 1
host: "0.0.0.0"
port: 8080
database_url: "sqlite:////data/mirror.db"
synology_url: "https://nas.example.com:5001"
username: "your-drive-user"
password: "your-password"
mounts:
  photos: "/volume1/photos"
local_paths: {}
public_url: "https://my-server.example.com"

version is the config schema version and must match the version supported by the current binary. local_paths is currently required by the config schema; use {} when local media probing is not needed. See server.example.yaml for the full set of options.

Requirements

  • Python >= 3.13
  • aiohttp >= 3.13.0
  • pycryptodome >= 3.0
  • wcpan-drive-core >= 5.0.6

Server extras additionally require: pyyaml, pymediainfo, wcpan-logging.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wcpan_drive_synology-3.0.0.tar.gz (129.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wcpan_drive_synology-3.0.0-py3-none-any.whl (59.1 kB view details)

Uploaded Python 3

File details

Details for the file wcpan_drive_synology-3.0.0.tar.gz.

File metadata

  • Download URL: wcpan_drive_synology-3.0.0.tar.gz
  • Upload date:
  • Size: 129.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wcpan_drive_synology-3.0.0.tar.gz
Algorithm Hash digest
SHA256 7d6ab52991fb2182e73dffc0a58385eb296247d9a045db7e19dff7151ac42628
MD5 bdb07d22c9206b42c6e8439aaa3b4150
BLAKE2b-256 b318d5a89f10a0781239879ca807ffa622d007f7c6871d2d9b942b5201e071a7

See more details on using hashes here.

File details

Details for the file wcpan_drive_synology-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: wcpan_drive_synology-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 59.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wcpan_drive_synology-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 104dddf71f98ec0d736163264d5249ec167002d217c0ac6e504fb0f5ba268077
MD5 998689abd6e363a66273ead35f852cf5
BLAKE2b-256 0fa1f20caff1aec4d87de7fa11eca69fd00a2c5143a08f10e590a9726d4d483b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page