Skip to main content

PyPI version License: MIT Downloads LinkedIn

etoile_pixtral_safety

etoile_pixtral_safety is a Python package developed as part of the Mistral Étoile project during the London Hackathon. This package provides tools for detecting various types of potentially harmful content in images using advanced machine learning models, tailored specifically for online safety and content monitoring.

Installation

To install etoile_pixtral_safety, use pip:

pip install etoile_pixtral_safety

Usage

This package contains functions to check for harmful content and locate specific sections within images that may contain undesirable elements. It utilizes LangChain and HuggingFace technologies for deep learning inference.

Setting Up the Model

from langchain_mistralai import ChatMistralAI

CVISION_MODEL = "pixtral-12b-2409"

llm = ChatMistralAI(
    model=CVISION_MODEL,
    temperature=0,
    max_retries=2,
)

Checking for Harmful Content

from etoile_pixtral_safety import check_image

# `display_url` should be a string containing the URL to the image you want to check.
display_url = "https://example.com/path/to/image.jpg"
result = check_image(llm, display_url, verbose=True)
print(result)

Finding Location of Harmful Content

from etoile_pixtral_safety import find_location

result = find_location(llm, display_url, verbose=True)
print(result)

Features

  • Detects a wide range of harmful content in images including explicit material, violence, and other undesirable elements.
  • Provides precise location data for identified content within images.
  • Integrates seamlessly with state-of-the-art machine learning platforms.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

etoile_pixtral_safety is licensed under the MIT License.

Acknowledgements

This package was developed by Evgenii (Eugene) Evstafev as part of the comprehensive suite of tools for the Mistral Étoile project at the London Hackathon. More details about the project can be found on the GitHub repository.

Metadata

Release files for etoile-pixtral-safety 2025.5.160702

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

Source distribution (sdist)

Source distribution for etoile-pixtral-safety 2025.5.160702
File Size Uploaded
etoile_pixtral_safety-2025.5.160702.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etoile-pixtral-safety 2025.5.160702
File Interpreter ABI Platform
etoile_pixtral_safety-2025.5.160702-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / etoile_pixtral_safety-2025.5.160702.tar.gz

Download URL etoile_pixtral_safety-2025.5.160702.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5b17e2f2bca2fec16ae1eaae43c005c782d75c2da2f39754123bb1471955e3fb
BLAKE2b-256 checksum
How to use checksums
824ca130ead5e78a8c3a08f7e6d128553608cf541f3027d250abe1b66982d17a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / etoile_pixtral_safety-2025.5.160702-py3-none-any.whl

Download URL etoile_pixtral_safety-2025.5.160702-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfd99cb05959a6e3b79461d4dee2f08dba43fb252ecbc11a8faf4ddaccb03287
BLAKE2b-256 checksum
How to use checksums
5d5e55d71d485a027880d3429391da16b4348659daeed5ca67749a7cd65101fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.5.160702 This release

2 release files

0.0.1

2 release files

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