Skip to main content

Vigil Client: Platform integration for artifact management and collaboration

Project description

Vigil Client

Vigil Client extends Vigil Core with platform integration, enabling collaborative artifact management and provenance tracking across teams.

Overview

Vigil Client bridges the cryptographic foundation of Vigil Core with platform features:

  • Authentication - Secure login to Vigil platform
  • Artifact Registry - Create, search, and manage typed artifacts
  • Provenance Links - Track relationships between artifacts
  • Sync Operations - Push/pull artifacts and receipts
  • Plugin System - Extensible integrations (Benchling, HuggingFace, etc.)

Installation

# Install vigil-client (includes vigil-core)
pip install vigil-client

# Or install vigil-core separately
pip install vigil-core

Quick Start

1. Authenticate

# Interactive login
vigil client login

# Check authentication status
vigil client whoami

2. Push Artifacts

# Push local receipts and artifacts to the platform
vigil client push

# Push specific receipt
vigil client push app/code/receipts/receipt_20250101T120000Z.json

3. Search and Download

# Search for artifacts
vigil client artifacts-search "genomics"

# Download an artifact
vigil client pull artifact-id

4. Link Artifacts

# Create provenance relationships
vigil client link dataset-123 run-456 --relation INPUT_OF
vigil client link run-456 model-789 --relation OUTPUT_OF

Commands

Authentication

vigil client login                    # Interactive authentication
vigil client logout                   # Clear credentials
vigil client whoami                   # Show current user info

Artifact Management

vigil client artifacts                    # List artifacts
vigil client artifacts-get <id>          # Get artifact details
vigil client artifacts-search <query>   # Search artifacts
vigil client pull <artifact-id>         # Download artifact
vigil client push                       # Upload receipts/artifacts

Provenance

vigil client link <from> <to> --relation <type>  # Create relationship

Configuration

vigil client config                        # Show current config
vigil client config-set-project <id>      # Set default project
vigil client config-set-remote <url>      # Set remote URL

Python API

from vigil_client import VigilClient
from vigil_client.auth import auth_manager
from vigil_client.models import Artifact, ArtifactType

# Get authenticated client
config = auth_manager.get_client_config()
client = VigilClient(config.remote)

# Register artifact
artifact = Artifact(
    name="my-dataset",
    type=ArtifactType.DATASET,
    uri="s3://my-bucket/data/",
    description="Training dataset"
)

result = client.create_artifact(artifact)
print(f"Created artifact: {result.id}")

# Create provenance link
from vigil_client.models import Link, LinkType

link = Link(
    from_artifact_id="dataset-123",
    to_artifact_id="run-456",
    type=LinkType.INPUT_OF
)

client.create_link(link)

Plugin System

Extend Vigil with custom integrations:

from vigil_client.plugins import BasePlugin, plugin_manager

class BenchlingPlugin(BasePlugin):
    def on_artifact_push(self, artifact):
        # Custom Benchling integration
        if artifact.type == "dataset":
            self.sync_to_benchling(artifact)

# Install plugin
plugin_manager.install_plugin(
    "benchling",
    "my_plugins.benchling",
    {"api_key": "benchling-token"}
)

Integration with Vigil Core

Vigil Client extends Vigil Core with platform integration through a unified CLI:

# Core commands (from vigil-core)
vigil run
vigil promote
vigil verify

# Platform commands (from vigil-client)
vigil client login
vigil client push
vigil client pull

The unified CLI automatically detects available packages and shows appropriate commands.

Configuration

Configuration is stored in ~/.vigil/config.json:

{
  "auth": {
    "token": "jwt-token",
    "username": "user",
    "organization": "org"
  },
  "remote": {
    "base_url": "https://api.vigil.app",
    "timeout": 30
  },
  "default_project": "proj-123"
}

Security

  • Token Storage: API tokens are stored securely using system keyring
  • HTTPS Only: All platform communication uses HTTPS
  • Scoped Access: Platform enforces project and organization boundaries

Development

# Install in development mode
pip install -e packages/vigil-core-client

# Run tests
pytest packages/vigil-core-client/tests/

# Type checking
mypy packages/vigil-core-client/src/

Architecture

vigil-client/
├── api/           # REST API client
├── auth/          # Authentication & config
├── cli/           # CLI commands
├── models/        # Data models
├── plugins/       # Extension system
└── extension.py   # Integration with vigil-core

See Also

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vigil_client-0.3.8.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vigil_client-0.3.8-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file vigil_client-0.3.8.tar.gz.

File metadata

  • Download URL: vigil_client-0.3.8.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for vigil_client-0.3.8.tar.gz
Algorithm Hash digest
SHA256 89b88a30930f9f3188b6e50a0f5f7de4faef602444156245082f262b00bc0b2d
MD5 3ce5a6b19430918bb50e313200167d22
BLAKE2b-256 2e0cc04ba24927cfc945ae1fbd897b602f8da13677654ce9d522a32efc685c94

See more details on using hashes here.

File details

Details for the file vigil_client-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: vigil_client-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for vigil_client-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 12a3ced7cebf9b6015edbe34a8c1f340b30da9593caed29bee5a30dc3090978f
MD5 c0b4fea7ded929b23141f9757b874550
BLAKE2b-256 2a116960723fa33d9ff102d55894ef7f7e9c1e1115310a436ed2d22eda68e98d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page