# 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](https://gitlab.com/gitlab-org/professional-services-automation/gitlab-ps-utils)
## Install
```bash
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
```python
from gitlab_ps_utils.string_utils import strip_numbers
test_var = "abc123"
print(strip_numbers(test_var))
```
### Importing a utility class
```python
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](https://python-gitlab.readthedocs.io/en/stable/) 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
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/gitlab-org/professional-services-automation/gitlab-ps-utils",
"name": "gitlab-ps-utils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8.0",
"maintainer_email": null,
"keywords": null,
"author": "GitLab Professional Services",
"author_email": "proserv@gitlab.com",
"download_url": "https://files.pythonhosted.org/packages/c1/e4/a162cda6af3c12bda5bfbfb20a1b18bebe60199602ba0d8ce5784a926e1c/gitlab_ps_utils-0.14.6.tar.gz",
"platform": null,
"description": "# GitLab PS Utils\n\nGitLab PS utils is the foundational API and utilities libraries used by GitLab Professional Services. \nTo see the source code, project backlog and contributing guide, [check here](https://gitlab.com/gitlab-org/professional-services-automation/gitlab-ps-utils)\n\n## Install\n\n```bash\npip install gitlab-ps-utils\n```\n\n## Usage\n\nThis library contains various utility modules and classes.\nRefer to the repository source code to see available utility functions.\n\n### Importing a utility function\n\n```python\nfrom gitlab_ps_utils.string_utils import strip_numbers\n\ntest_var = \"abc123\"\nprint(strip_numbers(test_var))\n```\n\n### Importing a utility class\n\n```python\nfrom gitlab_ps_utils.api import GitLabApi\n\ngl_api = GitLabApi()\n\ngl_api.generate_get_request(\"http://gitlab.example.com\", \"token\", \"/projects\")\n```\n\n## Other resources\n\n### Python-GitLab\n\nWe include a basic GitLab API wrapper class in this library. We will include specific API wrapper functions in the future.\nOur wrapper class and specific wrappers were created when [python-gitlab](https://python-gitlab.readthedocs.io/en/stable/) was in a much earlier state,\nso we continued to use our wrapper instead of switching to python-gitlab\n\nFor generic requests to the GitLab API, our wrapper is more lightweight than python-gitlab,\nbut python-gitlab is a great option for more complex API scripts\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Shared python utilities used by GitLab Professional Services tooling",
"version": "0.14.6",
"project_urls": {
"Homepage": "https://gitlab.com/gitlab-org/professional-services-automation/gitlab-ps-utils"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "217e3ebf59756e59ec0a5f2186c32105feaa1830ad3486fc1279771ba7113f21",
"md5": "87f8fe0b8b0d5839c99d1e813422ad64",
"sha256": "ec370354da53018ae81cbe2bc813894040877c3bd2a59b6fe79127eda2fa4350"
},
"downloads": -1,
"filename": "gitlab_ps_utils-0.14.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "87f8fe0b8b0d5839c99d1e813422ad64",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.0",
"size": 24887,
"upload_time": "2025-07-09T11:33:29",
"upload_time_iso_8601": "2025-07-09T11:33:29.763071Z",
"url": "https://files.pythonhosted.org/packages/21/7e/3ebf59756e59ec0a5f2186c32105feaa1830ad3486fc1279771ba7113f21/gitlab_ps_utils-0.14.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c1e4a162cda6af3c12bda5bfbfb20a1b18bebe60199602ba0d8ce5784a926e1c",
"md5": "53fff6dc5bfabe6014fd9918981652cb",
"sha256": "7a473f4a3666dc46037147af24c089b576c9071d5783bf97ef93208ca6992819"
},
"downloads": -1,
"filename": "gitlab_ps_utils-0.14.6.tar.gz",
"has_sig": false,
"md5_digest": "53fff6dc5bfabe6014fd9918981652cb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.0",
"size": 20168,
"upload_time": "2025-07-09T11:33:31",
"upload_time_iso_8601": "2025-07-09T11:33:31.006403Z",
"url": "https://files.pythonhosted.org/packages/c1/e4/a162cda6af3c12bda5bfbfb20a1b18bebe60199602ba0d8ce5784a926e1c/gitlab_ps_utils-0.14.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-09 11:33:31",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "gitlab-org",
"gitlab_project": "professional-services-automation",
"lcname": "gitlab-ps-utils"
}