MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / get_factory

Function get_factory

qrcode/console_scripts.py:144–149  ·  view source on GitHub ↗
(module: str)

Source from the content-addressed store, hash-verified

142
143
144def get_factory(module: str) -> type[BaseImage]:
145 if "." not in module:
146 raise ValueError("The image factory is not a full python path")
147 module, name = module.rsplit(".", 1)
148 imp = __import__(module, {}, {}, [name])
149 return getattr(imp, name)
150
151
152def get_drawer_help() -> str:

Callers 2

mainFunction · 0.85
get_drawer_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected