FabSec SDK – Security & AI Platform
Project description
FabSec SDK (Python)
Python SDK for interacting with the FabSec Security & AI Platform.
FabSec helps you send security events (auth/login, requests, suspicious activity) to a backend that can analyze risk and return an audit_id (and other results depending on your backend).
Installation
From PyPI (recommended)
pip install -U fabsec
From GitHub
pip install git+https://github.com/sudomata/fabsec-python-sdk.git
Local development install
python -m venv venv source venv/bin/activate pip install -U pip pip install -e .
Quick start
from fabsec import FabSecClient
c = FabSecClient( api_key="FABSEC_API_KEY", base_url="http://127.0.0.1:8080", # backend local )
res = c.ingest({ "app_id": "my-app", "user_id": "user@test.com", "route": "/login", "method": "POST", "ip": "192.168.1.10", })
print(res["audit_id"])
Configuration
API key
Set your API key in code:
c = FabSecClient(api_key="FABSEC_API_KEY")
Base URL
By default, the SDK may target a local backend. You can override it:
c = FabSecClient( api_key="FABSEC_API_KEY", base_url="http://127.0.0.1:8080", )
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
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 fabsec-0.1.3.tar.gz.
File metadata
- Download URL: fabsec-0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d1d52c7a5c63bbfa58b90040c50e5ee3853cc66b05805e217067b57ccc2b4e5
|
|
| MD5 |
a914ffac3c1f568e457a0ffcd614aafb
|
|
| BLAKE2b-256 |
d4908a05eed9f248fc9cc084e8dd75f1407a3ab766a41e12e974260d874e3fb5
|
File details
Details for the file fabsec-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fabsec-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b758397790f791ff3b3882ed619c8655ce6acbe6c6b17c2ab0e8ba37ca35bb6e
|
|
| MD5 |
4f609213bb12c7c05ab84e1f948b9230
|
|
| BLAKE2b-256 |
5ca3c3f69edee4fa2aefde9c702cf67e42bc5321fd7cd337ff72ea7be89ccc51
|