I don’t believe theres an official sanctioned way to do that. Historically we’ve only had people with factories at the repository level instead of the package level.
Encourage you to file an issue with some context on your use case.
In the mean time, I bet there is some whacky python shenanigans you can do by running code at module definition time that tacks on properties to the instantiating module.
setattr(sys.modules[__name__], 'repo_name', repo)
. Not “clean” but might work.