Dump code navigation information for a flask project to use in Vim
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vim_flask_tools-0.0.2.tar.gz.
File metadata
- Download URL: vim_flask_tools-0.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e300379670f0b1cb3fab278c2b5a04a00e8f72a6cce744d3e7c60ba16f061b
|
|
| MD5 |
1de44b4964db7bdfe3105007ee84fc71
|
|
| BLAKE2b-256 |
93686b0222a3dbe540f7c2f8603cec38285f7d75b0cb4ca706ce2a75fbffc4e3
|
File details
Details for the file vim_flask_tools-0.0.2-py3-none-any.whl.
File metadata
- Download URL: vim_flask_tools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a08794242058d7983e483ba8aad283c459b6eeda4c80e6b4f36f1bc1fabac06
|
|
| MD5 |
230b55b539ef5707daac7da7cc4e2fab
|
|
| BLAKE2b-256 |
a6b1e42e9fdde1f2fd9f45370ae776b32feb154fb171fcfde13e8a38d18fb4e6
|