Skip to main content

PyPI wrapper for TenantGuard, a tenant-isolation security-audit CLI for self-hosted multi-tenant AI-agent platforms. Downloads and runs the official prebuilt Go binary from GitHub Releases.

Project description

tenantguard-cli (PyPI)

PyPI wrapper for TenantGuard, a tenant-isolation security-audit CLI for self-hosted multi-tenant AI-agent platforms. This package does not reimplement TenantGuard in Python -- it downloads the official prebuilt tenantguard binary for your platform from TenantGuard's GitHub Releases (published by goreleaser), verifies its SHA-256 checksum, caches it locally, and execs it.

Install

pip install tenantguard-cli

or run without installing:

uvx tenantguard-cli scan --demo

Usage

tenantguard scan --demo
tenantguard scan --format sarif
tenantguard scan --format json

See the main TenantGuard README for the full rule reference (TA01-TA16), SARIF/JSON output schema, and the GitHub Action.

How this differs from the npm package

The tenantguard-cli npm package ships six platform-specific optionalDependencies, each embedding a cosign-verified binary at publish time -- no network access happens on an end user's npm install. A single pure-Python wheel can't embed six platform binaries the same way, so this package instead downloads the matching release archive the first time you run tenantguard, verifies its SHA-256 against the release's checksums.txt, and caches the verified binary locally (per package version) -- every run after that is offline. See src/tenantguard_cli/cli.py for the exact verification logic.

Other distribution channels for TenantGuard: Homebrew, go install, and GitHub Releases directly -- see the main README for details.

License

Apache-2.0, matching the main TenantGuard repository.

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

tenantguard_cli-0.1.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

tenantguard_cli-0.1.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file tenantguard_cli-0.1.1.tar.gz.

File metadata

  • Download URL: tenantguard_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for tenantguard_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5bdb9a4588bd8c976eef8d9ac4d282ee0673939c985e194d894849db71b8a7dc
MD5 5d54dcfae738416b588fa789ce5e049e
BLAKE2b-256 c1300b047a3f003d9eb399355dcf79568d36661e17e4b128391b7567376669cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenantguard_cli-0.1.1.tar.gz:

Publisher: publish-pypi.yml on RudrenduPaul/TenantGuard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tenantguard_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tenantguard_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for tenantguard_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 473b6d480d920eab33383fc0269c446e91d912c3153b4d24f314afaaf84ec71d
MD5 6f740a77f5a48f117b2ee2542e73640d
BLAKE2b-256 ffe8937d7876997ed6623632b925fccc1263aaf0e8be846e8a247ecf6f047740

See more details on using hashes here.

Provenance

The following attestation bundles were made for tenantguard_cli-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on RudrenduPaul/TenantGuard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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