Hug is an API development framework implemented in Python 3. It is a micro-framework (minimalistic web application framework), which means that it contains as little code and integrations as possible to make it fully functional, which in turn provides greater performance, as in its own website indicates we can summarize Hug in 4 words “Obvious. Clean. Radically simple”.
The purpose of this repository is to provide an api Rest that has the function of executing requests of http verbs as they are:
- Get
- Post
- Put
- Delete
These instructions will allow you to get a working copy of the project on your local machine for development and testing purposes.
You need to install in a virtual environment the following
Ubuntu 18.04
Python3.3+
Hug (2.6.0)
We will install python 3 and Hug in a virtual environment
sudo pip3 install virtualenv
virtualenv env --python=python3
virtualenv env --python=python3
Once the above command is executed, a folder called env will be created and we will do the following steps:
$ cd env
$ source bin/activate
(env)$
pip3 install hug --upgrade
To run, from the command line type:
hug -f first_Api.py