Lang: Recognized Source Languages#
- class arch.base.Lang.Lang(*values)#
The source languages recognized by the architectonic, keyed by canonical file suffix.
- property prefix#
Return the lowercase enum name, used to prefix language-specific regex keys.
- property suffix#
Return the canonical file suffix for this language.
- property fastglob#
Return a suffix pattern matching every file extension used by this language.
- classmethod read_path(path)#
Read a language from a file path’s suffix, returning None when unrecognized.
- classmethod read(value)#
Read a language from a string, int, list, or Path, stripping dots and spaces first.