General Bridge Infrastructure for Python

Is there a Python framework that makes it easy to create a bridge for any API?

“Bridge” in this context simply means: some websites or services provide the JSON API. I want to get the correct Python objects from the API instead of JSON.

It seems to me that the "bridge" template consists of fairly simple components:

  • request / authentication

  • defining models that match API endpoints

  • translation from JSON to model

Instead of re-creating this template from scratch for every API I want to connect to, it seems that it would be wise to just have a common “bridge” infrastructure that simply required a model definition and some tweaking for the API you wanted to use. Similar to Django, but for creating bridge libraries instead of web applications.

Does anyone know anything like this?

+4
source share
1 answer

There is a restkit that will complete the task as you expect.

but as a duplicate, I showed the states, you can also find:

  • siesta
  • or easily create your own requests , and python is a json parser.
+1
source

Source: https://habr.com/ru/post/1524392/


All Articles