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
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)
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 variableLLM7_API_KEYwill 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
- Eugene Evstafev - LinkedIn
- Email: hi@eugene.plus
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4abf32b855f5f6b29e37d0e05cec69c77b59eae7bf1438726e4a79b99c511103
|
|
| MD5 |
b0a2e1c4e51fc6cf9ade823ea9d4a258
|
|
| BLAKE2b-256 |
c5657a4eff3505ac4e6e485d317ed86139288be22a13e29cda156c13a34c5560
|
File details
Details for the file secsummarize-2025.12.20202849-py3-none-any.whl.
File metadata
- Download URL: secsummarize-2025.12.20202849-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202de1a8baea42f63000968cdf2d55a7535d511344539a65f530f2d96a0c0ae1
|
|
| MD5 |
f0ac967ef1c5baba9a7c49d16578d1ac
|
|
| BLAKE2b-256 |
e7b506714cf97d8ff62bfbbf3a489ab2232e3be9e351ea7410e6cee99b25285b
|