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

Uploaded Source

Built Distribution

gitlab_ps_utils-0.10.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitlab_ps_utils-0.10.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.8.18 Linux/5.4.109+

File hashes

Hashes for gitlab_ps_utils-0.10.0.tar.gz
Algorithm Hash digest
SHA256 5c976ca1e284e147ea5d09ec603156a960bfc30e17f09be552a895916cd6a2e9
MD5 c07306a5ac85cf1fbe0ab5be35c06097
BLAKE2b-256 1c92b7d66cf6408c6195b81189d20d570ad10fbbb91d4a16cf335f6c90215268

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitlab_ps_utils-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.8.18 Linux/5.4.109+

File hashes

Hashes for gitlab_ps_utils-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 727401306eb223469fa9d31ad07690a8e92724967a7fe0ad2ef05d8f77944e29
MD5 1b2129429e065feff1cb4eac4c0c68e3
BLAKE2b-256 3d8b6a16170637f12ce02cae791e3ba495dcfda71d469563e218e62e5a52afcc

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