npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@suss/framework-flask-restx

v0.11.0

Published

Pattern pack for extracting suss behavioral summaries from flask-restx Resource routes, including a project's own wrapper module re-exporting the route decorator.

Downloads

3,023

Readme

@suss/framework-flask-restx

Framework pack for flask-restx Resource routes, read by the Python adapter.

What this package is

@suss/framework-flask-restx returns a PythonPack object describing:

  • Discovery: a Resource class decorated with Namespace.route(path) (or Api.route(path)), directly or through a project's own wrapper module re-exporting the decorator. Each HTTP-verb-named method declared on the class (get, post, put, delete, patch, head, options) becomes its own discovered route.
  • Boundary bindings: rest(method, path), built from the method's own name and the path the route is served at.

Namespace paths

A resource declared on a namespace is served under the namespace's own path, and its decorator states only the part after it. The pack composes the two, so Namespace(path="/orders") with @ns.route("/<int:order_id>") comes out as /orders/{order_id}, and @ns.route("") comes out as /orders. Parameters written into the namespace's path become path parameters like any other.

The composition needs the namespace constructed with a literal path and mounted once, through a variable, by an add_namespace call that states no path of its own. A route on a namespace written any other way is still discovered, under its name, with no path and a recorded reason: it pairs with nothing rather than with whatever route a guessed path would have picked out.

Where it fits in suss

Depends only on @suss/adapter-python (for the PythonPack type and the Python-language extraction pipeline). Contains no analysis logic of its own.

The wrapper-module option

Most services wrap flask-restx's route decorator in their own module rather than importing it directly. wrapperModules says which wrapper a project uses, alongside flask-restx's own module, which is always accepted:

import { flaskRestxFramework } from "@suss/framework-flask-restx";

const pack = flaskRestxFramework({ wrapperModules: ["myapp.wrappers.restx"] });

Coverage

coverage

License

Licensed under Apache 2.0. See LICENSE.