Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.31 KB

README.md

File metadata and controls

56 lines (34 loc) · 1.31 KB

pyglab

A Python wrapper for the GitLab API v3.

Requirements

Installation

First, satisfy the requirements. Currently, there is only the requests library, which you can get for Python 3 by executing

pip3 install requests

For more information see the install page.

Then, clone the pyglab repository to a path of your liking and add the location to the PYTHONPATH variable.

Quick start

Right now, this section has not much content yet. Please refer to the source code for how to use it :-/

In order to query a GitLab repository, create a Pyglab instance as easily as

p = Pyglab(url, private_token)

If you do not know the private token, you can also login with a username/password combination:

p = Pyglab.login(username, password)

You can then use the pyglab instance to access the full API. For example, to show the current user, execute

p.user.get()

Disclaimer

No animals were harmed during the development of this library :)