Skip to content

cmdevries/ToolHelperUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToolHelperUtils

This package creates an intentionally broken import interceptor for symbols containing anti-patterns

>>> import tool_helper_utils
>>> import helper
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/chris/Code/ToolHelperUtils/tool_helper_utils/__init__.py", line 20, in find_spec
    return self.find_module(fullname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/ToolHelperUtils/tool_helper_utils/__init__.py", line 16, in find_module
    raise ImportError("stop it")
ImportError: stop it
>>> import tool_helper_utils.foobar.abstract.factory.pattern.best_util_builder_yet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/chris/Code/ToolHelperUtils/tool_helper_utils/__init__.py", line 20, in find_spec
    return self.find_module(fullname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/chris/Code/ToolHelperUtils/tool_helper_utils/__init__.py", line 16, in find_module
    raise ImportError("stop it")
ImportError: stop it

About

Discourging common anti-patterns

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages