Skip to content

sloede/pyglab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

About

A Python wrapper for the GitLab API v3.

Resources

License

Stars

Watchers

Forks

Packages

No packages published