Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vim_flask_tools-0.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vim_flask_tools-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for vim_flask_tools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c2e300379670f0b1cb3fab278c2b5a04a00e8f72a6cce744d3e7c60ba16f061b
MD5 1de44b4964db7bdfe3105007ee84fc71
BLAKE2b-256 93686b0222a3dbe540f7c2f8603cec38285f7d75b0cb4ca706ce2a75fbffc4e3

See more details on using hashes here.

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

Hashes for vim_flask_tools-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a08794242058d7983e483ba8aad283c459b6eeda4c80e6b4f36f1bc1fabac06
MD5 230b55b539ef5707daac7da7cc4e2fab
BLAKE2b-256 a6b1e42e9fdde1f2fd9f45370ae776b32feb154fb171fcfde13e8a38d18fb4e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page