Skip to main content

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

Release files for developer-tools-exponential 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for developer-tools-exponential 0.1.1
File Size Uploaded
developer-tools-exponential-0.1.1.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for developer-tools-exponential 0.1.1
File Interpreter ABI Platform
developer_tools_exponential-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / developer-tools-exponential-0.1.1.tar.gz

Download URL developer-tools-exponential-0.1.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1768e1074127b50063a153791f7fa5d5522a97cb6af1ac9d69f4c48d8ab5c1ed
BLAKE2b-256 checksum
How to use checksums
cef3105e36344758941aa61e879f27b5c36df26caa1dc4195c0ba400def8e446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / developer_tools_exponential-0.1.1-py3-none-any.whl

Download URL developer_tools_exponential-0.1.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
677a365cede271a96e3d957e7aacc4b83420639a57917e29139e1dfe9c265ac0
BLAKE2b-256 checksum
How to use checksums
94f6d370134a122ceeb2b3e78d76a109d82e73c140b32e141011dd8d60f8c823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page