Skip to main content

Typed mini-SDK for the PIA `piactl` CLI with env settings, strategy connect, async monitor, and proxy adapters.

Project description

pypia_ctl

PyPI - Version License: MIT CI - Lint CI - Tests Docs - GitHub Pages Read the Docs Code Style - Ruff Type Checking - mypy

Typed wrapper around the Private Internet Access CLI (piactl) with:

  • strict subprocess runner + typed exceptions
  • status getters & strategy connect (preferred → random → default)
  • async monitor (piactl monitor)
  • Pydantic v2 settings via .env / env vars
  • proxy adapters (Playwright, httpx, Selenium)
  • .env tools (create/merge)
  • plugin hooks

Install (PDM or pip)

# PDM
pdm install -G docs -G dev -G sphinx

# pip
pip install pydantic pydantic-settings mkdocs mkdocs-material mkdocstrings[python] ruff mypy pytest sphinx furo myst-parser

Docs (MkDocs + Material)

pdm run mkdocs serve    # or: mkdocs serve

Sphinx (optional)

pip install sphinx furo myst-parser
(cd sphinx-docs && make html)
open sphinx-docs/_build/html/index.html

Project details


Download files

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

Source Distribution

pia_ctl_sdk-0.1.2.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

pia_ctl_sdk-0.1.2-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file pia_ctl_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: pia_ctl_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.22

File hashes

Hashes for pia_ctl_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 933045fea74f946448d81f3fa50fc3634bce684a2a151500a05749c6cafc3ac3
MD5 bef736358501ab09ed9cd6ca292238f0
BLAKE2b-256 617ccae19d0a6f08650dc664092bc92c51fc684eb4050b4e6549dc76d8368f22

See more details on using hashes here.

File details

Details for the file pia_ctl_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pia_ctl_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.22

File hashes

Hashes for pia_ctl_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b5e3fe1303cb407418f8ccc654f9b0a77f76f38bf50f07159b54edaf5c64cb4
MD5 c14105378474dcb1124a814de136679c
BLAKE2b-256 c1b0bda9c9678c5cdba3d41ed67df186521f53b46fa5d44d4b49b572e831f83e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page