hflags

Extended Google Commandline Flags Module
Download

hflags Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Publisher Name:
  • Andy Smith
  • Publisher web site:
  • http://anarkystic.com

hflags Tags


hflags Description

Extended Google Commandline Flags Module hflags is a small library that wraps and extends gflags, offering some additional features that are useful in a system that deals with dynamic module loading, usually to allow pluggability.Example: import hflags hflags.DECLARE('foo_flag', 'some.module.foo')Will ensure that foo_flag in some.module.foo is available in this module.Automatic UndefokIn a pluggable system it can be very difficult to know all the modules thatwill be loaded at the beginning of execution, especially considering manypluggable systems will be using a flag to determine which modules get loaded.This modification allows the user to provide values for flags that are notknown at initial parsing time, but will be reparsed once new flags are defined,allowing you to use flags for modules that will be loaded dynamically.Why Not Patch gflags?python-gflags is explicitly trying to be compatible with the C++ version ofgflags and these features don't really apply to a common C++ system. I wouldlove to integrate these features and stop maintaining this library but it seemsunlikely at this point. Requirements: · Python


hflags Related Software