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

# StlFormatDetector

## Overview

`StlFormatDetector` is a class in Aspose.3D FOSS for Python.
Inherits from: `FormatDetector`.

StlFormatDetector.detect returns the detected FileFormat for a stream (optional file name) or None.

This class provides 2 methods for working with StlFormatDetector objects in Python programs.
Available methods include: `__init__`, `detect`.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `detect(stream: io.IOBase, file_name: str)` → `Optional['FileFormat']` | Returns the detected FileFormat for a stream (optional file name) or None |
| `__init__()` |  |

## See Also

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