Hug is a Python 3+ framework for developing REST APIs as simply as possible. It supports both synchronous and asynchronous endpoints, automatic input validation, and built-in interactive documentation. Current version is 2.6.1 (released August 2019). The project is in maintenance mode (no releases since 2019).
pip install hugNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a simple GET endpoint and serve it on default port 8000.
Pin falcon <2.0 or test with `__hug__.future = True`
Use Python >=3.6
Upgrade to hug >=2.5.1
Upgrade to hug >=2.5.1
Pin falcon<2.0 or set `__hug__.future = True` before importing hug.
Use `import hug` and then `@hug.route('/path')` or `from hug import route` (direct import from hug package).Ensure your response handlers return strings or use `hug.output_format.json` properly.
No dependency data recorded yet.