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.20.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitlab_ps_utils-0.20.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file gitlab_ps_utils-0.20.0.tar.gz.

File metadata

  • Download URL: gitlab_ps_utils-0.20.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.19 Linux/5.15.154+

File hashes

Hashes for gitlab_ps_utils-0.20.0.tar.gz
Algorithm Hash digest
SHA256 6080ddb9ddd315348ce1982247b848939dab6c5e5c4805dd732c0188c52a64d5
MD5 e972ce0d9d1032b32622a205ccb7ad46
BLAKE2b-256 24d9e202038c2a6a322c61c8d95221ce2e166d4a268f50f03f8b8ce3b3c7b8b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitlab_ps_utils-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.10.19 Linux/5.15.154+

File hashes

Hashes for gitlab_ps_utils-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac3a9e226789b617160b543f17cdbc724fbb7ae4712d18c552ea2cb42465e9ee
MD5 c5e2af7dfba70c8601ffb6e8b2775f8f
BLAKE2b-256 b5b4f91f4d8876fb1dca61ab805771aa5389c5bb0c389ff0144cc7fc727337d5

See more details on using hashes here.

Supported by

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