Flask-imp

Latest version: v4.0.1

Safety actively analyzes 623315 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

4.0.1

- New configuration loader and config attribute for Imp and ImpBlueprint.
- Configuration can now be loaded from py files.
- License changed to MIT

For more information see docs:

[Imp.config](https://cheesecake87.github.io/flask-imp/imp-config-x.html)
[ImpBlueprint.config](https://cheesecake87.github.io/flask-imp/blueprint-config-x.html)

3.1.0

Bug fixes in the `import_app_resources` method.

- Skip file and folders that contain "__" in their name.
- Check for factories correctly in files found within folders being imported.

3.0.0

import_app_resources(
folder: str = "resources",
factories: Optional[List] = None,
static_folder: str = "static",
templates_folder: str = "templates",
files_to_import: Optional[List] = None,
folders_to_import: Optional[List] = None,
) -> None

2.8.0

imp.import_app_resources` function has change the default folder it looks for from 'global' to 'resources'

This relates more to the function itself, and also stops a bug when trying to import from global in a non-package style app.

For example:

Old

project
global/
__init__.py
routes.py
utils.py
templates/...
static/...
app.py


`app.py`
![image](https://github.com/CheeseCake87/flask-imp/assets/39418842/e8bf9017-7a6d-453a-a02f-b28ba22bf49f)


New

project
resources/
__init__.py
routes.py
utils.py
templates/...
static/...
app.py


`app.py`
![image](https://github.com/CheeseCake87/flask-imp/assets/39418842/d28ecc88-23ec-4e93-9fa9-d0317b230ba9)

2.7.10

Bug fix in `from flask_imp.auth import authenticate_password` function.

Password guessing was done using a multiprocessing pool by default. This is not compatible with coroutine workers (e.g. gevent etc... (commonly used in socketio))

Multiprocessing has been turned off by default and can be turned back on by passing the `use_multiprocessing` arg.

python
authenticate_password(
input_password,
database_password,
database_salt,
use_multiprocessing=True
)

2.7.9

Change in the way `flask-imp init` works. When run on its own without any arguments, it will ask you what level of app you want to generate.

Build tool move to flit
Lint tool move to ruff

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.