GitLab API

GitlabTool

Actions1095

Pypi_packages → getApiV4GroupsIdPackagesPypiFilesSha256*fileIdentifier

AI-generated

Summary

Retrieve a specific PyPI package file from a GitLab group using the group's ID or full path, the file's SHA256 checksum, and the PyPI package file identifier.

Inputs

  • id (required) — The ID or full path of the GitLab group to which the PyPI package belongs.
  • sha256 (required) — The SHA256 checksum string of the PyPI package file to retrieve.
  • file_identifier (required) — The identifier string for the PyPI package file, typically including the package name and version (e.g., 'my.pypi.package-0.0.1.tar.gz').
  • skipAuthentication — Optional boolean to skip authentication; defaults to false, so authentication is used by default.
  • baseUrl — Optional base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • method — HTTP method to use for the request; defaults to GET.

Output shape

a binary file corresponding to the requested PyPI package file

The operation returns the file content identified by the group, SHA256 checksum, and file identifier via a GET request to the GitLab API endpoint. Authentication is used by default unless explicitly skipped. The endpoint path is '/api/v4/groups/{id}/-/packages/pypi/files/{sha256}/*file_identifier'.

Links

Discussion