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. Set up 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.2.0.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.2.0-py3-none-any.whl (69.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google_cloud_modelarmor-0.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 ceeb50fc2809c51a8b5c1bd1ae7454ba5b07ded0f364034894424dca48ecfaf4
MD5 8ce65c0408211f5fd8ec8cc27187c9ac
BLAKE2b-256 fba9baf35449ca6acca616d3262e9ff453b89d20ecebd1e17c8c62545570614a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_cloud_modelarmor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9369b992daa2831f0a3f2492299de67171211d956165bb917eae308c3629c91
MD5 10a3f05a7b58edb7badf4bb192610490
BLAKE2b-256 0f6de31cf6f2922a4d5045e10c859f2f06d3dfc4bd87652934ae52722f073a82

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