---
Product: Aspose.3D
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/python/formatdetector
---

# FormatDetector

## Overview

`FormatDetector` is a class in Aspose.3D FOSS for Python.

FormatDetector.detect detects the file format of the provided stream, using the optional file name, and returns a FileFormat.

This class declares 2 methods for FormatDetector objects in Python programs.
Available methods include: `__init__`, `detect`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this FormatDetector instance. |
| `detect(stream, file_name: str)` → `'FileFormat'` | **Not implemented in the FOSS edition — throws at runtime.** Detects the file format of the provided stream, using the optional file name, and returns a FileFormat |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)