OMNIXAN es un workspace Python orientado a experimentacion modular en cloud, edge, supercomputacion y computacion cuantica. El repo ya tiene una base estable para importar paquetes, ejecutar smokes y diagnosticar dependencias opcionales sin romper imports.
- Fuente de verdad de packaging:
pyproject.toml - CLI oficial:
python -m omnixan - Diagnostico oficial:
python -m omnixan doctor --json - Validacion integral local:
python -m omnixan validate --json - La API publica comun en modulos core usa
initialize(),execute(),shutdown(),get_status()yget_metrics() - Los backends cuanticos, distribuidos y GPU siguen siendo opcionales
Instalacion minima:
PYENV_VERSION=hokkaido python -m pip install -e .Extras utiles:
PYENV_VERSION=hokkaido python -m pip install -e '.[dev]'
PYENV_VERSION=hokkaido python -m pip install -e '.[quantum]'
PYENV_VERSION=hokkaido python -m pip install -e '.[distributed]'
PYENV_VERSION=hokkaido python -m pip install -e '.[cloud]'PYENV_VERSION=hokkaido python -m omnixan doctor --json
PYENV_VERSION=hokkaido python -m omnixan validate --json --skip-tests
PYENV_VERSION=hokkaido python -m pytest omnixan/testsRutina reproducible local:
./scripts/ci_local.sh baseline
./scripts/ci_local.sh optional-smokesSmokes por bloque:
PYENV_VERSION=hokkaido python -m pytest omnixan/tests -k core_block_smokeSmokes opcionales:
PYENV_VERSION=hokkaido python -m pytest omnixan/tests -k quantum_stack_smoke
PYENV_VERSION=hokkaido python -m pytest omnixan/tests -k distributed_stack_smokepython -m omnixan --help
python -m omnixan doctor --json
python -m omnixan validate --json
python -m omnixan load-balancing --smoke --json
python -m omnixan redundant-deployment --smoke --jsonomnixan/carbon_based_quantum_cloud/README.mdomnixan/edge_computing_network/README.mdomnixan/heterogenous_computing_group/README.mdomnixan/in_memory_computing_cloud/README.mdomnixan/quantum_cloud_architecture/README.mdomnixan/supercomputing_interconnect_cloud/README.mdomnixan/virtualized_cluster/README.md
CHANGELOG.mdomnixan/docs/ARCHITECTURE.mdomnixan/docs/AMARR_PRINCIPLES.mdomnixan/docs/BLOCK_CANON_MAP.mdomnixan/docs/CLI.mdomnixan/docs/DATA_MODEL.mdomnixan/docs/DAILY_TASKS.mdomnixan/docs/DEVELOPMENT.mdomnixan/docs/INTERNAL_RELEASE_2026-04-01.mdomnixan/docs/MODULE_CLASSIFICATION.mdomnixan/docs/PACKAGING.mdomnixan/docs/QUANTUM_GAP_AUDIT.mdomnixan/docs/QUANTUM_PIPELINE.mdomnixan/docs/REPO_STATUS.mdomnixan/docs/SERVICE_LANGUAGE.mdomnixan/docs/SERVICE_MAP.mdomnixan/docs/SUPPORT_STATUS.mdomnixan/docs/VISION.md
import asyncio
from omnixan.carbon_based_quantum_cloud.load_balancing_module.module import (
BackendConfig,
HealthCheckConfig,
LoadBalancingAlgorithm,
LoadBalancingAlgorithmType,
LoadBalancingModule,
LoadBalancingModuleConfig,
Request,
)
async def main() -> None:
module = LoadBalancingModule(
LoadBalancingModuleConfig(
algorithm=LoadBalancingAlgorithm(
algorithm_type=LoadBalancingAlgorithmType.ROUND_ROBIN
),
health_check=HealthCheckConfig(healthy_threshold=1),
)
)
await module.initialize()
try:
await module.add_backend(BackendConfig(host="127.0.0.1", port=8080))
result = await module.route_request(Request(client_ip="127.0.0.1"))
print(result.backend_id)
print(module.get_status())
finally:
await module.shutdown()
asyncio.run(main())