Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Flask-Nav is a Flask <http://flask.pocoo.org>
_-Extension to ease the creation
of navigational Elements in Applications. It provides means to Express the
Navigational structure and different ways to render these, making it easy to
custom tailor it for your application.
A motivating example:
.. code-block:: python
from flask import Flask, render_template
from flask_nav import Nav
from flask_nav.elements import *
nav = Nav()
# registers the "top" menubar
nav.register_element('top', Navbar(
View('Widgits, Inc.', 'index'),
View('Our Mission', 'about'),
Subgroup(
'Products',
View('Wg240-Series', 'products', product='wg240'),
View('Wg250-Series', 'products', product='wg250'),
Separator(),
Label('Discontinued Products'),
View('Wg10X', 'products', product='wg10x'),
),
Link('Tech Support', href='http://techsupport.invalid/widgits_inc'),
))
app = Flask(__name__)
# [...] (view definitions)
nav.init_app(app)
You can find a small, runnable example application inside the example
folder. To run it, install Flask-Appconfig <https://github.com/mbr/flask-appconfig>
_ and execute::
$ flask --app=example dev
The full documentation <http://pythonhosted.org/flask-nav/>
_ can be found on PyPI.
FAQs
Easily create navigation for Flask applications.
We found that flask-nav 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.