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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

developer_tools_exponential-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file developer-tools-exponential-0.1.1.tar.gz.

File metadata

File hashes

Hashes for developer-tools-exponential-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1768e1074127b50063a153791f7fa5d5522a97cb6af1ac9d69f4c48d8ab5c1ed
MD5 2d1537a676d9183b20e8004cc7b206e1
BLAKE2b-256 cef3105e36344758941aa61e879f27b5c36df26caa1dc4195c0ba400def8e446

See more details on using hashes here.

File details

Details for the file developer_tools_exponential-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for developer_tools_exponential-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 677a365cede271a96e3d957e7aacc4b83420639a57917e29139e1dfe9c265ac0
MD5 40fa8bbb738e4543c68ece37a4181e8e
BLAKE2b-256 94f6d370134a122ceeb2b3e78d76a109d82e73c140b32e141011dd8d60f8c823

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