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

Uploaded Source

File details

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

File metadata

  • Download URL: dadard_apis_common_pack-1.8.tar.gz
  • Upload date:
  • Size: 2.1 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.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for dadard_apis_common_pack-1.8.tar.gz
Algorithm Hash digest
SHA256 8f4a62fb32994faf198290c31e4fec9be902c2019b7f91fd14f56f4eb03e6daa
MD5 3969b6e6f8fe29a2a3d871018fa07388
BLAKE2b-256 1af6e9c4be73800bf491f3822e2508d5f818244486b76a2c880cbfb7c89eebde

See more details on using hashes here.

Supported by

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