fnmatch
Stdlib — OS/FilePython 2.0+Intermediate
Filename matching with shell-style wildcards
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import fnmatch print(f"Module: fnmatch") print(f"Contents: {dir(fnmatch)[:10]}")
The fnmatch module is part of Python's standard library. Filename matching with shell-style wildcards.
Try in PlaygroundTags
stdlibfile-iosystem