Skip to main content

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

PyPI version License: MIT Downloads LinkedIn

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fraudincident_extractor-2025.12.20201423.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file fraudincident_extractor-2025.12.20201423.tar.gz.

File metadata

File hashes

Hashes for fraudincident_extractor-2025.12.20201423.tar.gz
Algorithm Hash digest
SHA256 fd096377bbc87643bacf173e24c0e2df1df0173d263fa0f3f648abb419d2d93c
MD5 5d3083226bdcf06bef0b5ef999b472e4
BLAKE2b-256 d451ba3c3164f1d8bcf307151b96d8507e84e04fbf71f4fef3de92cd91e9e330

See more details on using hashes here.

File details

Details for the file fraudincident_extractor-2025.12.20201423-py3-none-any.whl.

File metadata

File hashes

Hashes for fraudincident_extractor-2025.12.20201423-py3-none-any.whl
Algorithm Hash digest
SHA256 5d5776a5e32a0feff32dedd2481f7629a9ec6f0c7874d07ffa3dc0cb18c38013
MD5 d77f607c19a22c130d3f7e8fa35b02e7
BLAKE2b-256 91ab141864166d7269271134d02b57ae37821600399f9930dd309d02f98e36d8

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