Skip to main content

This package processes user-provided text to generate structured summaries of security-related topics, such as incident reports or research findings, extracting key insights, vulnerabilities, and reco

Project description

secsummarize

PyPI version License: MIT Downloads LinkedIn

A Python package for generating structured summaries of security-related topics from user-provided text.

Features

  • Extracts key insights, vulnerabilities, and recommendations from security-related text.
  • Supports custom LLM instances for flexible integration.
  • Uses ChatLLM7 by default (from langchain_llm7).
  • Free tier rate limits are sufficient for most use cases.

Installation

pip install secsummarize

Usage

Basic Usage

from secsummarize import secsummarize

user_input = "Your security-related text here."
response = secsummarize(user_input)
print(response)

Using a Custom LLM

OpenAI

from langchain_openai import ChatOpenAI
from secsummarize import secsummarize

llm = ChatOpenAI()
response = secsummarize(user_input, llm=llm)
print(response)

Anthropic

from langchain_anthropic import ChatAnthropic
from secsummarize import secsummarize

llm = ChatAnthropic()
response = secsummarize(user_input, llm=llm)
print(response)

Google

from langchain_google_genai import ChatGoogleGenerativeAI
from secsummarize import secsummarize

llm = ChatGoogleGenerativeAI()
response = secsummarize(user_input, llm=llm)
print(response)

Using an API Key

from secsummarize import secsummarize

user_input = "Your security-related text here."
api_key = "your_api_key_here"
response = secsummarize(user_input, api_key=api_key)
print(response)

Parameters

  • user_input (str): The user input text to process.
  • llm (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default ChatLLM7 will be used.
  • api_key (Optional[str]): The API key for LLM7. If not provided, the environment variable LLM7_API_KEY will be used.

Getting an API Key

You can get a free API key by registering at LLM7.

Issues

If you encounter any issues, please report them on the GitHub issues page.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

secsummarize-2025.12.20202849.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

secsummarize-2025.12.20202849-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file secsummarize-2025.12.20202849.tar.gz.

File metadata

  • Download URL: secsummarize-2025.12.20202849.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for secsummarize-2025.12.20202849.tar.gz
Algorithm Hash digest
SHA256 4abf32b855f5f6b29e37d0e05cec69c77b59eae7bf1438726e4a79b99c511103
MD5 b0a2e1c4e51fc6cf9ade823ea9d4a258
BLAKE2b-256 c5657a4eff3505ac4e6e485d317ed86139288be22a13e29cda156c13a34c5560

See more details on using hashes here.

File details

Details for the file secsummarize-2025.12.20202849-py3-none-any.whl.

File metadata

File hashes

Hashes for secsummarize-2025.12.20202849-py3-none-any.whl
Algorithm Hash digest
SHA256 202de1a8baea42f63000968cdf2d55a7535d511344539a65f530f2d96a0c0ae1
MD5 f0ac967ef1c5baba9a7c49d16578d1ac
BLAKE2b-256 e7b506714cf97d8ff62bfbbf3a489ab2232e3be9e351ea7410e6cee99b25285b

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