A new package is designed to analyze user-submitted incident descriptions related to financial frauds, scams, or cybersecurity breaches. It processes the input text to extract structured details such
Project description
Fraud Incident Extractor
Overview
A package designed to analyze user-submitted incident descriptions related to financial frauds, scams, or cybersecurity breaches. It processes the input text to extract structured details such as involved parties, amounts lost, scam types, and brief summaries.
Installation
pip install fraudincident_extractor
Usage
from fraudincident_extractor import fraudincident_extractor
user_input = "I lost $100 to a phishing scam. The scammer called me and asked for my bank details."
response = fraudincident_extractor(
user_input=user_input,
api_key="your_api_key",
llm=ChatAnthropic()
)
print(response)
You can also use your own LLM instance from langchain by passing it like this:
from langchain_openai import ChatOpenAI
from fraudincident_extractor import fraudincident_extractor
llm = ChatOpenAI()
response = fraudincident_extractor(user_input=user_input, llm=llm)
or use anthropic:
from langchain_anthropic import ChatAnthropic
from fraudincident_extractor import fraudincident_extractor
llm = ChatAnthropic()
response = fraudincident_extractor(user_input=user_input, llm=llm)
or googl:
from langchain_google_genai import ChatGoogleGenerativeAI
from fraudincident_extractor import fraudincident_extractor
llm = ChatGoogleGenerativeAI()
response = fraudincident_extractor(user_input=user_input, llm=llm)
You can get a free API key for LLM7 by registering at https://token.llm7.io. If you want to use your own API key, you can pass it directly like this:
fraudincident_extractor(user_input=user_input, api_key="your_api_key")
You can also set the API key as an environment variable LLM7_API_KEY.
Contribution and Issues
If you encounter any issues or want to contribute to the package, please submit an issue to the GitHub repository: https://github.com/chigwell/fraud-incident-extractor
Author
Eugene Evstafev (chigwell) hi@euegne.plus
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 fraudincident_extractor-2025.12.20201423.tar.gz.
File metadata
- Download URL: fraudincident_extractor-2025.12.20201423.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd096377bbc87643bacf173e24c0e2df1df0173d263fa0f3f648abb419d2d93c
|
|
| MD5 |
5d3083226bdcf06bef0b5ef999b472e4
|
|
| BLAKE2b-256 |
d451ba3c3164f1d8bcf307151b96d8507e84e04fbf71f4fef3de92cd91e9e330
|
File details
Details for the file fraudincident_extractor-2025.12.20201423-py3-none-any.whl.
File metadata
- Download URL: fraudincident_extractor-2025.12.20201423-py3-none-any.whl
- Upload date:
- Size: 4.4 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 |
5d5776a5e32a0feff32dedd2481f7629a9ec6f0c7874d07ffa3dc0cb18c38013
|
|
| MD5 |
d77f607c19a22c130d3f7e8fa35b02e7
|
|
| BLAKE2b-256 |
91ab141864166d7269271134d02b57ae37821600399f9930dd309d02f98e36d8
|