Python tool that allows you to take multiple full page screenshots of web pages without ads.
Project description
GitLab API
Version: 0.0.4
GitLab API Python Wrapper
Includes a large variety of API calls to GitLab
This repository is actively maintained and will continue adding more API calls
API Calls:
- Branches
- Commits
- Deploy Tokens
- Groups
- Members
- Merge Request
- Merge Rules
- Packages
- Pipeline
- Projects
- Protected Branches
- Runners
- Users
Usage:
#!/usr/bin/python
# coding: utf-8
import gitlab_api
token = "<GITLAB_TOKEN/PERSONAL_TOKEN>"
gitlab_url = "<GITLAB_URL>"
client = gitlab_api.Api(url=gitlab_url, token=token)
users = client.get_users()
print(users)
created_merge_request = client.create_merge_request(project_id=123, source_branch="development",
target_branch="production",title="Merge Request Title")
print(created_merge_request)
print(f"Users: {client.get_users()}")
print(f"Projects: {client.get_projects()}")
response = client.get_runners(runner_type='instance_type', all_runners=True)
print(f"Runners: {response}")
Build Instructions
Build Python Package
sudo chmod +x ./*.py
pip install .
python setup.py bdist_wheel --universal
# Test Pypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u "Username" -p "Password"
# Prod Pypi
twine upload dist/* --verbose -u "Username" -p "Password"
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for gitlab_api-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e7e02368c58f2c83b1a299aa9397c0046f706af17a56d152ccefde107a23ab |
|
MD5 | d698ed968097fe76f9c6e07450e4f61d |
|
BLAKE2b-256 | f436bd2e09a77553a1ba1109f01f3e6bc0759e17e033e6354523a4e7b07565ae |