Skip to main content

Factofiction Analyzer

PyPI version License: MIT Downloads LinkedIn

Overview

Factofiction Analyzer is a Python package that helps users distinguish between factual information and imaginative interpretations. It takes user-provided text as input, analyzes and structures the content using advanced language models, and identifies and separates factual statements from imaginative or speculative ones.

Installation

pip install factofiction_analyzer

Usage

Usage example:

from factofiction_analyzer import factofiction_analyzer

response = factofiction_analyzer(user_input="The cat sat on the mat.")

Input parameters:

  • user_input: The user input text to process (str)
  • llm: The langchain LLM instance to use (Optional[BaseChatModel]). If not provided, the default ChatLLM7 will be used.
  • api_key: The API key for LLM7 (Optional[str]). If not provided, the LLM7 free tier will be used.

Note: If you want to use a custom LLM instance, you can pass it as an argument like this:

from langchain_openai import ChatOpenAI
from factofiction_analyzer import factofiction_analyzer

llm = ChatOpenAI()
response = factofiction_analyzer(user_input="The cat sat on the mat.", llm=llm)

Supported LLMs

The package uses ChatLLM7 from langchain_llm7 by default. You can use other LLMs by passing your own instance:

  • OpenAI: langchain_openai.ChatOpenAI
  • Anthropic: langchain_anthropic.ChatAnthropic
  • Google Generative AI: langchain_google_genai.ChatGoogleGenerativeAI

API Key

If you need higher rate limits for LLM7, you can set the LLM7_API_KEY environment variable or pass your API key directly:

factofiction_analyzer(user_input="The cat sat on the mat.", api_key="your_api_key")

You can obtain a free API key by registering at https://token.llm7.io/

GitHub Issues

Report any issues or bugs to: https://github.com/your-github-nickname/factofiction-analyzer/issues

Author

Written by Eugene Evstafev (hi@euegne.plus)

Acknowledgement

This package uses the llmatch-messages package for consistent output formatting.

Metadata

Release files for factofiction-analyzer 2025.12.21084430

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for factofiction-analyzer 2025.12.21084430
File Size Uploaded Provenance Actions
factofiction_analyzer-2025.12.21084430.tar.gz 4.5 kB Without provenance Details for factofiction_analyzer-2025.12.21084430.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for factofiction-analyzer 2025.12.21084430
File Interpreter ABI Platform Actions
factofiction_analyzer-2025.12.21084430-py3-none-any.whl Python 3 none any Details for factofiction_analyzer-2025.12.21084430-py3-none-any.whl

Total release size: 9.7 kB

Release files / factofiction_analyzer-2025.12.21084430.tar.gz

Download URL factofiction_analyzer-2025.12.21084430.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4e3b05b2918f3df01311c71df4ba41443ffcf7b9597364e6919a3e6b736ea76b
BLAKE2b-256 checksum
How to use checksums
2561e10a7c0cdc07e8075417571d81f1b9db5a06f7a35f634f726af7c2e29b90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / factofiction_analyzer-2025.12.21084430-py3-none-any.whl

Download URL factofiction_analyzer-2025.12.21084430-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfb4c1904a5089c26d485a49c11f97626a57448b0cc1bd8f2016aca1a2a25a62
BLAKE2b-256 checksum
How to use checksums
2a44522ad35a1b4e4091b230d8e5e6e05fd4ef058203de91b1525effb9da1150
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Security for factofiction-analyzer 2025.12.21084430

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page