Skip to content

0.71.0

Choose a tag to compare

@antonrh antonrh released this 02 Feb 08:58
· 119 commits to main since this release

What's Changed

Circular import detection during module loading

Detects when a module is being imported while already in the import chain, raises RuntimeError with import chain details and solutions

Recursive scan() detection

Detects when scan() is called recursively (e.g., scanned module triggers container creation via lazy proxy), tracks which packages are currently being scanned

Relative package paths

Support Python-style relative imports in scan():

container.scan(".")                      # Current package                                                                                                                       
container.scan([".services", ".repos"])  # Submodules                                                                                                                            
container.scan(".", ignore=[".api"])     # Relative ignore                                                                                                                       
container.scan("..")                     # Parent package                                                                                                                        
container.scan("..sibling")              # Sibling package 

Full Changelog: 0.70.2...0.71.0