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.14.tar.gz (27.0 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.14.tar.gz.

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.14.tar.gz
  • Upload date:
  • Size: 27.0 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.14.tar.gz
Algorithm Hash digest
SHA256 22eb9b191b9ceb7319a51cdae539a5b0819ad4c9b3547e08d5cacffbfa1ec93c
MD5 4c1be0772b2480be3d95aa2b3359c67c
BLAKE2b-256 0f4c02fd3a483be4bf70044ee59b29dc237db658bf4ca0dc265c948b2016c5f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 6b988c157fc928f80e9405596e9ebfa7df709fbc6260ab63cf13a7e9d54db63f
MD5 5ef3fc050614e0b340aee325903fc664
BLAKE2b-256 98b175157480ab4c116f99b56c3e95f14a799265e59ed3b336d30b70b6a0f7f4

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