{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/9"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/9"}],"enrichment":{"capability":"hug is a Python framework for building REST APIs and RPC services with minimal boilerplate, using decorators and type annotations to expose Python functions as HTTP endpoints.","skillfed_tags":["rest-api","decorator-based","type-annotations"],"use_cases":["Build a simple REST API with minimal setup\u2014decorate functions and run hug to serve them over HTTP.","Create microservices where type annotations double as both validation and API documentation.","Write testable API code by keeping endpoint functions as plain Python callables.","Prototype or migrate from RPC-style services to HTTP APIs without rewriting core logic.","Develop APIs that automatically expose interactive documentation at a /documentation endpoint."],"what_it_does":"hug is a Python web framework built on top of Falcon that simplifies REST API development by letting you decorate plain Python functions to expose them as HTTP endpoints. It uses type annotations to automatically validate and convert request parameters, and generates API documentation without requiring separate specification files. The framework is designed to keep your Python code clean and testable\u2014decorators don't modify the underlying functions, so you can call them directly in tests or other Python code.\n\nThe framework handles HTTP method routing (GET, POST, etc.), URL path parameters, query strings, and request/response lifecycle management through Falcon's high-performance HTTP library. It also supports API versioning, custom directives for dependency injection, and output formatters for different content types. hug aims to reduce boilerplate while encouraging self-documenting code through its use of Python's native type system.","worth_installing":"Yes, if you need a lightweight, decorator-based REST framework and are comfortable with its dormant maintenance status. hug is mature (Development Status 6), has no known vulnerabilities, and low install friction. However, the last release was 2020-02-06 and no active development is evident; for new projects, consider whether a more actively maintained alternative (such as one with recent releases) better fits your long-term support needs."},"id":"hug","links":{"html":"https://skillfed.io/packages/hug","md":"https://skillfed.io/packages/hug.md","pypi":"https://pypi.org/project/hug/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-02-06","license_spdx":null,"license_treatment":"permissive","name":"hug","python_support":"supports_current","summary":"A Python framework that makes developing APIs as simple as possible, but no simpler."},"popularity":{"monthly_downloads":133435,"position":11514,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.6.1"}
