Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Point72_csp-gateway /csp_gateway /server /cli.py
| import logging | |
| from pprint import pprint | |
| import hydra | |
| from ccflow import ModelRegistry | |
| from csp_gateway import __version__ | |
| log = logging.getLogger(__name__) | |
| def main(cfg): | |
| log.info("Loading csp-gateway config...") | |
| registry = ModelRegistry.root() | |
| registry.load_config(cfg=cfg, overwrite=True) | |
| gateway = registry["gateway"] | |
| log.info(f"Starting csp_gateway version {__version__}") | |
| kwargs = cfg["start"] | |
| if kwargs: # i.e. start=False override on command line | |
| log.info(f"Starting gateway with arguments: {kwargs}") | |
| gateway.start(**kwargs) | |
| else: | |
| pprint(gateway.model_dump(by_alias=True)) | |
| if __name__ == "__main__": | |
| main() | |
Xet Storage Details
- Size:
- 758 Bytes
- Xet hash:
- 436abaae733c435a84b9399d295357448015db534e2f53e87677795ab3e4b954
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.