def createfork(self, project_id):

        request = requests.post("{0}/fork/{1}".format(self.projects_url, project_id),
                                timeout=self.timeout, verify=self.verify_ssl)

        if request.status_code == 200:
            return True
        else:
            return False
Forks a project into the user namespace of the authenticated user.
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.createfork