Types¶
Type aliases¶
These are helper types used to describe common types encountered throughout his library.
- aiostem.types.AnyAddress¶
Any IP address, either IPv4 or IPv6.
alias of
IPv4Address|IPv6Address
- aiostem.types.AnyHost¶
Any host, either by IP address or hostname.
alias of
Annotated[IPv4Address|IPv6Address|str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode=’left_to_right’)])]
- aiostem.types.AnyPort¶
Any TCP or UDP port.
alias of
Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Gt(gt=0), Lt(lt=65536)])]
- aiostem.types.Base16Bytes¶
Bytes that are hex encoded.
alias of
Annotated[bytes,EncodedBytes(encoder=Base16Encoder, when_used=always)]
- aiostem.types.Base32Bytes¶
Bytes that are base32 encoded.
alias of
Annotated[bytes,EncodedBytes(encoder=Base32Encoder, when_used=always)]
- aiostem.types.Base64Bytes¶
Bytes that are base64 encoded.
alias of
Annotated[bytes,EncodedBytes(encoder=Base64Encoder, when_used=always)]
- aiostem.types.DatetimeUTC¶
A datetime that always puts or convert to UTC.
alias of
Annotated[datetime,TrAfterAsTimezone(timezone=datetime.timezone.utc)]
- aiostem.types.RSAPublicKeyBase64¶
Base64 encoded bytes parsed as a public RSA key.
alias of
Annotated[RSAPublicKey,TrRSAPublicKey(encoding=<Encoding.DER: ‘DER’>, format=<PublicFormat.PKCS1: ‘Raw PKCS#1’>),EncodedBytes(encoder=Base64Encoder, when_used=always)]
- aiostem.types.TimedeltaMilliseconds¶
A
timedeltaparsed from an integer value in milliseconds.alias of
Annotated[timedelta,TrBeforeTimedelta(unit=milliseconds, is_float=True)]
- aiostem.types.TimedeltaMinutesInt¶
A
timedeltaparsed from an integer value in minutes.alias of
Annotated[timedelta,TrBeforeTimedelta(unit=minutes, is_float=False)]
- aiostem.types.TimedeltaSeconds¶
A
timedeltaparsed from an integer value in seconds.alias of
Annotated[timedelta,TrBeforeTimedelta(unit=seconds, is_float=True)]
- aiostem.types.X25519PrivateKeyBase64¶
Base64 encoded bytes parsed as a private x25519 key.
alias of
Annotated[X25519PrivateKey,TrX25519PrivateKey(),EncodedBytes(encoder=Base64Encoder, when_used=always)]
- aiostem.types.X25519PublicKeyBase32¶
Base32 encoded bytes parsed as a public x25519 key.
alias of
Annotated[X25519PublicKey,TrX25519PublicKey(),EncodedBytes(encoder=Base32Encoder, when_used=always)]
Generic structures¶
- aiostem.types.RangeVal = ~RangeVal¶
Any boundary of a range structure (int, float, etc…).