twisted / txaws

Twisted-based Asynchronous Libraries for Amazon Web Services and clouds that support the AWS APIs
MIT License
32 stars 18 forks source link

Generate APIs from botocore endpoint data #13

Open exarkun opened 7 years ago

exarkun commented 7 years ago

botocore, one of the main building blocks of boto3, the official Python AWS SDK, includes a large pile of JSON which describes the AWS endpoints in rather a lot of detail:

https://github.com/boto/botocore/tree/develop/botocore/data

botocore (or boto3, I'm not really sure) takes this data and uses it to automatically generate many (or most?) of the Python APIs which provide access to the AWS endpoints.

Presumably this saves on quite a bit of implementation complexity and maintenance effort.

Seemingly, txAWS could include a similar generator which creates Twisted-based Python APIs instead.

Would this be a good thing?

mithrandi commented 7 years ago

I assume that we'll still want/need some human intelligence guiding the shape of the higher-level API bits, but not having to write a bunch of presumably tedious code to serialize to/deserialize from XML sounds pretty good to me.

tomprince commented 7 years ago

I think this would definitely be a good thing. @dstufft might have some opinions on this soon.