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.4.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.4.0
File Size Uploaded Provenance Actions
netherframe_discovery_gitlabhq_gitlab-0.4.0.tar.gz 13.1 kB Without provenance Details for netherframe_discovery_gitlabhq_gitlab-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 29.1 kB

Release files / netherframe_discovery_gitlabhq_gitlab-0.4.0.tar.gz

Download URL netherframe_discovery_gitlabhq_gitlab-0.4.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d350b2d94b0657c43353fb9c5bd46ca84359580de2b8845dd7adb166190bfa46
BLAKE2b-256 checksum
How to use checksums
50802cd47bc97981aa227e5ee4d4d68ad0e4aa13764cb0f4c892840b9aa962d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-py3-none-any.whl

Download URL netherframe_discovery_gitlabhq_gitlab-0.4.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bbce772ccbb8d2a87fc11d6c50cdc35dd874893181bc759e23c3be481d66538
BLAKE2b-256 checksum
How to use checksums
a8e460a43cf2eb0479362e6173058b238454559af32ea10a46d58e3d514b2736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.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