httk.core.register¶
Attributes¶
Functions¶
|
Register a loader under one or more file |
|
|
|
|
|
Register an |
|
Module Contents¶
- httk.core.register.register_loader(*, name: str, loader: str, extensions: tuple[str, Ellipsis] = (), filenames: tuple[str, Ellipsis] = ()) None[source]¶
Register a loader under one or more file
extensionsand/orfilenames.extensionsare matched (case-insensitively) against a file’s suffix, e.g.".cif".filenamesare exact basenames matched (case-insensitively) against a file’s name with any recognized compression suffix stripped, e.g."POSCAR"matchesPOSCAR,poscar, andPOSCAR.bz2.
- httk.core.register.register_entry_provider(*, name: str, factory: str) None[source]¶
Register an
EntryProviderfactory undername.factoryis a lazy"module:callable"reference to a callable that constructs a provider (providers need data, so applications call the factory themselves; the registry only records how to reach it). This mirrorsregister_loader.