Skip to main content

syq for Python

syq is the official preview Python adapter for the syq parallel file copier. It invokes syq with an argument array and never constructs a shell command.

python -m pip install syq

Package installation does not download an executable. The first call that needs syq downloads the exact release pinned by this SDK into the user cache. For Python package 0.0.2, that release is syq 0.1.7.

import syq

print(syq.__version__)           # Python package version
print(syq.PINNED_SYQ_VERSION)    # tested executable version
print(syq.managed_executable())  # downloads once, then returns the cached path

plan = syq.run([
    "cp",
    "project",
    "--to",
    "server",
    "--into",
    "/backup",
    "--dry-run",
])
print(plan.stdout.decode())

The managed executable is stored below $XDG_CACHE_HOME/syq/sdk/python/v0.1.7/ or, when XDG_CACHE_HOME is not an absolute path, ~/.cache/syq/sdk/python/v0.1.7/. The SDK checks the complete cached binary against its embedded release manifest before every use. A corrupt or missing cache entry is replaced atomically with a freshly downloaded, verified binary.

run() raises SyqProcessError for a nonzero process status by default. The exception retains the complete result, including stdout and stderr as bytes. Pass check=False when the caller wants to interpret the status directly. When timeout expires or the caller is interrupted, the SDK kills and reaps syq's local process group, including child processes such as SSH transports, before propagating the exception.

Custom executable override

An explicit executable bypasses the managed version:

result = syq.run(["--help"], executable="/opt/custom/bin/syq")
custom_version = syq.version(executable="syq")  # intentional PATH lookup

The SDK makes no compatibility or provenance guarantee for an override. Use it for local development, controlled offline provisioning, or when deliberately testing a different syq release.

The package targets Python 3.10 or newer on Linux and macOS and has no runtime Python dependencies. See the SDK compatibility policy for the release mapping.

Download files

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

Source Distribution

syq-0.0.2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

syq-0.0.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file syq-0.0.2.tar.gz.

File metadata

  • Download URL: syq-0.0.2.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for syq-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a4bc6c14f91793320d3d13ae5d9e0d1490a3e71ae9041d681842d87d60a39de2
MD5 00f796f6a102a839695c1888a58c639b
BLAKE2b-256 86569e41675c49dd8909e73ee2e6c81f3fb4f07cd2a4e877841fa0eac62c19f8

See more details on using hashes here.

File details

Details for the file syq-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: syq-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for syq-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b28fa5537f26b5440c9f322c79e33ad165b5ff754f718f1512b5ecbd4fedfaa
MD5 ae5fcd39f15d2971490d8e84a18b4d47
BLAKE2b-256 c078dc2d180707f833563887a8a8765a4f265206f73c687729175452b46d3d76

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.0.3

2 files

This release

0.0.2 This release

2 files

0.0.1

2 files

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