Shared python utilities used by GitLab Professional Services tooling
Project description
GitLab PS Utils
GitLab PS utils is the foundational API and utilities libraries used by GitLab Professional Services. To see the source code, project backlog and contributing guide, check here
Install
pip install gitlab-ps-utils
Usage
This library contains various utility modules and classes. Refer to the repository source code to see available utility functions.
Importing a utility function
from gitlab_ps_utils.string_utils import strip_numbers
test_var = "abc123"
print(strip_numbers(test_var))
Importing a utility class
from gitlab_ps_utils.api import GitLabApi
gl_api = GitLabApi()
gl_api.generate_get_request("http://gitlab.example.com", "token", "/projects")
Other resources
Python-GitLab
We include a basic GitLab API wrapper class in this library. We will include specific API wrapper functions in the future. Our wrapper class and specific wrappers were created when python-gitlab was in a much earlier state, so we continued to use our wrapper instead of switching to python-gitlab
For generic requests to the GitLab API, our wrapper is more lightweight than python-gitlab, but python-gitlab is a great option for more complex API scripts
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
Built Distribution
File details
Details for the file gitlab_ps_utils-0.12.2.tar.gz
.
File metadata
- Download URL: gitlab_ps_utils-0.12.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.20 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c2b7711e7f502365af8ca2ada92457d98881d29a48a8f1a47ba236ee309f73 |
|
MD5 | 1bbe6441909565dd1b296c48966fb9b0 |
|
BLAKE2b-256 | 69a446d54ef1e0c7198580032fd058b63d4a77c68e44fff1ad581783294791aa |
File details
Details for the file gitlab_ps_utils-0.12.2-py3-none-any.whl
.
File metadata
- Download URL: gitlab_ps_utils-0.12.2-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.20 Linux/5.15.154+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ada8aa416def190059decaf1754973eb2863d57a1c2dd084c07c9e3ab64a6e57 |
|
MD5 | de930683818c784d388add99774b8edc |
|
BLAKE2b-256 | da75a20e5457318d7d3512ee71fa5719d31d1f5b3f51ae514d5a8ec5880fd925 |