Python SDK to interact with BRAHMAI APIs.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for brahmai-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f84dd8d2a2f473d20c9ea79b352c0ec95364b39a788a54c6088df851ac1e7d70 |
|
MD5 | 517f00a57902d9760c73314210621ab5 |
|
BLAKE2b-256 | 710deb2bedac191c23aefc1e6e504c35fcaef594fd14167dcb9ac6511b47f7df |