unifying many packages under one name

Eric S. Johansson esj at harvee.org
Fri Aug 24 00:17:34 EDT 2007


I have a collection of packages and I want to put them under single unifying 
name.  my goal is to reduce namespace pollution and make all these packages 
accessible as 'import vvv.aaa'. In more detail, if I have packages 'aaa' and 
'bbb', what do I do to put those packages under unifying name such as 'vvv'? 
the only way I can see to do it is to create 'vvv' as a directory with its own 
__init__.py but I'm not sure that were work right either.


thanks.




More information about the Python-list mailing list