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.1.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.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novisentinel-1.1.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for novisentinel-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8fbc04732e38956377a1d59a3593636381f4bd1f0bf48217c60720028512dfa1
MD5 ca83078d8bc0ab641fdc90ee4587a606
BLAKE2b-256 f144222910d83ba10e94171d901e8d6393478f8c18094f4b0c73cd10e81692d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for novisentinel-1.1.1.tar.gz:

Publisher: release.yml on 009-KumarJi/novisentinel-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: novisentinel-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for novisentinel-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fae80f41bba5cd62d36f13e31de75d5dec2ae4a3a923b44fe68cc8b974759dd
MD5 fae41fd677715ff476f2ace8fbeefa04
BLAKE2b-256 7579e24bdfc6ef36cd5ee0e83a62597f84754db3c05d117b9116be5cd68d18f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for novisentinel-1.1.1-py3-none-any.whl:

Publisher: release.yml on 009-KumarJi/novisentinel-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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