Skip to main content

Python SDK to interact with BRAHMAI APIs.

Project description

BRAHMAI

Enhancing A.I. Technology for the Betterment of All.

Python SDK Version: 0.0.1

The BRAHMAI Python library provides convenient access to the BRAHMAI REST API from any Python 3.7+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.

The BRAHMAI Python library also allows management of data and take care of security without having to rely on any third-party code.


PROVISIONS:

SkyNET: Privacy Protection and Data Anonymization Framework.

It offers rapid identification and anonymization capabilities for sensitive information in both text and images, including but not limited to credit card numbers, personal names, locations, social security numbers, bitcoin wallets, phone numbers, financial data, and beyond.

Example:

from brahmai import BRAHMAI

client = BRAHMAI(
    apikey: "your_api_key",
    api_version: "default"
)

text = "Hey there, my name is Aron, and my phone number is 8585665***"
# Simple masking of data:
encrypt = client.skynet.wrap(content=text)

returns something like:

{
    "text": "Hey there, my name is <PERSON>, and my phone number is <PHONE_NUMBER>", 
    "items": [
        {
            "start": 55, 
            "end": 69, 
            "entity_type": "PHONE_NUMBER", 
            "text": "<PHONE_NUMBER>", 
            "operator": "replace"
        },
        {
            "start": 22, 
            "end": 30, 
            "entity_type": "PERSON", 
            "text": "<PERSON>", 
            "operator": "replace"
        }
    ]
}
# Masking data with encryption:
encrypt = client.skynet.wrap(content=text, encrypt=True)

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

brahmai-0.1.0a0.tar.gz (74.2 kB view hashes)

Uploaded Source

Built Distribution

brahmai-0.1.0a0-py3-none-any.whl (125.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page