Questions tagged [python-gitlab]

The python-gitlab library is a Python library that provides bindings for interacting with GitLab, an open-source git repository manager that features multiple features such as issue tracking, wikis, and continuous integration features.

python-gitlab is a Python library that provides bindings for the GitLab API v4 for interacting with GitLab, an open-source git repository manager that features multiple features such as issue tracking, wikis, and continuous integration features.

See the python-gitlab repo on Github.

See read-the-docs

68 questions
0
votes
1 answer

Hook execution failed: Failed to open TCP connection to ::1:8000 (Connection refused - connect(2) for "::1" port 8000)

I need to integrate pivotal tracker manually because I want some extra options, but I'm getting a "failed to open TCP connection" error. I'm working from localhost and gitlab is in an intranet. I've tried both the example in ruby in the docs and a…
0
votes
1 answer

Is there a way to obtain the directory structure of a gitlab repo using python

Is there a way to get a list of files and directories in the gitlab repo using python? So if I use the gitlab repository url as my source, can I traverse and get a list of all files and directories/ sub-directories within the repo? Like using…
py_noob
  • 433
  • 2
  • 8
  • 17
0
votes
1 answer

Is their an inbuilt method directly available to search a gitlab repo through it's name using python-gitlab

I am using python-gitlab which is a python wrapper for the original Gitlab API. I am actually using it to create scripts to access and modify gitlab projects. I came across a constraint while working with it, which is to mention the project id as…
Saurav Saha
  • 745
  • 1
  • 11
  • 30
0
votes
1 answer

Accessing private instances of Github and Gitlab through their respective Python APIs

Can I access private instances of Github and Gitlab through API wrappers in python such as pygithub and python-gitlab. For example, if I want to access my company's private server of Github and Gitlab, is it possible? Any help on the matter would be…
Saurav Saha
  • 745
  • 1
  • 11
  • 30
0
votes
2 answers

How to Get GitLab users custom attributes using the API

Trying to show the custom attributes (mainly the location field ) for some public GitLab users. but it's not working I am using python gitlab library to get the list. and I can print the user names, ids and url. Now I want to access the custom…
Ahmad saleh
  • 103
  • 3
0
votes
1 answer

how to commit a update via gitlab api?

I wanna do some gitlab operation via python and gitlab-api. there is only one file called pg.py in my repository. url = 'http://xx.xx.xx.xx/api/v3/projects/4/repository/commits' data = {"id":4, "branch_name":"master","commit_message":"commit via…
R wang
  • 166
  • 12
-1
votes
2 answers

What does => mean in python output and how can I get the right side value

I am using python-gitlab (https://github.com/python-gitlab/python-gitlab) And in my code I want to get values from project issues: statistics = project.issuesstatistics.get() print(statistics) print(type(statistics)) The output is the…
jago
  • 9
  • 1
-1
votes
1 answer

Clone a group of repos from GitLab via script

I'm trying to clone a group of my projects from Gitlab through a script. I found a python library that helps to connect to the Gitlab API. But it does not work. gl = gitlab.Gitlab('https://gitlab.com/*myname*', private_token =…
Mechandrius
  • 323
  • 2
  • 12
1 2 3 4
5