[ Web Proxy ]
URL:
Viewing: https://pypi.python.org/project/python-gitlab/2.2.0/ [Back]  [Original]

python-gitlab PyPI Skip to main content Switch to mobile version
PyPI [PyPI]
Type '/' to search projects:
https://travis-ci.org/python-gitlab/python-gitlab.svg?branch=master [https://travis-ci.org/python-gitlab/python-gitlab.svg?branch=master] https://badge.fury.io/py/python-gitlab.svg [https://badge.fury.io/py/python-gitlab.svg] https://readthedocs.org/projects/python-gitlab/badge/?version=latest [https://readthedocs.org/projects/python-gitlab/badge/?version=latest] https://img.shields.io/pypi/pyversions/python-gitlab.svg [https://img.shields.io/pypi/pyversions/python-gitlab.svg] https://img.shields.io/gitter/room/python-gitlab/Lobby.svg [https://img.shields.io/gitter/room/python-gitlab/Lobby.svg] https://img.shields.io/badge/code%20style-black-000000.svg [https://img.shields.io/badge/code%20style-black-000000.svg]

Python GitLab

python-gitlab is a Python package providing access to the GitLab server API.

It supports the v4 API of GitLab, and provides a CLI tool (gitlab).

Installation

Requirements

python-gitlab depends on:

Install with pip

pip install python-gitlab

Using the python-gitlab docker image

How to build

docker build -t python-gitlab:TAG .

How to use

docker run -it --rm -e GITLAB_PRIVATE_TOKEN=<your token> -v /path/to/python-gitlab.cfg:/python-gitlab.cfg python-gitlab <command> ...

or run it directly from the upstream image:

docker run -it --rm -e GITLAB_PRIVATE_TOKEN=<your token> -v /path/to/python-gitlab.cfg:/python-gitlab.cfg registry.gitlab.com/python-gitlab/python-gitlab:latest <command> ...

To change the GitLab URL, use -e GITLAB_URL=<your url>

Bring your own config file: docker run -it --rm -v /path/to/python-gitlab.cfg:/python-gitlab.cfg -e GITLAB_CFG=/python-gitlab.cfg python-gitlab <command> ...

Bug reports

Please report bugs and feature requests at https://github.com/python-gitlab/python-gitlab/issues.

Documentation

The full documentation for CLI and API is available on readthedocs.

Build the docs

You can build the documentation using sphinx:

pip install sphinx
python setup.py build_sphinx

Contributing

You can contribute to the project in multiple ways:

  • Write documentation

  • Implement features

  • Fix bugs

  • Add unit and functional tests

  • Everything else you can think of

We enforce commit messages to be formatted using the conventional-changelog. This leads to more readable messages that are easy to follow when looking through the project history.

Please provide your patches as github pull requests. Thanks!

Code-Style

We use black as code formatter, so youll need to format your changes using the black code formatter.

Just run

cd python-gitlab/
pip3 install --user black
black .

to format your code according to our guidelines.

Running unit tests

Before submitting a pull request make sure that the tests still succeed with your change. Unit tests and functional tests run using the travis service and passing tests are mandatory to get merge requests accepted.

You need to install tox to run unit tests and documentation builds locally:

# run the unit tests for all supported python3 versions, and the pep8 tests:
tox

# run tests in one environment only:
tox -epy36

# build the documentation, the result will be generated in
# build/sphinx/html/
tox -edocs

Running integration tests

Two scripts run tests against a running gitlab instance, using a docker container. You need to have docker installed on the test machine, and your user must have the correct permissions to talk to the docker daemon.

To run these tests:

# run the CLI tests:
./tools/functional_tests.sh

# run the python API tests:
./tools/py_functional_tests.sh

By default, the tests run against the gitlab/gitlab-ce:latest image. You can override both the image and tag with the -i and -t options, or by providing either the GITLAB_IMAGE or GITLAB_TAG environment variables.

This way you can run tests against different versions, such as nightly for features in an upcoming release, or an older release (e.g. 12.8.0-ce.0). The tag must match an exact tag on Docker Hub:

