Skip to main content

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


Download files

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

Source Distribution

gitlab-ps-utils-0.1.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

gitlab_ps_utils-0.1.2-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file gitlab-ps-utils-0.1.2.tar.gz.

File metadata

  • Download URL: gitlab-ps-utils-0.1.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/4.19.78-coreos

File hashes

Hashes for gitlab-ps-utils-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b9b78420a4413c588f13c362bb791287c65e0aeec853d7461732d79b97c88033
MD5 de9b6f33879e57ba8a3b0cb7e2e54b16
BLAKE2b-256 ddcb6255c516a269fe571a8aff8fa2a79d39633097c171e5877291928b58622e

See more details on using hashes here.

File details

Details for the file gitlab_ps_utils-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gitlab_ps_utils-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/4.19.78-coreos

File hashes

Hashes for gitlab_ps_utils-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e83f0ee8c77156e1557e3708634c6d2a32841d5ef92714442d734f07d9e8da86
MD5 6f0978b4dec9c27bcab2e00e9b00a297
BLAKE2b-256 938c8f2f990ba19d9adb45a3af9154f7c6aaa12120acc9fe17d9919e0da2b2fd

See more details on using hashes here.

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