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.post1.tar.gz (10.6 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.post1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novisentinel-1.0.0.post1.tar.gz
  • Upload date:
  • Size: 10.6 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.post1.tar.gz
Algorithm Hash digest
SHA256 bbb6a41cbcf4966abce9d7d1562160c23c4fa519e8207b81a8e3e912ea9a3cd3
MD5 e1203a4432f2f46e7f9215932c6f92ad
BLAKE2b-256 f66e90558b58e635ac486ba24b3bd632dd6f21a5d94010f347fe158918481d5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for novisentinel-1.0.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc2c896938e25ac10ffc01002aa72d8a0cdef6423c34b9d3f681a4e87750ba69
MD5 7cf85233b9e801e7898e31d4c26759cb
BLAKE2b-256 5d63ab2ebbf92375b6f0d42bff404a7657a3dde31156397a32a26888f1df2b17

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