Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Return ListComp Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str comprehension NameStore SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return UnaryOpNot CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return BinOpAdd Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad decorator_list Return Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body With Call NameLoad NameLoad NameStore body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return Call NameLoad NameLoad keyword ListComp Dict Str NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str NameLoad Return Call NameLoad NameLoad Call NameLoad GeneratorExp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A __future__ unicode_literals N/A glob N/A os.path N/A simplejson bravado_core.spec Spec build_http_handlers six.moves.urllib parse urlparse api build_swagger_12_endpoints load_schema load_schema model SwaggerSchema spec API_DOCS_FILENAME validate_swagger_schema ResourceListingNotFoundError N/A Exception N/A N/A N/A ApiDeclarationNotFoundError N/A Exception N/A N/A N/A ResourceListingGenerationError N/A Exception N/A N/A N/A find_resource_names N/A N/A api_docs_json N/A N/A N/A N/A N/A N/A N/A api N/A path lstrip / N/A api N/A api_docs_json N/A apis N/A find_resource_paths N/A N/A schema_dir N/A N/A N/A The inverse of :func:`find_resource_names` used to generate
    a resource listing from a directory of swagger api docs.
     not_api_doc_file N/A N/A filename N/A N/A N/A N/A N/A N/A filename endswith API_DOCS_FILENAME N/A not_swagger_dot_json N/A N/A filename N/A N/A N/A N/A N/A N/A N/A N/A os path basename filename swagger.json N/A filename_to_path N/A N/A filename N/A N/A N/A N/A filename _ext N/A N/A N/A os path splitext N/A N/A N/A os path basename filename N/A N/A / filename N/A N/A filenames N/A N/A glob glob N/A N/A {0}/*.json format schema_dir N/A N/A map filename_to_path N/A filter not_swagger_dot_json N/A filter not_api_doc_file N/A sorted filenames N/A build_schema_mapping N/A N/A schema_dir resource_listing N/A N/A N/A Discovers schema file locations and relations.

    :param schema_dir: the directory schema files live inside
    :type schema_dir: string
    :param resource_listing: A swagger resource listing
    :type  resource_listing: dict
    :returns: a mapping from resource name to file path
    :rtype: dict
     resource_name_to_filepath N/A N/A name N/A N/A N/A N/A N/A N/A os path join schema_dir N/A N/A {0}.json format name N/A N/A N/A dict N/A N/A resource N/A resource_name_to_filepath resource N/A resource N/A find_resource_names resource_listing N/A _load_resource_listing N/A N/A resource_listing N/A N/A N/A Load the resource listing from file, handling errors.

    :param resource_listing: path to the api-docs resource listing file
    :type  resource_listing: string
    :returns: contents of the resource listing file
    :rtype: dict
     N/A N/A N/A N/A open resource_listing resource_listing_file N/A N/A N/A N/A simplejson load resource_listing_file N/A N/A N/A IOError N/A N/A N/A ResourceListingNotFoundError N/A N/A No resource listing found at {0}. Note that your json file must be named {1} format resource_listing API_DOCS_FILENAME N/A generate_resource_listing N/A N/A schema_dir listing_base N/A N/A N/A N/A apis listing_base N/A N/A N/A ResourceListingGenerationError N/A N/A {0}/{1} has an `apis` listing. Generating a listing would override this listing. format schema_dir API_DOCS_FILENAME N/A N/A dict listing_base apis N/A N/A path path N/A path N/A find_resource_paths schema_dir N/A get_resource_listing N/A N/A schema_dir should_generate_resource_listing N/A N/A N/A Return the resource listing document.

    :param schema_dir: the directory which contains swagger spec files
    :type  schema_dir: string
    :param should_generate_resource_listing: when True a resource listing will
        be generated from the list of *.json files in the schema_dir. Otherwise
        return the contents of the resource listing file
    :type should_enerate_resource_listing: boolean
    :returns: the contents of a resource listing document
     N/A listing_filename N/A N/A N/A os path join schema_dir API_DOCS_FILENAME N/A resource_listing N/A _load_resource_listing listing_filename N/A N/A should_generate_resource_listing N/A N/A resource_listing N/A N/A generate_resource_listing schema_dir resource_listing N/A compile_swagger_schema N/A N/A schema_dir resource_listing N/A N/A N/A Build a SwaggerSchema from various files.

    :param schema_dir: the directory schema files live inside
    :type schema_dir: string
    :returns: a SwaggerSchema object
     N/A mapping N/A build_schema_mapping schema_dir resource_listing N/A resource_validators N/A ingest_resources mapping schema_dir N/A endpoints N/A list N/A build_swagger_12_endpoints resource_listing mapping N/A N/A SwaggerSchema endpoints resource_validators N/A get_swagger_schema N/A N/A settings N/A N/A N/A Return a :class:`pyramid_swagger.model.SwaggerSchema` constructed from
    the swagger specs in `pyramid_swagger.schema_directory`. If
    `pyramid_swagger.enable_swagger_spec_validation` is enabled the schema
    will be validated before returning it.

    :param settings: a pyramid registry settings with configuration for
        building a swagger schema
    :type settings: dict
    :returns: a :class:`pyramid_swagger.model.SwaggerSchema`
     N/A schema_dir N/A N/A settings get pyramid_swagger.schema_directory api_docs/ N/A resource_listing N/A get_resource_listing schema_dir N/A N/A settings get pyramid_swagger.generate_resource_listing False N/A N/A N/A settings get pyramid_swagger.enable_swagger_spec_validation True N/A N/A N/A validate_swagger_schema schema_dir resource_listing N/A N/A compile_swagger_schema schema_dir resource_listing N/A get_swagger_spec N/A N/A settings N/A N/A N/A Return a :class:`bravado_core.spec.Spec` constructed from
    the swagger specs in `pyramid_swagger.schema_directory`. If
    `pyramid_swagger.enable_swagger_spec_validation` is enabled the schema
    will be validated before returning it.

    :param settings: a pyramid registry settings with configuration for
        building a swagger schema
    :type settings: dict
    :rtype: :class:`bravado_core.spec.Spec`
     N/A schema_dir N/A N/A settings get pyramid_swagger.schema_directory api_docs/ N/A schema_filename N/A N/A settings get pyramid_swagger.schema_file swagger.json N/A schema_path N/A N/A N/A os path join schema_dir schema_filename N/A schema_url N/A N/A urlparse urljoin file: N/A N/A N/A os path abspath schema_path N/A handlers N/A build_http_handlers None N/A file_handler N/A handlers N/A file N/A spec_dict N/A file_handler schema_url N/A N/A N/A Spec from_dict spec_dict config N/A create_bravado_core_config settings origin_url schema_url N/A create_bravado_core_config N/A N/A settings N/A N/A N/A Create a configuration dict for bravado_core based on pyramid_swagger
    settings.

    :param settings: pyramid registry settings with configuration for
        building a swagger schema
    :type settings: dict
    :returns: config dict suitable for passing into
        bravado_core.spec.Spec.from_dict(..)
    :rtype: dict
     N/A config_keys N/A pyramid_swagger.enable_request_validation pyramid_swagger.enable_response_validation pyramid_swagger.enable_swagger_spec_validation pyramid_swagger.use_models pyramid_swagger.user_formats validate_requests validate_responses validate_swagger_spec use_models formats N/A bravado_core_config_defaults N/A use_models False N/A N/A dict bravado_core_config_defaults N/A dict N/A N/A bravado_core_key N/A settings N/A pyramid_swagger_key N/A N/A pyramid_swagger_key bravado_core_key N/A N/A config_keys items N/A pyramid_swagger_key settings N/A ingest_resources N/A N/A mapping schema_dir N/A N/A N/A Consume the Swagger schemas and produce a queryable datastructure.

    :param mapping: Map from resource name to filepath of its api declaration
    :type mapping: dict
    :param schema_dir: the directory schema files live inside
    :type schema_dir: string
    :returns: A list of mapping from :class:`RequestMatcher` to
        :class:`ValidatorMap`
     N/A ingested_resources N/A N/A N/A name filepath N/A N/A mapping items N/A N/A N/A N/A N/A N/A ingested_resources append N/A load_schema filepath N/A N/A N/A IOError N/A N/A N/A ApiDeclarationNotFoundError N/A N/A No api declaration found at {0}. Attempted to load the `{1}` resource relative to the schema_directory `{2}`. Perhaps your resource name and API declaration file do not match? format filepath name schema_dir N/A ingested_resources N/A