--- id: fatfs-ng version: "0.1.15" license: unclear license_treatment: permissive maintenance: aging --- # fatfs-ng — Enhanced Python wrapper around ChaN's FatFS library - Fork of fatfs-python with extended features. License: permissive · Maintenance: aging · Downloads: 830.5K/mo ## What it is and what it does fatfs-ng is a Python wrapper around ChaN's FatFS C library that lets you create and manipulate FAT filesystems entirely in memory or on disk without needing actual hardware. It's a fork of fatfs-python with extended features: directory traversal via walk(), file stat and existence checks, bulk copy operations, and full support for ESP32 wear-leveling filesystem images. The package ships as a compiled extension (Cython) across Python 3.8–3.14 on macOS, Linux, Windows, and ARM platforms. You use it to build FAT filesystem images for embedded devices (especially ESP32), test filesystem logic in unit tests without real storage, or extract and inspect FAT images from devices. It has no runtime dependencies and integrates directly with Python's file I/O patterns—you can mount a filesystem, write or read files as if they were on disk, then unmount and serialize the whole thing to a binary blob for flashing to hardware. Use it for: - Create and populate ESP32 FAT filesystem images for PlatformIO builds without touching actual hardware. - Extract and inspect FAT filesystem images downloaded from ESP32 devices for debugging or backup. - Write unit tests that exercise filesystem logic (mkdir, write, delete, traverse) in memory without I/O overhead. - Convert directory trees to FAT filesystem binaries for embedded systems with minimal storage. - Validate FAT filesystem structure and contents before deployment to production devices. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. fatfs-ng wraps ChaN's FatFS library to create, mount, and manipulate FAT filesystems in memory or on disk, with extended directory traversal, file operations, and ESP32 wear-leveling support. Yes, if you work with ESP32 or embedded FAT filesystems. The extended feature set (walk, stat, bulk copy) and ESP32 wear-leveling support make it substantially more usable than the original fatfs-python. Install friction is moderate but manageable; no runtime dependencies; MIT license is clean. Maintenance is aging (206 days since last release) but the repo is active and the package is marked Beta—suitable for production use if you accept that updates may be infrequent. ## Install pip install fatfs-ng uv add fatfs-ng poetry add fatfs-ng ## Installing fatfs-ng Before you install: Medium install friction due to compiled wheels across many platforms (Python 3.10–3.14, macOS, Linux, Windows, ARM). Last release 206 days ago; repository active but aging maintenance signal. License in practice: MIT license (permissive); no restrictions on commercial or private use, modification, or redistribution. Quickstart: pip install fatfs-ng from fatfs import RamDisk, create_extended_partition storage = bytearray(1024 * 1024) disk = RamDisk(storage, sector_size=512) partition = create_extended_partition(disk) partition.mkfs() partition.mount() partition.write_file("/test.txt", b"Hello") partition.unmount() Requires Python 3.8 or later; compiled extension module requires platform-specific wheel. Verify before relying: - Real-world performance and stability with large FAT filesystems or high-frequency I/O. - Completeness of ESP32 wear-leveling implementation relative to official Arduino FFat library. - Whether 'aging' maintenance status reflects active development pauses or stable maturity. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: medium - Maintenance: aging - Downloads: 830.5K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags fat filesystem python, fatfs wrapper, esp32 filesystem image, in-memory fat disk, fatfs mount read write, embedded filesystem tools, platformio fatfs, embedded-systems, esp32, filesystem-tools [View on SkillFed](https://skillfed.io/packages/fatfs-ng) · [View on PyPI](https://pypi.org/project/fatfs-ng/)