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-1.0.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-1.0.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novisentinel-1.0.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6b598d21d11118b10a81e04c69e06cda3e1ca3280ee92f43921c8c20928942a3
MD5 391fb18f9b339bd1a8cb35ae7fd3055e
BLAKE2b-256 c48355287f4f0621101d1054ba85ede91cc240055f589b503fe3f9da264af56c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novisentinel-1.0.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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8aebe24aa9b94007807231b4456c08648d128555e78db848af9af3910640b342
MD5 d8d9742dcd0378cb733462cdf7749222
BLAKE2b-256 6c62d42a68ca5b887f59eff5f761028ca5189fa477c0cc1076d222acc2e7cfcc

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