@staticmethod
    def new_from_template(filename):
        import opus
        opus_dir = opus.__path__[0]
        configfile = os.path.join(opus_dir, "lib", "conf", "default_settings.json")
        config = OpusConfig(configfile)
        config._filename = filename
        config["SECRET_KEY"]  = ''.join([random.choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for _ in range(50)])
        return config
Returns a new OpusConfig object pre-seeded with defaults, and a
dataset/ETHPy150Open bmbouter/Opus/opus/lib/conf/__init__.py/OpusConfig.new_from_template