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.2.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.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fabsec-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 94e4714e641ea366d256e0d662ff3bc9ec7282e4b44e8f00bde4feab91ce9e8c
MD5 14a125020052d0ec17b04d13878eb93b
BLAKE2b-256 69fc2753de0300e621e9e41af6d88e95a876e8672496250c86cda094ead642df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fabsec-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6200fd5ab75c293202212bbcf4f1399d54e2fc2571a42d0cc1e62fc906e63616
MD5 5171063bed9a37317d664c7e806cd815
BLAKE2b-256 140c256928a3e7a58bf5c0568f1ece0bd58b14eb95c0c593ec2cb0baaf82483d

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