Skip to main content

Google Cloud Modelarmor API client library

Project description

preview pypi versions

Model Armor API: Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.

  2. Enable billing for your project.

  3. Enable the Model Armor API.

  4. Setup Authentication.

Installation

Install this library in a virtual environment using venv. venv is a tool that creates isolated Python environments. These isolated environments can have separate versions of Python packages, which allows you to isolate one project’s dependencies from the dependencies of other projects.

With venv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.

Code samples and snippets

Code samples and snippets live in the samples/ folder.

Supported Python Versions

Our client libraries are compatible with all current active and maintenance versions of Python.

Python >= 3.7

Unsupported Python Versions

Python <= 3.6

If you are using an end-of-life version of Python, we recommend that you update as soon as possible to an actively supported version.

Mac/Linux

python3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-modelarmor

Windows

py -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-modelarmor

Next Steps

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

google_cloud_modelarmor-0.1.1.tar.gz (78.0 kB view details)

Uploaded Source

Built Distribution

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

google_cloud_modelarmor-0.1.1-py3-none-any.whl (69.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google_cloud_modelarmor-0.1.1.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for google_cloud_modelarmor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f16958a4d7371b64d4076a50e6eaf23903e76cde694a3b3f9027f38827752107
MD5 b66ad0f69b60cefdb3cbf47c97cd1a10
BLAKE2b-256 8c29434a95c8b9efa5a4ddf5933dca5da67a22c3d0b9bc7c0ba024ca61beb8a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_cloud_modelarmor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e2cc147b5bbe7d588178669d582ac552f465be5380cdf2ee1c2899d3c0a7e5b
MD5 5d93b95341317f817e8e08274be9c176
BLAKE2b-256 0497fa0af6473aee8873b5bc6f6389612690f3ba0a85eab5cb8cfee3ae21d669

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