Flaxon 0.3.0 and Teloce-Py 0.3.0 are available on PyPI. Release instructions are maintained on this site; source links identify the framework snapshot. Check version and upgrade guidance.

Framework source ยท Markdown

Flaxon VS Code Extension - Quick Cheat Sheet

A 2-minute overview of everything the Flaxon VS Code Extension provides.


๐Ÿš€ Main Features

โœ… Route Explorer

View every route in your project from the sidebar.


โœ… CodeLens

Run or debug routes directly above your functions.

@app.get("/users")
# โ–ถ Run    ๐Ÿ› Debug
async def get_users():
    ...

โœ… IntelliSense

Smart auto-completion for:

  • Routes
  • Schemas
  • Validation
  • Exceptions
  • Requests
  • WebSockets

โœ… Snippets

Trigger Creates
froute GET Route
fpost POST Route
fws WebSocket
fschema Schema
fplugin Plugin
ftest Test

โœ… Hover Documentation

Hover over Flaxon APIs to see documentation without leaving the editor.


โœ… Diagnostics

Detects:

  • Missing imports
  • Invalid routes
  • Non-async handlers
  • Missing returns
  • Schema issues
  • WebSocket mistakes

โœ… One-Click Run

Run your app directly from VS Code.

Flaxon: Run App

โœ… Integrated Debugging

Supports:

  • Breakpoints
  • Variables
  • Call Stack
  • Exceptions

โœ… Project Generator

Generate:

  • Projects
  • Routes
  • Schemas
  • Plugins

โŒจ๏ธ Useful Commands

Command Purpose
Create Project Generate a new Flaxon project
Run App Start the application
Debug App Launch debugger
Show Routes Open Route Explorer
Generate Route Create route
Generate Schema Create schema
Generate Plugin Create plugin
Restart Language Server Restart IntelliSense

โŒจ๏ธ Shortcuts

Shortcut Action
Ctrl+Shift+P Command Palette
Ctrl+Shift+R Route Explorer
Ctrl+Shift+F5 Run App
Ctrl+Shift+U Output Panel

๐Ÿ“‚ Project Detection

The extension automatically activates when it finds:

app.py
main.py
run.py
flaxon.py

{
    "flaxon.entryPoint": "app:app",
    "flaxon.enableRouteExplorer": true,
    "flaxon.enableCodeLens": true,
    "flaxon.enableDiagnostics": true,
    "flaxon.enableCompletions": true
}

๐Ÿ’ก Typical Workflow

Create Project
      โ†“
Write Routes
      โ†“
Use Snippets
      โ†“
Route Explorer
      โ†“
Run App
      โ†“
Debug
      โ†“
Test

๐Ÿ›  Common Fixes

Problem Solution
No routes Save the file
No IntelliSense Restart Language Server
No CodeLens Enable CodeLens
Extension inactive Open a Python file
Debug issues Install Python extension

๐Ÿ“ฆ Best Experience

Recommended VS Code extensions:

  • Python
  • Pylance
  • Error Lens
  • GitHub Pull Requests

๐ŸŽฏ What You Get

  • โšก Fast project scaffolding
  • ๐Ÿง  Intelligent auto-completion
  • ๐Ÿ“ Route Explorer
  • โ–ถ One-click run
  • ๐Ÿ› Integrated debugging
  • ๐Ÿ”Ž Hover documentation
  • ๐Ÿ“ Code snippets
  • ๐Ÿ“Š Live diagnostics
  • ๐Ÿ”Œ Language Server support

In short: The Flaxon VS Code Extension brings an IDE-like development experience to Flaxon, making it easier to build, navigate, debug, and maintain Python web applications without leaving Visual Studio Code.