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.7.tar.gz (2.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: dadard_apis_common_pack-1.7.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for dadard_apis_common_pack-1.7.tar.gz
Algorithm Hash digest
SHA256 bcbd7261e9140e30245f83bfb37c280ca4fc864997f501eae4b9e6c0819875c8
MD5 c1791e164c4b72f49378fab9cb9c630e
BLAKE2b-256 0be7dbdf4bbeffda136ea01d564d0da926b9780f5c1dea5a2122e52e25557df4

See more details on using hashes here.

Supported by

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