# run tests against `nightly` or specific tag
./tools/py_functional_tests.sh -t nightly
./tools/py_functional_tests.sh -t 12.8.0-ce.0

# run tests against the latest gitlab EE image
./tools/py_functional_tests.sh -i gitlab/gitlab-ee

# override tags with environment variables
GITLAB_TAG=nightly ./tools/py_functional_tests.sh

You can also build a test environment using the following command:

./tools/build_test_env.sh

A freshly configured gitlab container will be available at http://localhost:8080 (login root / password 5iveL!fe). A configuration for python-gitlab will be written in /tmp/python-gitlab.cfg.

To cleanup the environment delete the container:

docker rm -f gitlab-test

Metadata

Release files for python-gitlab 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-gitlab 2.2.0
File Size Uploaded
python-gitlab-2.2.0.tar.gz 136.2 kB Apr 7, 2020 Details

Built distribution (wheel)

Table of built distributions (wheels) for python-gitlab 2.2.0
File Interpreter ABI Platform Reset
python_gitlab-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 215.7 kB

Release files / python-gitlab-2.2.0.tar.gz

Download URL python-gitlab-2.2.0.tar.gz
Size 136.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4c4ea60c8303f4214522b18038df017cae35afda7474efa0b4e19c2e73bc3ae2
BLAKE2b-256 checksum
How to use checksums
ce74d961f58170c30efbcf0dde9c18b4161f00467e34880e41d606e2c2d87ec4
Upload date Apr 7, 2020
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / python_gitlab-2.2.0-py3-none-any.whl

Download URL python_gitlab-2.2.0-py3-none-any.whl
Size 79.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e1de6612ed1a5611e4bbcf1f2193ac870d928097663b55789888506de0b099f
BLAKE2b-256 checksum
How to use checksums
985d3a45f5e5cc014fc4111055d9f9420955e84209685b20dac7eef06e777676
Upload date Apr 7, 2020
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

[]

8.6.0

Sep 28, 2026 2 release files

[]

8.5.0

Jul 28, 2026 2 release files

[]

8.4.0

May 28, 2026 2 release files

[]

8.3.0

Apr 28, 2026 2 release files

[]

8.2.0

Mar 28, 2026 2 release files

[]

8.1.0

Feb 28, 2026 2 release files

[]

8.0.0

Jan 28, 2026 2 release files

[]

7.1.0

Dec 28, 2025 2 release files

[]

7.0.0

Oct 29, 2025 2 release files

[]

6.5.0

Oct 17, 2025 2 release files

[]

6.4.0

Sep 28, 2025 2 release files

[]

6.3.0

Aug 28, 2025 2 release files

[]

6.2.0

Jul 28, 2025 2 release files

[]

6.1.0

Jun 28, 2025 2 release files

[]

5.6.0

Jan 28, 2025 2 release files

[]

5.5.0

Jan 28, 2025 2 release files

[]

5.4.0

Jan 28, 2025 2 release files

[]

5.3.0

Dec 28, 2024 2 release files

[]

5.2.0

Dec 17, 2024 2 release files

[]

5.1.0

Nov 28, 2024 2 release files

[]

5.0.0

Oct 28, 2024 2 release files

[]

4.12.1

Sep 30, 2024 2 release files

[]

4.12.0

Sep 28, 2024 2 release files

[]

4.11.1

Sep 13, 2024 2 release files

[]

4.11.0

Sep 13, 2024 2 release files

[]

4.10.0

Aug 28, 2024 2 release files

[]

4.8.0

Jul 16, 2024 2 release files

[]

4.7.0

Jun 28, 2024 2 release files

[]

4.6.0

May 28, 2024 2 release files

[]

4.5.0

May 13, 2024 2 release files

[]

4.4.0

Jan 15, 2024 2 release files

[]

4.3.0

Dec 28, 2023 2 release files

[]

4.2.0

Nov 28, 2023 2 release files

[]

3.14.0

Apr 11, 2023 2 release files

[]

3.13.0

Jan 30, 2023 2 release files

[]

3.12.0

Nov 28, 2022 2 release files

[]

3.11.0

Oct 28, 2022 2 release files

[]

3.10.0

Sep 28, 2022 2 release files

