Skip to main content

Python SDK for the NoviSentinel AI Safety & PII Firewall

Project description

novisentinel

Python SDK for the NoviSentinel AI safety and PII firewall.

Installation

pip install novisentinel

Quick start

from novisentinel import Client

client = Client(api_key="nvs_...")

result = client.scan("My SSN is 123-45-6789", context="input")
print(result.action)       # "block" | "warn" | "redact" | "allow"
print(result.has_pii)      # True
print(result.redacted_text) # "My SSN is [SSN]"

Async

from novisentinel import AsyncClient

async with AsyncClient(api_key="nvs_...") as client:
    result = await client.scan("Hello world", context="input")

License

Apache-2.0 — see LICENSE.

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

novisentinel-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

novisentinel-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file novisentinel-0.1.0.tar.gz.

File metadata

  • Download URL: novisentinel-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for novisentinel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4c3efa5b82a6f42d742ce726584fc77c1800f692a53eb3115295378cc196f1b
MD5 ab62b9d8f1c7d0d54e4db170f7c1b6fb
BLAKE2b-256 d26c8e83e957ebdb118144834ae9a49ef018127943279d6d86282ec95e7db1e1

See more details on using hashes here.

File details

Details for the file novisentinel-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: novisentinel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for novisentinel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 116b6d158130f6afe0331f66aa2d0e0267b9c33b517db21d2ae81e0ae7989868
MD5 320df20df6fa79d3078ebac9d4e45896
BLAKE2b-256 13acce42f903913189219af9435ea3f6ec1a641d55b4fa53f6348253d5c23076

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