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

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 5f100f951597484ee3ac8d004796fb0eb83eb07ed1924714dff18b56639f7015
MD5 d4e812ccd1f69a66a2bd20be317d28a1
BLAKE2b-256 97aca5153fe14a0833ec9e0cb06e05b8753d4b50c783d95eb06a9d9da63deb90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xbow_validation_benchmarks_sdk-0.0.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 5f844f73d31c9d617b9265051c700985febda75294d9c31f286759b5819a450b
MD5 2a8338a7b577fb95e12494da51517ece
BLAKE2b-256 ff1b2d06d4207648ae696eb2f637b4a9b87e221de6c116bec698597a0aa4296a

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