Skip to main content

pygitlabapi facilitates the usage of gitlab apis inside a python module or in command line

Project description

pygitlabapi

pygitlabapi contains some functions to facilitate the usage of gitlab apis inside python modules or in command line.

The source for this project is available here.


Example of importing gitlabapi inside a python module :

import os
from pygitlabapi import gitlabApi

iurl = "https://gitlab.com/api/v4"
ijson = "project.json"
imethod="POST"
iapi = "/projects"
iuser= os.environ.get("GITLAB_USER")
itoken = os.environ.get("GITLAB_TOKEN")
message= gitlabApi.rungitlabApi(api=iapi, method=imethod, url=iurl, user=iuser, token=itoken, json=ijson )
print(message)

Release notes

1.0.0 Initial version

1.0.1 Managing http error codes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygitlabapi-1.0.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

pygitlabapi-1.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page