SaaSHub helps you find the best software and product alternatives Learn more →
Python Werkzeug Projects
-
#!/usr/bin/python # # https://flask.palletsprojects.com/en/3.0.x/installation/ # from flask import Flask, jsonify, request contacts = [ { "id": "1", "firstname": "Lorem", "lastname": "Ipsum", "email": "[email protected]", }, { "id": "2", "firstname": "Mauris", "lastname": "Quis", "email": "[email protected]", }, { "id": "3", "firstname": "Donec Purus", "lastname": "Purus", "email": "[email protected]", } ] app = Flask(__name__, static_url_path='', static_folder='public',) @app.route("/contact//save", methods=["PUT"]) def save_contact(id): data = request.json contacts[id - 1] = data return jsonify(contacts[id - 1]) @app.route("/contact/", methods=["GET"]) @app.route("/contact//edit", methods=["GET"]) def get_contact(id): return jsonify(contacts[id - 1]) @app.route('/') def root(): return app.send_static_file('index.html') if __name__ == '__main__': app.run(debug=True)
-
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Python Werkzeug related posts
- Flask like web framework under 100 lines of code
- Add headers in a Flask app with unicode_literals
- Difference between python 2.7 and 3.3+ when importing in __init__.py and module from same directory
- flaskr tutorial; can't import flaskr (initialize database)
- Creating a ‘ghost’ website?
- Pylint - Pylint unable to import flask.ext.wtf?
- I found (and fixed) a vulnerability in Python
-
A note from our sponsor - SaaSHub
www.saashub.com | 28 Mar 2024