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.3.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.3.0
File Size Uploaded Provenance Actions
netherframe_discovery_gitlabhq_gitlab-0.3.0.tar.gz 13.1 kB Without provenance Details for netherframe_discovery_gitlabhq_gitlab-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 29.1 kB

Release files / netherframe_discovery_gitlabhq_gitlab-0.3.0.tar.gz

Download URL netherframe_discovery_gitlabhq_gitlab-0.3.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
324ab043564919a1a8914e2fb7e48581f9f3440bcd2d84579aedda60d58682ff
BLAKE2b-256 checksum
How to use checksums
ea7b88a216dbffca5488551bc8e0006fed348f8b94f264542936dcc5ec9f4d67
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.3.0-py3-none-any.whl

Download URL netherframe_discovery_gitlabhq_gitlab-0.3.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
560b4cc7729cd5bf6bbed2e9509d4aba14a04eaf6518cfb7b391a6079e04f794
BLAKE2b-256 checksum
How to use checksums
7fecea623482f46dfd548cae8ea66a84ddaca725e83f9fd5a5b43bfdeca65a3a
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.3.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