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

# FileFormat

## Overview

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

FileFormat can detect a file's format from a stream and file name, and can create matching load and save option objects.

This class declares 9 methods for FileFormat objects in Python programs.
Available methods include: `FBX7400ASCII`, `GLTF2`, `MICROSOFT_3MF_FORMAT`, `WAVEFRONT_OBJ`, `__init__`, `create_load_options`, `create_save_options`, `detect`, `get_format_by_extension`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: `can_export`, `can_import`, `content_type`, `extension`, `extensions`, `file_format_type`, and 2 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `extension` | `str` | Read | Gets the extension. |
| `extensions` | `List[str]` | Read | Gets the extensions. |
| `content_type` | `str` | Read | Gets the content type. |
| `file_format_type` | - | Read | Gets the file format type. |
| `version` | `str` | Read | Gets the version. |
| `can_export` | `bool` | Read | Gets the can export. |
| `can_import` | `bool` | Read | Gets the can import. |
| `formats` | `List['FileFormat']` | Read | Gets the formats. |

## Methods

| Signature | Description |
|-----------|-------------|
| `WAVEFRONT_OBJ()` | Calls WAVEFRONT_OBJ on this FileFormat instance. |
| `GLTF2()` | Calls GLTF2 on this FileFormat instance. |
| `MICROSOFT_3MF_FORMAT()` | Calls MICROSOFT_3MF_FORMAT on this FileFormat instance. |
| `FBX7400ASCII()` | Calls FBX7400ASCII on this FileFormat instance. |
| `__init__()` | Calls __init__ on this FileFormat instance. |
| `detect(stream: 'io._IOBase', file_name: Optional[str])` → `Optional['FileFormat']` | Calls detect(stream, file_name) on this FileFormat instance. |
| `get_format_by_extension(extension_name: str)` → `Optional['FileFormat']` | Calls get_format_by_extension(extension_name) on this FileFormat instance. |
| `create_load_options()` → `'LoadOptions'` | Calls create_load_options on this FileFormat instance. |
| `create_save_options()` → `'SaveOptions'` | Calls create_save_options on this FileFormat instance. |

## See Also

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