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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brahmai-0.1.0a0.tar.gz.
File metadata
- Download URL: brahmai-0.1.0a0.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d37b1a0db39d3cba9d49e83e9fa0043c63a6692d64d968c43ed06987d8cfc26b
|
|
| MD5 |
345ecf05e2b4f13f735891bb9c5c6d85
|
|
| BLAKE2b-256 |
605977902af778c6b48df0d2804020f1e24fb6eb0ab18b7c4116dfbf864f2f9b
|
File details
Details for the file brahmai-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: brahmai-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 125.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f84dd8d2a2f473d20c9ea79b352c0ec95364b39a788a54c6088df851ac1e7d70
|
|
| MD5 |
517f00a57902d9760c73314210621ab5
|
|
| BLAKE2b-256 |
710deb2bedac191c23aefc1e6e504c35fcaef594fd14167dcb9ac6511b47f7df
|