Source code for openschemas.main

# Copyright (c) 2018, Vanessa Sochat All rights reserved.
# See the LICENSE in the main repository at:
#    https://www.github.com/openschemas/openschemas-python

[docs]def get_client(quiet=False, debug=False): '''return the helper function client for OpenSchemas. This is a client that spans the different modules (papers, badges, etc.) for interaction with functions from one interface. Parameters ========== quiet: if True, suppress most output about the client debug: turn on debugging mode ''' from openschemas.main.base import Client from openschemas.main.validate import ( SpecValidator, BasicValidator ) Client.quiet = quiet Client.debug = debug Client.SpecValidator = SpecValidator Client.BasicValidator = BasicValidator # Initialize cli = Client() return cli
Client = get_client()