This page covers the three packages built from this repository: svy, svy-rs and svy-io.
Report it privately through GitHub: the repository's Security tab, then Report a vulnerability (direct link). Please do not open a public issue. Expect an acknowledgement within five working days; a fix is released as a patch and credited in the changelog unless you ask otherwise.
Fixes go into the latest release of each package.
svy runs entirely on your machine. Your survey data is never sent anywhere.
- No telemetry. svy collects no usage data, crash reports or analytics.
- No network access in a base install.
pip install svyinstalls no HTTP client, and the analysis, weighting and estimation code opens no network connections. The readers open what you give them:read_csvandread_parquethand the path to polars, which also reads a URL or cloud path if you pass one. - One optional exception: example datasets. The
remoteextra (pip install "svy[remote]") letssvy.datasetsdownload the full example datasets from the svyLab catalog atsvylab.com. It connects only whensvy.datasetsis called, and requests only the public catalog and dataset files. Under the defaultsource="auto", a dataset already in the local cache (~/.svy/datasets, orSVYLAB_CACHE_DIR) is read without connecting, andSVYLAB_OFFLINE=1stops it connecting at all; only an explicitsource="remote"orforce_download=Truealways connects. - No files written except the files you ask svy to write, and that dataset cache.
- Runtime dependencies.
svy: numpy, scipy, polars (with pyarrow), msgspec,svy-rsandsvy-io.svy-rsandsvy-iodepend on polars only. Optional: rich (report), httpx (remote). - Compiled code.
svy-rsis Rust;svy-iois Rust around the ReadStat C library, whose source is vendored in this repository. Both are compiled into their wheels. Every Rust dependency is pinned in theCargo.lockfiles and the Python dependencies inuv.lock, all in this repository. - Builds. Wheels are built from tagged commits by the GitHub Actions workflows in
.github/workflows, with every action pinned to a commit hash. - Publishing. Releases are uploaded to PyPI through trusted publishing (OIDC), with no stored API tokens. Releases carry PyPI attestations linking each file to the workflow run that built it (
svy-iofrom the release after 0.4.0). - Updates. Dependabot watches the Python, Rust and GitHub Actions dependencies, including transitive ones, for published vulnerabilities, and the lockfiles are updated when it reports one.
- Integrity of example datasets. Downloads must use https, including after redirects. Each file is checked against the SHA-256 hash the catalog publishes; where it publishes none, the hash of the first download is pinned in the cache and every later download and cached read must match it.
Prebuilt wheels, so no compiler or Rust toolchain is needed:
| Platform | Architectures | Minimum |
|---|---|---|
| Linux | x86_64, aarch64 | glibc 2.28 (RHEL/Rocky/Alma 8, Debian 10, Ubuntu 20.04) |
| macOS | arm64, x86_64 | macOS 11 (arm64), 10.12 (x86_64) |
| Windows | x86_64 |
Python 3.11 or later; one wheel per platform covers every supported Python version. On other platforms (for example older Linux such as RHEL 7, or musl-based Alpine), pip builds from source, which needs Rust 1.91 or later and a C compiler. The test suite runs on Linux for Python 3.11 to 3.14.