dadard-apis-common-pack-1.9
توضیحات
package to interact with the Main API of dadard.fr
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dadard-apis-common-pack-1.9 |
| نام | dadard-apis-common-pack |
| نسخه کتابخانه | 1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Florian Charpentier |
| ایمیل نویسنده | florian.charpentier@epita.fr |
| آدرس صفحه اصلی | http://dadard.fr:8010/dadard/DadardApisCommonPack.git |
| آدرس اینترنتی | https://pypi.org/project/dadard-apis-common-pack/ |
| مجوز | WTFPL |
DARARD.FR COMMON API PACK
-------------------------
This package is used by the APIs deployed on ``dadard.fr``.
It calls the Main API to check the subscriptions and the profiles' key.
Install it this way : ``pip install dadard-apis-common-pack``
You can import the package in your code this way :
.. code:: python
from CommonPack import CommonCaller
profile_key = 'some_private_key'
# check if the key is associated to a valid user
CommonCaller.check_profile_key(profile_key)
# check if the api given has been subscribed by this key
CommonCaller.check_is_subscribed(profile_key, api_name)
# check if the api given has not been subscribed by this key
CommonCaller.check_is_not_subscribed(profile_key, api_name)
نحوه نصب
نصب پکیج whl dadard-apis-common-pack-1.9:
pip install dadard-apis-common-pack-1.9.whl
نصب پکیج tar.gz dadard-apis-common-pack-1.9:
pip install dadard-apis-common-pack-1.9.tar.gz