如何使用python API?

时间:2019-02-27 17:59:47

标签: python api

我有这个特定的API:https://github.com/leandrotoledo/python-correios 如何在代码中使用它? (因为它是github api,所以不需要OAuth或类似的东西,只需直接使用即可)

1 个答案:

答案 0 :(得分:0)

如果您想直接访问所有课程,则可以进行点安装。 只需克隆它,然后继续进行pip安装。

git clone https://github.com/leandrotoledo/python-correios.git
cd python-correios
pip install .

现在您可以在python库/类中使用它。像这样:

from correios import Correios