Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.29 KB

packages.rst

File metadata and controls

68 lines (41 loc) · 1.29 KB

####### Packages #######

Packages allow you to utilize GitLab as a private repository for a variety of common package managers.

Project Packages

Reference

Examples

List the packages in a project:

packages = project.packages.list()

Filter the results by package_type or package_name :

packages = project.packages.list(package_type='pypi')

Get a specific package of a project by id:

package = project.packages.get(1)

Delete a package from a project:

package.delete()
# or
project.packages.delete(package.id)

Group Packages

Reference

Examples

List the packages in a group:

packages = group.packages.list()

Filter the results by package_type or package_name :

packages = group.packages.list(package_type='pypi')