Repository navigation
v0.4.0 — info() + Resource Limits
What's New
M3: Container Introspection & Resource Limits
Added
info()— live container snapshot: status, uptime, memory, CPU, PIDs, processes, networkreboot()— restart in place;reboot(fresh=True)recreates with same configmem_limitparameter forcreate_new_container()(e.g."256m","1g")cpu_percentparameter forcreate_new_container()(e.g.50for 50% CPU cap)ContainerInfodataclass with 15 fields for container introspectionget_container_stats(),get_container_top(),restart_container()socket client endpoints_helpers.pymodule withformat_bytes,parse_mem_limit,parse_iso_timestamp,compute_cpu_percent- Resource limits via
HostConfig(Memory,NanoCpus) in container creation - All new methods available on both
AsyncContainer(async) andContainer(sync)
Fixed
- Python 3.10 compatibility: catch
asyncio.TimeoutErrorin exec timeout handling
Stats
- 305 tests, 100% line+branch coverage
- Zero ruff warnings, mypy --strict clean, bandit clean
Full Changelog: v0.3.0...v0.4.0