Skip to main content

package to interact with the Main API of dadard.fr

Project description

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 :

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dadard_apis_common_pack-1.18.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file dadard_apis_common_pack-1.18.tar.gz.

File metadata

  • Download URL: dadard_apis_common_pack-1.18.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for dadard_apis_common_pack-1.18.tar.gz
Algorithm Hash digest
SHA256 0fa7b8b1138f6c84424e75089fcdb1bf15c9e6922d49f594ab580058d6407e2c
MD5 fc6ac64134712341d2c409040eab2b2b
BLAKE2b-256 4fe9c5a15a0b1140ef3b14f678e417ab864b859ffa3e3084da11e903390a3f9d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page