aws-crt-python の API リファレンス
aws-crt-python (awslabs/aws-crt-python) の公開 API 130 件 —— クラス 74、関数 10、メソッド 46。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: awslabs/aws-crt-python
| 種別 | 件数 |
|---|---|
| クラス | 74 |
| 関数 | 10 |
| メソッド | 46 |
API 一覧
class
awscrt.NativeResourceBase for classes that bind to a native type.
class
awscrt.aio.http.AIOHttp2ClientConnectionAn async HTTP/2 only client connection.
method
awscrt.aio.http.AIOHttp2ClientConnection.update_window(increment_size:int) -> NoneUpdate the connection's flow control window.
class
awscrt.aio.http.AIOHttp2ClientStreamHTTP/2 stream that sends a request and receives a response.
class
awscrt.aio.http.AIOHttpClientConnectionAn async HTTP/1.1 only client connection.
class
awscrt.auth.AwsSignatureTypeWhich sort of signature should be computed from the signable.
class
awscrt.auth.AwsSigningAlgorithmAWS signing algorithm enumeration.
class
awscrt.auth.AwsSigningConfigConfiguration for use in AWS-related signing.
func
awscrt.auth.aws_sign_request(http_request, signing_config)Perform AWS HTTP request signing.
class
awscrt.aws_iot_metrics.IoTMetricsMetadataA key-value pair for IoT SDK metrics metadata.
class
awscrt.cbor.AwsCborTypeCBOR data type enumeration.
func
awscrt.checksums.crc32(input:bytes, previous_crc32:int=0) -> intPerform a CRC32 (Ethernet, gzip) computation.
func
awscrt.checksums.crc32c(input:bytes, previous_crc32c:int=0) -> intPerform a Castagnoli CRC32c (iSCSI) computation.
func
awscrt.checksums.crc64nvme(input:bytes, previous_crc64nvme:int=0) -> intPerform a CRC64 NVME computation.
func
awscrt.common.get_cpu_count_for_group(group_idx:int) -> intReturns number of processors in a given group.
func
awscrt.common.get_cpu_group_count() -> intReturns number of processor groups on the system.
func
awscrt.common.join_all_native_threads(*timeout_sec:float=-1.0) -> boolWaits for all native threads to complete their join call.
method
awscrt.crypto.EC.decode_der_signature(signature:bytes) -> ECRawSignatureDecodes ec signature into raw r and s.
method
awscrt.crypto.EC.decode_der_signature_to_padded_pair(signature:bytes, pad_to:int) -> bytesDecodes ec signature into padded r || s.
method
awscrt.crypto.EC.encode_raw_signature(signature:ECRawSignature) -> bytesEncodes raw signature into der.
method
awscrt.crypto.EC.export_key(export_format:ECExportFormat) -> bytesExports the key in specified format.
method
awscrt.crypto.EC.get_public_coords() -> ECPublicCoordsGet public coords of the key
method
awscrt.crypto.EC.new_generate(type:ECType) -> 'EC'Generates a new instance of EC key pair.
method
awscrt.crypto.EC.new_key_from_der_data(der_data:Union[bytes, bytearray, memoryview]) -> 'EC'Creates a new instance of EC key pair from der data.
method
awscrt.crypto.EC.sign(digest:Union[bytes, bytearray, memoryview]) -> bytesSigns data using a given algorithm.
method
awscrt.crypto.EC.verify(digest:Union[bytes, bytearray, memoryview], signature:Union[bytes, bytearray, memoryview]) -> boolVerifies signature against digest.
class
awscrt.crypto.ECExportFormatEC Export format
class
awscrt.crypto.ECTypeElliptic Curve Type
class
awscrt.crypto.ED25519ExportFormatED25519 Export format
method
awscrt.crypto.RSA.decrypt(encryption_algorithm:RSAEncryptionAlgorithm, ciphertext:Union[bytes, bytearray, memoryview]) -> bytesDecrypts data using a given algorithm.
method
awscrt.crypto.RSA.encrypt(encryption_algorithm:RSAEncryptionAlgorithm, plaintext:Union[bytes, bytearray, memoryview]) -> bytesEncrypts data using a given algorithm.
method
awscrt.crypto.RSA.sign(signature_algorithm:RSASignatureAlgorithm, digest:Union[bytes, bytearray, memoryview]) -> bytesSigns data using a given algorithm.
method
awscrt.crypto.RSA.verify(signature_algorithm:RSASignatureAlgorithm, digest:Union[bytes, bytearray, memoryview], signature:Union[bytes, bytearray, memoryview]) -> boolVerifies signature against digest.
class
awscrt.crypto.RSAEncryptionAlgorithmRSA Encryption Algorithm
class
awscrt.crypto.RSASignatureAlgorithmRSA Encryption Algorithm
class
awscrt.eventstream.HeaderA header in an event-stream message.
method
awscrt.eventstream.Header.from_string(name:str, value:str) -> 'Header'Create a Header of type :attr:`~HeaderType.STRING`
method
awscrt.eventstream.Header.name() -> strHeader name
method
awscrt.eventstream.Header.type() -> HeaderTypeHeader type
method
awscrt.eventstream.Header.value() -> AnyHeader value The header's type determines the value's type.
class
awscrt.eventstream.HeaderTypeSupported types for the value within a Header
class
awscrt.eventstream.rpc.ClientConnectionA client connection for the event-stream RPC protocol.
method
awscrt.eventstream.rpc.ClientConnection.close()Close the connection.
method
awscrt.eventstream.rpc.ClientConnection.new_stream(handler:'ClientContinuationHandler') -> 'ClientContinuation'Create a new stream.
class
awscrt.eventstream.rpc.ClientConnectionHandlerBase class for handling connection events.
method
awscrt.eventstream.rpc.ClientConnectionHandler.on_connection_shutdown(reason:Optional[Exception], **kwargs) -> NoneInvoked when the connection finishes shutting down.
class
awscrt.eventstream.rpc.ClientContinuationA continuation of messages on a given stream-id.
class
awscrt.eventstream.rpc.ClientContinuationHandlerBase class for handling stream continuation events.
method
awscrt.eventstream.rpc.ClientContinuationHandler.on_continuation_closed(**kwargs) -> NoneInvoked when the continuation is closed.
class
awscrt.eventstream.rpc.MessageFlagFlags for messages in the event-stream RPC protocol.
class
awscrt.eventstream.rpc.MessageTypeTypes of messages in the event-stream RPC protocol.
class
awscrt.exceptions.AwsCrtErrorBase exception class for AWS Common Runtime exceptions.
class
awscrt.http.Http2SettingHTTP/2 Setting.
class
awscrt.http.Http2SettingIDHTTP/2 Predefined settings(RFC-9113 6.5.2).
class
awscrt.http.HttpClientConnectionAn HTTP client connection.
method
awscrt.http.HttpClientConnection.close() -> 'concurrent.futures.Future'Close the connection.
class
awscrt.http.HttpClientStreamHTTP stream that sends a request and receives a response.
method
awscrt.http.HttpClientStream.activate() -> NoneBegin sending the request.
class
awscrt.http.HttpClientStreamBaseBase for HTTP client stream classes.
method
awscrt.http.HttpClientStreamBase.response_status_code() -> Optional[int]int: The response status code.
method
awscrt.http.HttpClientStreamBase.update_window(increment_size:int) -> NoneUpdate the stream's flow control window.
method
awscrt.http.HttpClientStreamBase.version() -> HttpVersionHttpVersion: Protocol used by this stream
class
awscrt.http.HttpConnectionBaseBase for HTTP connection classes.
method
awscrt.http.HttpConnectionBase.version() -> HttpVersionHttpVersion: Protocol used by this connection
class
awscrt.http.HttpHeadersCollection of HTTP headers.
method
awscrt.http.HttpHeaders.add(name:str, value:str) -> NoneAdd a name-value pair.
method
awscrt.http.HttpHeaders.add_pairs(name_value_pairs:List[Tuple[str, str]]) -> NoneAdd list of (name,value) pairs.
method
awscrt.http.HttpHeaders.clear() -> NoneClear all headers.
method
awscrt.http.HttpHeaders.get_values(name:str) -> Iterator[str]Return an iterator over the values for this name.
method
awscrt.http.HttpHeaders.remove(name:str) -> NoneRemove all values for this name.
method
awscrt.http.HttpHeaders.remove_value(name:str, value:str) -> NoneRemove a specific value for this name.
method
awscrt.http.HttpHeaders.set(name:str, value:str) -> NoneSet a name-value pair, any existing values for the name are removed.
class
awscrt.http.HttpMessageBaseBase for HttpRequest and HttpResponse classes.
method
awscrt.http.HttpMessageBase.headers() -> 'HttpHeaders'HttpHeaders: Headers to send.
class
awscrt.http.HttpProxyAuthenticationTypeProxy authentication type enumeration.
class
awscrt.http.HttpProxyConnectionTypeProxy connection type enumeration
class
awscrt.http.HttpProxyOptionsProxy options for HTTP clients.
class
awscrt.http.HttpRequestDefinition for an outgoing HTTP request.
method
awscrt.http.HttpRequest.method() -> strstr: HTTP request method (verb).
method
awscrt.http.HttpRequest.path() -> strstr: HTTP path-and-query value.
class
awscrt.http.HttpStreamBaseBase for HTTP stream classes.
class
awscrt.http.HttpVersionHTTP protocol version enumeration
class
awscrt.io.ClientBootstrapHandles creation and setup of client socket connections.
class
awscrt.io.ClientTlsContextClient TLS context.
class
awscrt.io.DefaultHostResolverDefault DNS host resolver.
class
awscrt.io.EventLoopGroupA collection of event-loops.
class
awscrt.io.HostResolverBaseDNS host resolver.
class
awscrt.io.Pkcs11LibHandle to a loaded PKCS#11 library.
class
awscrt.io.Pkcs11Lib.InitializeFinalizeBehaviorAn enumeration.
class
awscrt.io.SocketOptionsSocket options.
class
awscrt.io.TlsCipherPrefTLS Cipher Preference.
class
awscrt.io.TlsConnectionOptionsConnection-specific TLS options.
method
awscrt.io.TlsConnectionOptions.set_server_name(server_name)Set server name.
class
awscrt.io.TlsContextOptionsOptions to create a TLS context.
method
awscrt.io.TlsContextOptions.override_default_trust_store(rootca_buffer)Override default trust store.
func
awscrt.io.init_logging(log_level, file_name)Initialize logging in `awscrt`.
func
awscrt.io.set_log_level(log_level)Change the log level of `awscrt`.
class
awscrt.logging.LogSubjectLog subject identifiers for CRT subsystems.
func
awscrt.logging.set_log_level(level:int)Change the CRT log level.
class
awscrt.mqtt.ClientMQTT client.
class
awscrt.mqtt.ConnectReturnCodeConnect return code enumeration.
class
awscrt.mqtt.ConnectionMQTT client connection.
method
awscrt.mqtt.Connection.disconnect()Close the connection (async).
method
awscrt.mqtt.Connection.publish(topic, payload, qos, retain=False)Publish message (async).
method
awscrt.mqtt.Connection.reconnect()DEPRECATED.
class
awscrt.mqtt.QoSQuality of Service enumeration [MQTT-4.3]
class
awscrt.mqtt.SubscribeErrorSubscription rejected by server.
class
awscrt.mqtt.WebsocketHandshakeTransformArgsArgument to a "websocket_handshake_transform" function.
class
awscrt.mqtt5.ConnectReasonCodeServer return code for connect attempts.
class
awscrt.mqtt5.DisconnectReasonCodeReason code inside DISCONNECT packets.
class
awscrt.mqtt5.PayloadFormatIndicatorOptional property describing a PUBLISH payload's format.
class
awscrt.mqtt5.QoSMQTT message delivery quality of service.
class
awscrt.mqtt5.RetainAndHandlingTypeDEPRECATED.
class
awscrt.mqtt5.SubackReasonCodeReason code inside SUBACK packet payloads.
class
awscrt.mqtt5.TopicAliasingOptionsConfiguration for all client topic aliasing behavior.
class
awscrt.mqtt5.WebsocketHandshakeTransformArgsArgument to a "websocket_handshake_transform" function.
class
awscrt.s3.S3ChecksumAlgorithmChecksum algorithm used to verify object integrity.
class
awscrt.s3.S3ChecksumLocationWhere to put the checksum.
class
awscrt.s3.S3RequestTlsModeTLS mode for S3 request
class
awscrt.s3.S3RequestTypeThe type of the AWS S3 request
class
awscrt.s3.S3ResponseErrorAn error response from S3.
class
awscrt.websocket.IncomingFrameDescribes the frame you are receiving.
method
awscrt.websocket.IncomingFrame.is_data_frame()True if this is a "data frame".
class
awscrt.websocket.OnConnectionSetupDataData passed to the `on_connection_setup` callback
class
awscrt.websocket.OnConnectionShutdownDataData passed to the `on_connection_shutdown` callback
class
awscrt.websocket.OnIncomingFrameBeginDataData passed to the `on_incoming_frame_begin` callback.
class
awscrt.websocket.OpcodeAn opcode defines a frame's type.
method
awscrt.websocket.Opcode.is_data_frame()True if this is a "data frame" opcode.
class
awscrt.websocket.WebSocketA WebSocket connection.
method
awscrt.websocket.WebSocket.close()Close the WebSocket asynchronously.
この情報について
掲載しているシグネチャは awslabs/aws-crt-python の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。