Skip to main content

Python SDK for NoviSentinel — privacy proxy for AI coding agents

Project description

novisentinel

Python SDK for NoviSentinel — the open-source privacy proxy for AI coding agents.

Installation

pip install novisentinel

Quick start

from novisentinel import Client

# No API key needed for local self-hosted NoviSentinel
client = Client()

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]"

Hosted / remote usage

client = Client(api_key="nvs_...", base_url="https://api.novisentinel.com")

Async

from novisentinel import AsyncClient

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

Batch scanning

results = client.scan_batch(["text1", "text2"], context="input")
# Async version runs concurrently
results = await async_client.scan_batch(["text1", "text2"])

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.1.0.tar.gz (10.7 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.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for novisentinel-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0513cb8ee575e14b5608e657f6988e8f6f8c920d89ad577e363eb8f208c8e1cc
MD5 f089a1354c14f25365cd9ac6c7c0d885
BLAKE2b-256 8f699f89c21a690fadd9103b9712e42909616cb8f244d98901aae2ff0d8ea691

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novisentinel-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fc95a7a62a3b2b673d648ff95e0f41f476ebd9d36491267d2744e339b0bc545
MD5 3b897ca76899e65080afad2fba0dcb03
BLAKE2b-256 6d39c98951247028afad820deaa29ca364ceb2336d009d7e5185926f0331e656

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