
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
RouteUUID is a Flask extension that allows you to differentiate between various UUID versions in your routes.
UUID Version | Converter | Provider | Observation |
---|---|---|---|
UUID | <uuid:...> | werkzeug | Native; does not distinguish version |
UUID v1 | <uuid1:...> | routeuuid | |
UUID v2 | <uuid2:...> | Not Implemented | |
UUID v3 | <uuid3:...> | routeuuid | |
UUID v4 | <uuid4:...> | routeuuid | |
UUID v5 | <uuid5:...> | routeuuid |
You can install RouteUUID via pip:
pip install routeuuid
Below is a simple example of how to use RouteUUID in your Flask application:
from uuid import UUID
from flask import Flask
from routeuuid import RouteUUID
app = Flask(__name__)
# Register the custom UUID converters in the Flask app.
RouteUUID(app)
# Or:
#
# route_uuid = RouteUUID()
# ...
# route_uuid.init_app(app)
@app.route("/item/<uuid4:item_id>")
def get_item_v4(item_id: UUID):
return f"Item ID (UUID v4): {item_id}"
@app.route("/item/<uuid1:item_id")
def get_item_v1(item_id: UUID):
return f"Item ID (UUID v1): {item_id}"
if __name__ == "__main__":
app.run(debug=True)
In this example, the route /item/<uuid4:item_id>
will only accept strings that conform to the format of a UUID version 4.
This project is distributed under the MIT License. See the LICENSE file for more details.
FAQs
A Flask extension that provides UUID converters for different UUID versions.
We found that routeuuid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.