This project provides a simple function, dump_metadata, which takes a flask app and writes a JSON file with information about the app, including the template_folder and static_folder settings, and a dictionary of all routes defined in the application. Basic usage:
from flask import Flask
from vim_flask_tools import dump_metadata
app = Flask(__name__)
dump_metadata(app, project_file='.flask_tools.json')
By default, the second argument is not necessary, but could be used to customize the config file's name. Ideally, the function should be called only in development mode, when it would be called every time the app is restarted.
This file is indented to be used with flask_tools.vim, though technically, nothing is stopping you from using this metadata with your own custom tool if you'd like.
Metadata
Release files for vim_flask_tools 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vim_flask_tools-0.0.2.tar.gz | 2.4 kB | Without provenance | Details for vim_flask_tools-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vim_flask_tools-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for vim_flask_tools-0.0.2-py3-none-any.whl |
Total release size: 5.6 kB
Release files / vim_flask_tools-0.0.2.tar.gz
| Download URL | vim_flask_tools-0.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e300379670f0b1cb3fab278c2b5a04a00e8f72a6cce744d3e7c60ba16f061b
|
|
BLAKE2b-256 checksum How to use checksums |
93686b0222a3dbe540f7c2f8603cec38285f7d75b0cb4ca706ce2a75fbffc4e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
|
Release files / vim_flask_tools-0.0.2-py3-none-any.whl
| Download URL | vim_flask_tools-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a08794242058d7983e483ba8aad283c459b6eeda4c80e6b4f36f1bc1fabac06
|
|
BLAKE2b-256 checksum How to use checksums |
a6b1e42e9fdde1f2fd9f45370ae776b32feb154fb171fcfde13e8a38d18fb4e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
|
Security for vim_flask_tools 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.