Skip to main content

synology-apm-repo-sdk

Offline, read-only Python SDK for the Synology APV/Object-Storage dedup backup repository on-disk format. No network access, no writes to the repository — it only decodes what's already on disk (local filesystem, a mounted S3/Azure object store, or an SMB share) into browsable catalogs, workloads, versions, and restorable files.

Install

uv add synology-apm-repo-sdk        # inside a uv project
pip install synology-apm-repo-sdk   # any other environment

Full API reference: https://synology-apm.github.io/apm-repo-sdk-python/

Usage

import asyncio

from synology_apm_repo.sdk import Session


async def main() -> None:
    async with Session() as session:
        for repo in await session.open("/path/to/repository"):
            if repo.is_encrypted:
                result = await repo.set_key("<userKeyID>@<base64 userKey>")
                if not result.verification.ok:
                    print(f"wrong key for {repo}")
                    continue
            for catalog in await repo.catalogs():
                for workload in await catalog.workloads():
                    for version in await catalog.versions(workload):
                        print(catalog.display_name, workload.display_name, version.display_name)


asyncio.run(main())

Everything the SDK does is async def; Session is the entry point, and closing it (or leaving its async with) closes every repository it handed out. See ARCHITECTURE.md's Repository Layer section for what Repository/ Catalog each represent.

Requirements

Python 3.12+.

License

Apache-2.0.

Metadata

Release files for synology-apm-repo-sdk 0.4.1

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

Source distribution (sdist)

Source distribution for synology-apm-repo-sdk 0.4.1
File Size Uploaded Provenance Actions
synology_apm_repo_sdk-0.4.1.tar.gz 333.6 kB With provenance Details for synology_apm_repo_sdk-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synology-apm-repo-sdk 0.4.1
File Interpreter ABI Platform Actions
synology_apm_repo_sdk-0.4.1-py3-none-any.whl Python 3 none any Details for synology_apm_repo_sdk-0.4.1-py3-none-any.whl

Total release size: 755.6 kB

Release files / synology_apm_repo_sdk-0.4.1.tar.gz

Download URL synology_apm_repo_sdk-0.4.1.tar.gz
Size 333.6 kB
Tags Source
SHA-256 checksum
How to use checksums
db401a00246b9e62177128e9a6c43a51ebf0eeddda6963f35265a6e4af1efe74
BLAKE2b-256 checksum
How to use checksums
48c9c8bf9ad6f9d2a6357b80fb66f2517244bd3310fb8c834cf5b7cb9b4d376a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / synology_apm_repo_sdk-0.4.1-py3-none-any.whl

Download URL synology_apm_repo_sdk-0.4.1-py3-none-any.whl
Size 422.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3d0bb3300987d92aa93a2370f34ebb7891221d20ee5dff1ae900a67f6313c90
BLAKE2b-256 checksum
How to use checksums
2f6ba850d3fa929099e0b17e4b53c599415d6a5fac58a15bd501b405b0052fd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for synology-apm-repo-sdk 0.4.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for synology_apm_repo_sdk-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

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