Skip to main content

Flask module for request validation

Project description

developer-utils-flask


validateCredential

This method can be used to validate calls made from the Exponential server to the API. To use this, download this package and import validateCredential then use it as a decorator function.

Installation:

pip install developer-tools-exponential

Quick Start:

from flask import Flask, request
from exponential import validateCredentials
from dotenv import load_dotenv

app = Flask(__name__)
load_dotenv()

@app.route('/', methods=['GET', 'POST'])
@validateCredentials(os.getenv("API_SECRET_KEY"))
def hello_world():
	return 'Hello World'

if __name__ == '__main__':
	app.run()

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

developer-tools-exponential-0.1.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

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