Buckets:
| from enum import StrEnum | |
| class ACR(StrEnum): | |
| """ | |
| List of defined Authentication Context Class Reference. | |
| """ | |
| LEVEL_ZERO = "0" | |
| """Level 0. No authentication was performed, a previous session was used.""" | |
| LEVEL_ONE = "1" | |
| """Level 1. Password authentication was performed.""" | |
| def __lt__(self, other: object) -> bool: | |
| return self._compare(other, True, True) | |
| def __le__(self, other: object) -> bool: | |
| return self._compare(other, False, True) | |
| def __gt__(self, other: object) -> bool: | |
| return self._compare(other, True, False) | |
| def __ge__(self, other: object) -> bool: | |
| return self._compare(other, False, False) | |
| def _compare(self, other: object, strict: bool, asc: bool) -> bool: | |
| if not isinstance(other, ACR): | |
| return NotImplemented | |
| if self == other: | |
| return not strict | |
| for elem in ACR: | |
| if self == elem: | |
| return asc | |
| elif other == elem: | |
| return not asc | |
| raise RuntimeError() | |
Xet Storage Details
- Size:
- 1.06 kB
- Xet hash:
- bef7f637060a3a93ff87fa321aa7e6e4d01b047999f6e45191d9f2a8914ec835
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.