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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xbow_validation_benchmarks_sdk-0.0.10.tar.gz.
File metadata
- Download URL: xbow_validation_benchmarks_sdk-0.0.10.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20a4d1f3f37c9470bb7d5b9ae7954c1a4620accde544df8ed75d4c5cedebd65b
|
|
| MD5 |
6be8e57ca4b8ae7eebbaa7142bf84f5a
|
|
| BLAKE2b-256 |
54badcfe6f2ab98047225496dbaac7dd91ce6469d7e2e4028a2a01c544344e1b
|
File details
Details for the file xbow_validation_benchmarks_sdk-0.0.10-py3-none-any.whl.
File metadata
- Download URL: xbow_validation_benchmarks_sdk-0.0.10-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8871dd5aca446afb787e934599f12b42fb77fb118efff156861161f8994e88b6
|
|
| MD5 |
72bfbafbf7e34c6946cee3d66124accd
|
|
| BLAKE2b-256 |
47a48aa6aaf3635a857063cdd7d77e288ba3a3453fdfb98c0f72d63ea2b5fcb6
|