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
Metadata
Release files for fraudincident-extractor 2025.12.20201423
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fraudincident_extractor-2025.12.20201423.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fraudincident_extractor-2025.12.20201423-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / fraudincident_extractor-2025.12.20201423.tar.gz
| Download URL | fraudincident_extractor-2025.12.20201423.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd096377bbc87643bacf173e24c0e2df1df0173d263fa0f3f648abb419d2d93c
|
|
BLAKE2b-256 checksum How to use checksums |
d451ba3c3164f1d8bcf307151b96d8507e84e04fbf71f4fef3de92cd91e9e330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / fraudincident_extractor-2025.12.20201423-py3-none-any.whl
| Download URL | fraudincident_extractor-2025.12.20201423-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d5776a5e32a0feff32dedd2481f7629a9ec6f0c7874d07ffa3dc0cb18c38013
|
|
BLAKE2b-256 checksum How to use checksums |
91ab141864166d7269271134d02b57ae37821600399f9930dd309d02f98e36d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|