hug
A Python framework that makes developing APIs as simple as possible, but no simpler.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.5 or later; hug is Python 3+ only.
- Installation is straightforward with low friction.
- The project is dormant (last release 2020-02-06, last commit 2024-07-04), but remains archived as false and has accumulated 6884 stars.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use hug freely in commercial and private projects with minimal restrictions, provided you include the license notice.
last release 2020-02-06 (2381 days) · last repo commit 2024-07-04 · 6,884 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 133,435 downloads/mo, #11,514 on PyPI
Alternatives
Verify before relying
pip install hug
import hug
@hug.get('/greet')
def greet(name: str):
return f'Hello {name}'
# Run: hug -f myfile.py- Whether the framework remains actively maintained or receives security updates despite dormant status.
- Compatibility with modern Python versions beyond 3.7 (classifiers list up to 3.7).
- Performance characteristics compared to contemporary frameworks like FastAPI or Starlette.
What it is and 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—decorators don't modify the underlying functions, so you can call them directly in tests or other Python code.
The 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.
Use it for
- Build a simple REST API with minimal setup—decorate 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
hug on PyPI
Before you install
Installation is straightforward with low friction. The project is dormant (last release 2020-02-06, last commit 2024-07-04), but remains archived as false and has accumulated 6884 stars. Depends only on falcon and requests, both stable libraries.
Requires Python 3.5 or later; hug is Python 3+ only.
License in practice
MIT license is permissive; you can use hug freely in commercial and private projects with minimal restrictions, provided you include the license notice.
Quickstart
pip install hug
import hug
@hug.get('/greet')
def greet(name: str):
return f'Hello {name}'
# Run: hug -f myfile.py
Verify before relying
- Whether the framework remains actively maintained or receives security updates despite dormant status.
- Compatibility with modern Python versions beyond 3.7 (classifiers list up to 3.7).
- Performance characteristics compared to contemporary frameworks like FastAPI or Starlette.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesfalconrequests |
| Maintenance | Dormant 2,381 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 133,435 / month, #11,514 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: LibrariesTopic :: Utilities |
Evidence: hug-2.6.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “falcon-based web framework”
- hughug is a Python framework for building REST APIs and RPC services…
- toolA compact modular framework for building WSGI web applications,…
- web-pyweb.py is a lightweight Python web framework for building web…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also falcon · webargs · CherryPy · wrapt · appier · fastapi · crowdstrike-falconpy · spectree · djangorestframework · jaraco.classes