[]

3.9.0

Aug 28, 2022 2 release files

[]

3.8.1

Aug 10, 2022 2 release files

[]

3.7.0

Jul 28, 2022 2 release files

[]

3.6.0

Jun 28, 2022 2 release files

[]

3.5.0

May 28, 2022 2 release files

[]

3.4.0

Apr 28, 2022 2 release files

[]

3.3.0

Mar 28, 2022 2 release files

[]

3.2.0

Feb 28, 2022 2 release files

[]

3.1.1

Jan 28, 2022 2 release files

[]

3.1.0

Jan 14, 2022 2 release files

[]

2.10.1

Aug 28, 2021 2 release files

[]

2.10.0

Jul 28, 2021 2 release files

[]

2.9.0

Jun 28, 2021 2 release files

[]

2.8.0

Jun 10, 2021 2 release files

[]

2.7.1

Apr 26, 2021 2 release files

[]

2.7.0

Apr 26, 2021 2 release files

[]

2.6.0

Jan 29, 2021 2 release files

This release
[]

2.2.0 This release

Apr 7, 2020 2 release files

[]

2.0.0

Jan 26, 2020 2 release files

[]

1.15.0

Dec 16, 2019 2 release files

[]

1.11.0

Aug 31, 2019 2 release files

[]

1.10.0

Jul 22, 2019 2 release files

[]

1.9.0

Jun 19, 2019 2 release files

[]

1.8.0

Feb 22, 2019 2 release files

[]

1.7.0

Dec 9, 2018 1 release file

[]

1.6.0

Aug 25, 2018 1 release file

[]

1.5.1

Jun 23, 2018 1 release file

[]

1.5.0

Jun 22, 2018 1 release file

[]

1.4.0

May 19, 2018 1 release file

[]

1.3.0

Feb 18, 2018 1 release file

[]

1.2.0

Jan 1, 2018 1 release file

[]

1.1.0

Nov 3, 2017 1 release file

[]

1.0.2

Sep 29, 2017 1 release file

[]

1.0.1

Sep 21, 2017 1 release file

[]

1.0.0

Sep 8, 2017 1 release file

[]

0.21.2

Jun 11, 2017 1 release file

[]

0.21.1

May 25, 2017 1 release file

[]

0.21

May 24, 2017 1 release file

[]

0.20

Mar 25, 2017 1 release file

[]

0.19

Feb 21, 2017 1 release file

[]

0.18

Dec 27, 2016 1 release file

[]

0.17

Dec 2, 2016 1 release file

[]

0.16

Oct 16, 2016 1 release file

[]

0.15

Aug 28, 2016 1 release file

[]

0.14

Aug 7, 2016 1 release file

[]

0.13

May 16, 2016 1 release file

[]

0.12.2

Mar 19, 2016 1 release file

[]

0.12

Feb 3, 2016

[]

0.11.1

Jan 17, 2016 1 release file

[]

0.11

Jan 9, 2016 1 release file

[]

0.10

Dec 29, 2015 1 release file

[]

0.9.2

Jul 11, 2015 1 release file

[]

0.9.1

May 15, 2015 1 release file

[]

0.9

May 15, 2015 1 release file

[]

0.8

Oct 26, 2014 1 release file

[]

0.7

Aug 21, 2014 1 release file

[]

0.6

Jan 17, 2014 1 release file

[]

0.5

Dec 26, 2013 1 release file

[]

0.4

Sep 26, 2013 1 release file

[]

0.3

Aug 27, 2013 1 release file

[]

0.2

Aug 8, 2013 1 release file

[]

0.1

Jul 8, 2013 1 release file

[] Anthropic, PBC Visionary sponsor [] Bloomberg Visionary sponsor [] Hudson River Trading Visionary sponsor [] Meta Visionary sponsor [] NVIDIA Visionary sponsor [] Microsoft Sustainability sponsor [] Depot Continuous Integration [] AWS Cloud computing and Security Sponsor [] Datadog Monitoring [] Fastly CDN [] Google Download Analytics [] Sentry Error logging [] StatusPage Status page

Web Proxy Viewer  |  New URL  |  Original Page