(self, destination: Union[str, Path, TextIO] = None)
Save all present schemas to a local file

        This will save both local & remote schemas to a local file
Save all present schemas to a local file
Save all present schemas to a local file
def save_local(self, destination: Union[str, Path, TextIO] = None):
        """Save all present schemas to a local file

        This will save both local & remote schemas to a local file
        """
        if isinstance(destination, str):
            destination = Path(destination)

        if destination is None:
            self._dump_to_file(sys.stdout)
            sys.stdout.write("\n")
        elif destination.is_dir():
            self._dump_to_directory(destination)
        else:
            with destination.open("w", encoding="utf8") as f:
                self._dump_to_file(f)
def save_local ( self , destination : Union [ str , Path , TextIO ] = None ) : if isinstance ( destination , str ) : destination = Path ( destination ) if destination is None : self . _dump_to_file ( sys . stdout ) sys . stdout . write ( "\n" ) elif destination . is_dir ( ) : self . _dump_to_directory ( destination ) else : with destination . open ( "w" , encoding = "utf8" ) as f : self . _dump_to_file ( f )