Skip to main content

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.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

fabsec-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fabsec-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file fabsec-0.1.1.tar.gz.

File metadata

  • Download URL: fabsec-0.1.1.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

Hashes for fabsec-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7b8d525c37da7695f5261b87c6785e9ad011c039a6adc73f6c95ab55c8f1510f
MD5 4b0de748a3ea1682031ea4644ddd7ca4
BLAKE2b-256 69491722b66054be80e5d2972f87af5e1d42ac31b2a61f7e4a8a9d42ed1de331

See more details on using hashes here.

File details

Details for the file fabsec-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fabsec-0.1.1-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

Hashes for fabsec-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac23bb7291e334d47f3ad63aea1333fc3eb057b5459f4b0bb459ed78146b4f4
MD5 76df4c7006a9d314e7cd71af2cc2b370
BLAKE2b-256 fa5d2cb0550026b21256de384b274724ac8d605340d3b8d3985644c46096f6fd

See more details on using hashes here.

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