Skip to main content

Add your description here

Project description

XBOW Validation Benchmarks SDK

Python SDK for managing XBOW validation benchmark environments.

Installation

pip install xbow-validation-benchmarks-sdk

Quick Start

from xbow_validation_benchmarks_sdk.managers.repository import BenchmarkRepository
from xbow_validation_benchmarks_sdk.managers.environment import EnvironmentManager
from xbow_validation_benchmarks_sdk.models.benchmark import Benchmark

# Initialize repository (auto-clones if needed)
repository = BenchmarkRepository()

# List available benchmarks
benchmark_ids = repository.list_benchmarks()

# Load a benchmark
benchmark_path = repository.get_benchmark_path(benchmark_ids[0])
benchmark = Benchmark.model_validate_json(
    (benchmark_path / "benchmark.json").read_text()
)

# Create and start environment
env_manager = EnvironmentManager(repository=repository)
environment = env_manager.create_environment(benchmark=benchmark, flag="FLAG{test}")
env_manager.start_environment(environment)

# Access targets
for target in environment.targets:
    print(f"Target: {target.host}:{target.port}")

# Cleanup
env_manager.stop_environment(environment)
env_manager.destroy_environment(environment)

Features

  • Repository Management: Auto-clone and update benchmark repositories
  • Environment Isolation: Each environment gets unique ports and isolated containers
  • Docker Integration: Seamless Docker Compose orchestration
  • Flag Injection: Dynamic flag configuration for CTF-style benchmarks

Requirements

  • Python >= 3.12
  • Docker

License

MIT

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

xbow_validation_benchmarks_sdk-0.0.9.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file xbow_validation_benchmarks_sdk-0.0.9.tar.gz.

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.9.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for xbow_validation_benchmarks_sdk-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e67469ed6a0dfdaef5780b4118133d66c34cb1a03c8afbbac5e4063b0d9bed86
MD5 7cb14fa63ee1e339b9b887e86cdf3c33
BLAKE2b-256 b7925f595a85a796d7f4ad061ee817297c52fd9b0a0e0071ce5e97c132b389ce

See more details on using hashes here.

File details

Details for the file xbow_validation_benchmarks_sdk-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for xbow_validation_benchmarks_sdk-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3e90689b4642d08b6f37a30ab4a42fb85d703b9dfb4aaea9c4de575753405ba1
MD5 5f31830d93a60b85c7049f21aa88072b
BLAKE2b-256 bf85419a9b546d56be6740cfbb6998eb8e81697476925bf227c60d6d506e1bcc

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