Skip to main content

securitylogai

Reusable Python engine for parsing logs, detecting suspicious activity, generating reports, and producing AI explanations.

What it does

  • Parse Apache-style logs
  • Detect brute-force style patterns
  • Generate readable reports
  • Produce AI-ready summaries
  • Parse mixed log lines with parse_logs()

Install from PyPI

pip install securitylogai

Install from TestPyPI

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple securitylogai

Usage

from securitylogai import parse_logs, detect_bruteforce, generate_report, explain_attack

log = "127.0.0.1 - - [30/May/2026:12:00:00 +0630] \"POST /login HTTP/1.1\" 401 532"
events = parse_logs(log)
findings = detect_bruteforce(events * 25)
report = generate_report(findings)
summary = explain_attack(findings[0]) if findings else None

Build and publish

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*
python -m twine upload dist/*

Package structure

  • parser.py - parse log lines
  • detector.py - detect suspicious patterns
  • reporter.py - create text reports
  • ai.py - AI explanation layer
  • utils.py - shared helpers

Roadmap

  • add richer parsing for more log sources
  • add provider adapters for OpenAI, Gemini, Ollama
  • add CLI and JSON output
  • add tests and release workflow

Metadata

Release files for securitylogai 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for securitylogai 0.1.2
File Size Uploaded Provenance Actions
securitylogai-0.1.2.tar.gz 4.0 kB Without provenance Details for securitylogai-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for securitylogai 0.1.2
File Interpreter ABI Platform Actions
securitylogai-0.1.2-py3-none-any.whl Python 3 none any Details for securitylogai-0.1.2-py3-none-any.whl

Total release size: 8.9 kB

Release files / securitylogai-0.1.2.tar.gz

Download URL securitylogai-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0fbeb1f064245ca298474019e0b81927bf5e5116d9f9fda0dc2c7b6147da0e86
BLAKE2b-256 checksum
How to use checksums
7f323c77f2eff0235be7bc8d0f009ff922abb9b6f6bdf365afdcae253e74b142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / securitylogai-0.1.2-py3-none-any.whl

Download URL securitylogai-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca62deb9c79d4a64e09c505f8b699b6e49faca51c9050e7a7e83edd86396cf6f
BLAKE2b-256 checksum
How to use checksums
345bb7e80cddf6e78c0c59138a1c5885c4671ec2c995113ae4c9126fc647cb5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for securitylogai 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page