Handles the basic case of loading a single object from a stream.
Args
default_class
Class that is instantiated upon the detection of a new
document. An instance of this class will act as the document itself.
stream
String document or open file object to process as per the
yaml.parse method. Any object that implements a 'read()' method which
returns a string document will work with the YAML parser.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eBuildSingleObject\u003c/code\u003e function constructs a single object from a provided stream.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a \u003ccode\u003edefault_class\u003c/code\u003e which defines the type of object to be created.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estream\u003c/code\u003e argument can be a string or a file-like object containing the data to parse.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eloader_class\u003c/code\u003e is used for dependency injection during the build process.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.yaml_object.BuildSingleObject\n\n\u003cbr /\u003e\n\nBuild object from stream. \n\n google.appengine.api.yaml_object.BuildSingleObject(\n default_class, stream, loader=yaml.loader.SafeLoader\n )\n\nHandles the basic case of loading a single object from a stream.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]