---
Product: Aspose.Email
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/email/python/header
---

# Header

## Overview

`Header` is a class in Aspose.Email FOSS for Python.

Header record at file offset 0 defining Compound File Binary (CFB) geometry and allocation chain entry points.

Properties: `byte_order`, `difat`, `first_difat_sector_location`, `first_directory_sector_location`, `first_mini_fat_sector_location`, `header_clsid`, and 14 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `sector_size` | `int` | Read | Gets the sector size. |
| `mini_sector_size` | `int` | Read | Gets the mini sector size. |
| `header_signature` | `bytes` | Read | Gets the header signature. |
| `header_clsid` | `bytes` | Read | Gets the header clsid. |
| `minor_version` | `int` | Read | Gets the minor version. |
| `major_version` | `int` | Read | Gets the major version. |
| `byte_order` | `int` | Read | Gets the byte order. |
| `sector_shift` | `int` | Read | Gets the sector shift. |
| `mini_sector_shift` | `int` | Read | Gets the mini sector shift. |
| `reserved` | `bytes` | Read | Gets the reserved. |
| `number_of_directory_sectors` | `int` | Read | Gets the number of directory sectors. |
| `number_of_fat_sectors` | `int` | Read | Gets the number of fat sectors. |
| `first_directory_sector_location` | `SectorNumber` | Read | Gets the first directory sector location. |
| `transaction_signature_number` | `int` | Read | Gets the transaction signature number. |
| `mini_stream_cutoff_size` | `int` | Read | Gets the mini stream cutoff size. |
| `first_mini_fat_sector_location` | `SectorNumber` | Read | Gets the first mini fat sector location. |
| `number_of_mini_fat_sectors` | `int` | Read | Gets the number of mini fat sectors. |
| `first_difat_sector_location` | `SectorNumber` | Read | Gets the first difat sector location. |
| `number_of_difat_sectors` | `int` | Read | Gets the number of difat sectors. |
| `difat` | `List[SectorNumber]` | Read | Gets the difat. |

## Examples

```python
from aspose.email_foss.cfb import CFBReader

with CFBReader.from_file("archive.cfb") as reader:
    h = reader.header
    print(f"sector_size={h.sector_size}")
    print(f"mini_sector_size={h.mini_sector_size}")
    print(f"fat_sectors={h.number_of_fat_sectors}")
```

## See Also

- [Aspose.Email for Python — Enterprise API Reference](https://reference.aspose.com/email/python-net/)