Skip to main content

GitLab Discovery for Netherframe

This package provides resource discovery capabilities for GitLab infrastructure using the GitLab Terraform provider (gitlabhq/gitlab).

Installation

pip install netherframe.discovery.gitlabhq.gitlab

Usage

from nf.core import App, Stack
from nf.discovery.gitlabhq.gitlab import GitLabDiscoverer

app = App()
stack = Stack(app, "gitlab-imported")

# Configure the discoverer
config = {
    "token": "your-gitlab-token",  # Or use GITLAB_TOKEN env var
    "base_url": "https://gitlab.com/api/v4",  # Optional, defaults to gitlab.com
}

# Discover and import resources
discoverer = GitLabDiscoverer()
resources, import_blocks = discoverer.discover_and_fold(
    stack=stack,
    config=config,
    filters={
        "project_ids": [123, 456],  # Optional: specific projects
        "group_ids": [789],  # Optional: specific groups
        "owned": True,  # Optional: only owned resources
    },
)

# Synthesize
app.synth()

Supported Resources

The discoverer supports all major GitLab resources including:

  • Projects
  • Groups
  • Users
  • Deploy Keys
  • Project Variables
  • Group Variables
  • Branches
  • Tags
  • Merge Requests
  • Issues
  • Runners
  • And many more...

Configuration

The discoverer requires GitLab API credentials:

  • token: GitLab personal access token (can also use GITLAB_TOKEN env var)
  • base_url: GitLab API base URL (defaults to https://gitlab.com/api/v4)
  • per_page: Number of items per page for API requests (defaults to 100)

Filters

You can filter discovered resources using:

  • project_ids: List of specific project IDs to discover
  • group_ids: List of specific group IDs to discover
  • owned: Only discover resources owned by the authenticated user
  • membership: Only discover resources where user is a member
  • min_access_level: Minimum access level for discovered resources

Metadata

Release files for netherframe.discovery.gitlabhq.gitlab 0.5.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 netherframe.discovery.gitlabhq.gitlab 0.5.0
File Size Uploaded Provenance Actions
netherframe_discovery_gitlabhq_gitlab-0.5.0.tar.gz 13.1 kB Without provenance Details for netherframe_discovery_gitlabhq_gitlab-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netherframe.discovery.gitlabhq.gitlab 0.5.0
File Interpreter ABI Platform Actions
netherframe_discovery_gitlabhq_gitlab-0.5.0-py3-none-any.whl Python 3 none any Details for netherframe_discovery_gitlabhq_gitlab-0.5.0-py3-none-any.whl

Total release size: 29.1 kB

Release files / netherframe_discovery_gitlabhq_gitlab-0.5.0.tar.gz

Download URL netherframe_discovery_gitlabhq_gitlab-0.5.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
64f9a01439d611b44a6492968738025200ac3257e30a7340a5993f43834c9d44
BLAKE2b-256 checksum
How to use checksums
1cf9aa3da3b0d91ab7a3364e982a0d918a7e449dfab84bf654f6682283c6c342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / netherframe_discovery_gitlabhq_gitlab-0.5.0-py3-none-any.whl

Download URL netherframe_discovery_gitlabhq_gitlab-0.5.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c429017bdf704ab79d22723092fe1959e86c572cec966e148f0d3677cd39127c
BLAKE2b-256 checksum
How to use checksums
db317a632294ec9cc5ac25d135030710fc7cbe385b3ba150c38aa221f5356db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for netherframe.discovery.gitlabhq.gitlab 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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