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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pygitlabapi-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c0bda55e093856e5f2655fda69fd4a9300dfc7cc3160dad0de53c7b67412879 |
|
MD5 | abab1bd2a9d3319dfa43f93738e77281 |
|
BLAKE2b-256 | 505188b2177e795d09f7036ba389da59d2e95632756f8ee24e0824d445e5e452 |