Pyjo.AWS - Amazon Web Services for Pyjoyment

import Pyjo.AWS.Client
import Pyjo.AWS.Protocol.Query
import Pyjo.AWS.Protocol.RestJSON

sts = Pyjo.AWS.Client.new(service='sts')
print(sts.call(Pyjo.AWS.Protocol.Query.new('GetCallerIdentity', version='2011-06-15')).at('Arn').text)

lambda_ = Pyjo.AWS.Client.new(service='lambda', region='eu-central-1')
print(lambda_.call(Pyjo.AWS.Protocol.RestJSON.new('GET', '/2018-10-31/layers'))['Layers'])

Pyjo.AWS is the namespace of the APIs of Amazon Web Services for Pyjoyment, which Pyjo.UserAgent calls, without an SDK: Pyjo.AWS.Client calls them, blocking and non-blocking, with the protocols of Pyjo.AWS.Protocol, Pyjo.AWS.SigV4 signs its requests, with the credentials of Pyjo.AWS.Credentials, which Pyjo.AWS.Credentials.Chain finds as the SDKs of AWS do, and Pyjo.AWS.Config reads the shared configuration files of AWS.

It is for a program that needs a few calls of AWS and no dependency for them, not a replacement of the SDKs of AWS, which have every API.

See also

Pyjo.AWS.Client, Pyjo.AWS.SigV4, Pyjo.AWS.Credentials, Pyjo.AWS.Config, Pyjo.UserAgent, Pyjoyment, https://github.com/pyjoyment/Pyjoyment.