def getfile(self, project_id, file_path, ref):
        data = {"file_path": file_path, "ref": ref}
        request = requests.get("{0}/{1}/repository/files".format(self.projects_url, project_id),
                               headers=self.headers, data=data, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout)
        if request.status_code == 200:
            return request.json()
        else:
            return False
Allows you to receive information about file in repository like name, size, content.
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.getfile