Package flumotion :: Package common :: Module bundle
[hide private]

Module bundle

source code

bundles of files used to implement caching over the network

Classes [hide private]
  BundledFile
I represent one file as managed by a bundler.
  Bundle
I am a bundle of files, represented by a zip file and md5sum.
  Unbundler
I unbundle bundles by unpacking them in the given directory under directories with the bundle's md5sum.
  Bundler
I bundle files into a bundle so they can be cached remotely easily.
  BundlerBasket
I manage bundlers that are registered through me.
  MergedBundler
I am a bundler, with the extension that I can also bundle other bundlers.
Functions [hide private]
 
makeBundleFromLoadedModules(outfile, outreg, *prefixes)
Make a bundle from a subset of all loaded modules, also writing out a registry file that can apply to that subset of the global registry.
source code
Function Details [hide private]

makeBundleFromLoadedModules(outfile, outreg, *prefixes)

source code 

Make a bundle from a subset of all loaded modules, also writing out a registry file that can apply to that subset of the global registry. Suitable for use as a FLU_ATEXIT handler.

Parameters:
  • outfile (str) - The path to which a zip file will be written.
  • outreg (str) - The path to which a registry file will be written.
  • prefixes (list of str) - A list of prefixes to which to limit the export. If not given, package up all modules. For example, "flumotion" would limit the output to modules that start with "flumotion".