gdata.client和gdata-python-client里面的gdata.service有什么不同?

时间:2013-04-05 09:07:16

标签: python gdata gdata-python-client

当我同时阅读时,他们似乎都是针对同一件事并由同一作者撰写。 那么这两者有什么不同呢?

由于

1 个答案:

答案 0 :(得分:2)

service.py模块用于库的v1实施,通过为client.py实施引入v2,大大改进了该模块。大多数(如果不是全部)剩余的GData API仅使用 client实现。

来自client.py的{​​{3}}:

"""Provides a client to interact with Google Data API servers.

This module is used for version 2 of the Google Data APIs. The primary class
in this module is GDClient.

  GDClient: handles auth and CRUD operations when communicating with servers.
  GDataClient: deprecated client for version one services. Will be removed.
"""