Skip to main content

Advanced Multimodal AI Library for Fake News & Psyops Detection

Project description

Trust Sense

Advanced Multimodal AI Library for Fake News & Psyops Detection

PyPI version Python 3.8+ License: MIT

A powerful Python library for detecting fake news, psychological operations, propaganda, and manipulated media.

🚀 Quick Start

from trust_sense import detect_fake_news, detect_psyops

# Detect fake news
is_fake = detect_fake_news("Breaking: Scientists discover cure for aging!")
print(f"Fake news detected: {is_fake}")

# Detect psyops/manipulation
is_psyops = detect_psyops("URGENT!!! SHARE THIS NOW OR YOU'LL REGRET IT!!!")
print(f"Psyops detected: {is_psyops}")

📦 Installation

# Basic installation
pip install trust-sense

# Full features with ML models
pip install trust-sense[full]

# API server support
pip install trust-sense[api]

# Development tools
pip install trust-sense[dev]

🎯 Features

  • Text Analysis: Detect fake news, manipulation, and propaganda
  • Audio Analysis: Emotion detection and credibility assessment
  • Video Analysis: Deepfake detection and facial analysis
  • Multimodal: Combined analysis across multiple data types
  • Lazy Loading: Optional dependencies loaded only when needed
  • Graceful Fallback: Works without heavy ML models

💡 Usage Examples

Quick Detection Functions

from trust_sense import detect_fake_news, detect_psyops, analyze_trust

# Simple fake news detection
is_fake = detect_fake_news("Breaking: UFO lands in Times Square!")

# Psychological operations detection
is_psyops = detect_psyops("SHARE THIS OR THEY'LL HIDE THE TRUTH!!!")

# Comprehensive analysis
analysis = analyze_trust("Some suspicious content...")
print(f"Risk Level: {analysis['risk_level']}")

Advanced Usage with Detector Classes

from trust_sense import FakeNewsDetector, PsyopsDetector, TrustAnalyzer

# Fake news detector
detector = FakeNewsDetector()
result = detector.analyze("Article text...")
print(f"Confidence: {result.confidence:.2%}")
print(f"Risk Level: {result.risk_level}")

# Psyops detector
psyops = PsyopsDetector()
result = psyops.analyze("Manipulative content...")
print(f"Techniques: {result.techniques}")

API Server

from trust_sense import TrustAPI

# Start API server
api = TrustAPI(host='0.0.0.0', port=8000)
api.run()

# Visit: http://localhost:8000/docs for interactive API docs

📚 Documentation

For detailed API reference and advanced usage, see:

  • Package documentation in docs/trust_sense_documentation.tex (LaTeX source)
  • Examples in trust_sense/examples/ directory
  • API server documentation at http://localhost:8000/docs when running the server

🧪 Testing

# Install development dependencies
pip install trust-sense[dev]

# Run tests
pytest

# Run with coverage
pytest --cov=trust_sense

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

MIT License - see LICENSE file

�‍💻 Author

Created by Codisa

�📞 Support


Version: 0.1.0
Python: >= 3.8

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

trust_sense-0.1.1.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

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

trust_sense-0.1.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file trust_sense-0.1.1.tar.gz.

File metadata

  • Download URL: trust_sense-0.1.1.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for trust_sense-0.1.1.tar.gz
Algorithm Hash digest
SHA256 daca7f01035d2404894f83a0d8affcdf7e05a014f645701e54792abac6ef1b33
MD5 8b42fd391ffa4a1453b634773dbebbf0
BLAKE2b-256 36a598a7ee6c28085a49ca8e26f122fd282ffe85bb2152943f683d688ec91b4b

See more details on using hashes here.

File details

Details for the file trust_sense-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: trust_sense-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for trust_sense-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02b181b30b0f19f44f27ae51923d5cc0ffaaa6e700d4862c8e123a48b265bcce
MD5 be8165876d75dd997efc7142f70374e4
BLAKE2b-256 fbbaf20bab269d9112673ff9e2969aed4553d77fbe31e0681eda9c4a23a9325e

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