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.3, that release is syq 0.1.8.

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.8/ or, when XDG_CACHE_HOME is not an absolute path, ~/.cache/syq/sdk/python/v0.1.8/. 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.3.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.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syq-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 7a2ba14634409dbbc21eb38263ee31bada613a7b337067cbe899c29b7568a9c3
MD5 0f4f52801cdd57934c729525d5f6618d
BLAKE2b-256 a8af0d398edcd5270a301af5bcff9dc33c514b35189b0d7089225874f622eb7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syq-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d8a7e63d3bd78b5040558b2983132c95c9e7fbc907584db3e499e86f6826ab8
MD5 0c95b08bd3a4fde4a3fdfeb31c001c4a
BLAKE2b-256 80e30c6094a48c4c5dfd3f0a2da0581733059c59240ae4c487399a398c00e4c1

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

This release

0.0.3 This release

2 files

0.0.2

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