def import_project(self, file, path, namespace=None, overwrite=False,<EOL>override_params=None, **kwargs):
files = {<EOL>'<STR_LIT:file>': ('<STR_LIT>', file)<EOL>}<EOL>data = {<EOL>'<STR_LIT:path>': path,<EOL>'<STR_LIT>': overwrite<EOL>}<EOL>if override_params:<EOL><INDENT>for k, v in override_params.items():<EOL><INDENT>data['<STR_LIT>' % k] = v<EOL><DEDENT><DEDENT>if namespace:<EOL><INDENT>data['<STR_LIT>'] = namespace<EOL><DEDENT>return self.gitlab.http_post('<STR_LIT>', post_data=data,<EOL>files=files, **kwargs)<EOL>
Import a project from an archive file.

        Args:
            file: Data or file object containing the project
            path (str): Name and path for the new project
            namespace (str): The ID or path of the namespace that the project
                will be imported to
            overwrite (bool): If True overwrite an existing project with the
                same path
            override_params (dict): Set the specific settings for the project
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabListError: If the server failed to perform the request

        Returns:
            dict: A representation of the import status.