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.1.tar.gz (2.3 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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file vim_flask_tools-0.0.1.tar.gz.

File metadata

  • Download URL: vim_flask_tools-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 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.1.tar.gz
Algorithm Hash digest
SHA256 eaba0e1320794b78709f2900f5f55040ecac3b94e9b80cd4d4984d18ced50ab5
MD5 115862ad6607494bbee2d89222a2ebc2
BLAKE2b-256 7662cc8ff126e6995f39170c1cbc8feddb9cec880778b0b069909ef096cc920c

See more details on using hashes here.

File details

Details for the file vim_flask_tools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: vim_flask_tools-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97f362dd3352aae9f9416d929a58bf500a727646f370035a7feb488181589297
MD5 2a2c6946828829a568ac5f765aaf9e96
BLAKE2b-256 4cec05a1585c978649049bd0642d6bbd6c353ee0f5f7284119441b6d562e3eb2

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