A Python micro-library to create stubs for non-existing modules, enabling testing of import-dependent code. Current version 0.1, no active development observed.
pip install surrogateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates stubs for modules that don't exist, allowing import without error.
Call surrogate.replace('module_name') before any import of that module.If you need attributes, assign them manually after creating the stub.
Ensure you are using version 0.1 and call surrogate.replace().
Ensure surrogate.replace() is called before any imports of the module.
No dependency data recorded yet.