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.11.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.11.tar.gz.

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 cd36f92a1d60fcd21ae3b6e15a9d4a33db65fc105bc5af450fa66ca32e15b46a
MD5 f041cf46678a039da18837ddea85a187
BLAKE2b-256 bda9f24225b3168189e821876a536f172fc2867cb37f91293d7f113c4328bb71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.11-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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a22a688409668ff4903f79c6357a103d3990578baccb3be3db39a1fb7a24ac61
MD5 ee6abea47cc14ef887a77b8e0f97df02
BLAKE2b-256 58bf0bb0d8c393d7f2bdc077e5d21a27bf69c79cbb2b1a638ae382ece57e96db

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