MCPcopy Create free account

hub / github.com/CFSworks/limeade / functions

Functions26 in github.com/CFSworks/limeade

↓ 2 callersFunctionmutate_functions
Given two namespaces (dicts), look for matching functions and mutate the old functions to match the new ones. The old function object is
limeade/mutating.py:29
↓ 2 callersFunctionscan_one
Scan the single `module` to see if it can be refreshed.
limeade/scanning.py:33
↓ 1 callersMethod__hook
(cls)
limeade/mutating.py:151
↓ 1 callersMethod__mutate
Attempt to find a class to mutate and mutate it. Returns the original class, or None if nothing suitable was found.
limeade/mutating.py:91
↓ 1 callersMethod__try_mutate
(cls, func, name, bases, kwargs)
limeade/mutating.py:121
↓ 1 callersMethod__unhook
(cls)
limeade/mutating.py:158
↓ 1 callersFunctionmutate_class
Mutate a given class (`cls`) with the new namespace and bases.
limeade/mutating.py:61
↓ 1 callersFunctionscan
Scan all modules in `modules` (or in `sys.modules`) and return an iterable of modules believed to be refreshable.
limeade/scanning.py:21
Method__build_class
(cls, func, name, *bases, **kwargs)
limeade/mutating.py:143
Method__enter__
(self)
limeade/refreshing.py:87
Method__enter__
(self)
limeade/mutating.py:106
Method__enter__
(self)
tests/__init__.py:12
Method__exit__
(self, exc_type, exc_val, exc_tb)
limeade/refreshing.py:91
Method__exit__
(self, exc_type, exc_val, exc_tb)
limeade/mutating.py:112
Method__exit__
(self, exc_type, exc_val, exc_tb)
tests/__init__.py:15
Method__import_hook
(self, fullname, *args)
limeade/refreshing.py:60
Method__init__
(self, modules, mutate)
limeade/refreshing.py:55
Method__init__
(self, old_classes)
limeade/mutating.py:88
Method__init__
(self, path)
tests/__init__.py:9
Function_source_file_helper
Determine if a module, loaded from a source file via SourceFileLoader, has had its file modified since loading.
limeade/_scan_helpers.py:14
Functiondecorator
(func)
limeade/scanning.py:65
Functionfunc_filter
(x)
limeade/mutating.py:39
Functionrefresh
Refresh `batch` (or None to scan) of modules.
limeade/refreshing.py:27
Functionregister_helper
Decorate a function to serve as a scan helper for loaders of a type.
limeade/scanning.py:60
Functiontest_refresh_mutate
(tmpdir)
tests/test_refreshing.py:19
Functiontest_source
(tmpdir)
tests/test_scanning.py:8