Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /nfraxlab_svc-infra /src /svc_infra /jobs /targets.py
| from __future__ import annotations | |
| import importlib | |
| from typing import Any | |
| def resolve_target(path: str) -> Any: | |
| """Resolve a module:attribute(.nested) target string.""" | |
| mod_name, attr_path = path.split(":", 1) | |
| obj: Any = importlib.import_module(mod_name) | |
| for part in attr_path.split("."): | |
| obj = getattr(obj, part) | |
| return obj | |
Xet Storage Details
- Size:
- 357 Bytes
- Xet hash:
- be453c0c389aa4cc1404dd375e83da7f76e66686c2166cb18a2634d18b77f2e6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.