Incident Summary Parser Package
This Python package provides a simple and reliable way to analyze and extract structured incident summaries from unstructured text reports or news snippets. It leverages large language models (LLMs) to interpret incident descriptions and outputs standardized information, making it easy to integrate incident analysis into your workflow or applications.
Installation
Install the package via pip:
pip install incident_summary_parser
Usage
Import and utilize the incident_summary_parser function as follows:
from incident_summary_parser import incident_summary_parser
response = incident_summary_parser(
user_input="Your incident report text here",
api_key="your_llm7_api_key", # optional if set via environment variable
llm=None # optional, can pass your own LLM instance
)
print(response)
Parameters
-
user_input(str): The incident report or news snippet you want to analyze. -
llm(Optional[BaseChatModel]): An optional language model instance conforming tolangchain's interface. If not provided, the function defaults to usingChatLLM7. -
api_key(Optional[str]): Your API key for the LLM7 service. Can also be set via the environment variableLLM7_API_KEY.
Supporting Custom LLMs
You can pass your own LLM implementations, such as OpenAI, Anthropic, or Google's Generative AI, to the function for flexibility, for example:
from langchain_openai import ChatOpenAI
from incident_summary_parser import incident_summary_parser
llm = ChatOpenAI()
response = incident_summary_parser(
user_input="Sample incident report",
llm=llm
)
Or with other providers:
from langchain_anthropic import ChatAnthropic
from incident_summary_parser import incident_summary_parser
llm = ChatAnthropic()
response = incident_summary_parser(
user_input="Sample incident report",
llm=llm
)
Notes
- The package uses
ChatLLM7fromlangchain_llm7(see PyPI) by default. - Default rate limits are suitable for most use cases, but you can increase limits by obtaining your own API key.
- You can register for a free API key at https://token.llm7.io/.
Contributing
Please report issues or contribute improvements via the GitHub repository: https://github.....
Author
- Name: Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell
Metadata
Release files for incident-summary-parser 2025.12.21135341
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| incident_summary_parser-2025.12.21135341.tar.gz | 4.0 kB | Without provenance | Details for incident_summary_parser-2025.12.21135341.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| incident_summary_parser-2025.12.21135341-py3-none-any.whl | Python 3 | none | any | Details for incident_summary_parser-2025.12.21135341-py3-none-any.whl |
Total release size: 8.7 kB
Release files / incident_summary_parser-2025.12.21135341.tar.gz
| Download URL | incident_summary_parser-2025.12.21135341.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d3f64ef57c3551c3722d6b21fc47d279ae6c881606f105fa7b46d48dbacbf61
|
|
BLAKE2b-256 checksum How to use checksums |
2c210d6eb94f078f32f217a2e851ddc666fd3581cdf294e9fffede1a6390cb56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / incident_summary_parser-2025.12.21135341-py3-none-any.whl
| Download URL | incident_summary_parser-2025.12.21135341-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3078781bc135e2c8be712a1cd0030f5e1cfc6a316d6d5b3f8addd60f566a26b6
|
|
BLAKE2b-256 checksum How to use checksums |
840b9bbcff0ba1041078b50c534bf129de9b63dbf22f190702e7a3806bb7d041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for incident-summary-parser 2025.12.21135341
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.