-
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #824 from hugapi/develop
2.6.0
- Loading branch information
Showing
25 changed files
with
172 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 2.5.6 | ||
current_version = 2.6.0 | ||
|
||
[bumpversion:file:.env] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tidelift: "pypi/hug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Security Policy | ||
|
||
hug takes security and quality seriously. This focus is why we depend only on thoroughly tested components and utilize static analysis tools (such as bandit and safety) to verify the security of our code base. | ||
If you find or encounter any potential security issues, please let us know right away so we can resolve them. | ||
|
||
## Supported Versions | ||
|
||
| Version | Supported | | ||
| ------- | ------------------ | | ||
| 2.5.6 | :white_check_mark: | | ||
|
||
Currently, only the latest version of hug will receive security fixes. | ||
|
||
## Reporting a Vulnerability | ||
|
||
To report a security vulnerability, please use the | ||
[Tidelift security contact](https://tidelift.com/security). | ||
Tidelift will coordinate the fix and disclosure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import hug | ||
|
||
@hug.cli() | ||
def add(numbers: list=None): | ||
return sum([int(number) for number in numbers]) | ||
|
||
|
||
if __name__ == "__main__": | ||
add.interface.cli() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
matplotlib==3.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import io | ||
|
||
import hug | ||
from matplotlib import pyplot | ||
|
||
|
||
@hug.get(output=hug.output_format.png_image) | ||
def plot(): | ||
pyplot.plot([1, 2, 3, 4]) | ||
pyplot.ylabel('some numbers') | ||
|
||
image_output = io.BytesIO() | ||
pyplot.savefig(image_output, format='png') | ||
image_output.seek(0) | ||
return image_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ | |
""" | ||
from __future__ import absolute_import | ||
|
||
current = "2.5.6" | ||
current = "2.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
-r common.txt | ||
flake8==3.3.0 | ||
pytest-cov==2.4.0 | ||
pytest==4.3.1 | ||
python-coveralls==2.9.0 | ||
wheel==0.29.0 | ||
PyJWT==1.4.2 | ||
pytest-xdist==1.14.0 | ||
numpy==1.15.4 | ||
|
||
flake8==3.5.0 | ||
pytest-cov==2.7.1 | ||
pytest==4.6.3 | ||
python-coveralls==2.9.2 | ||
wheel==0.33.4 | ||
PyJWT==1.7.1 | ||
pytest-xdist==1.29.0 | ||
numpy<1.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ isort==4.3.20 | |
pep8-naming==0.8.2 | ||
flake8-bugbear==19.3.0 | ||
vulture==1.0 | ||
bandit==1.6.0 | ||
bandit==1.6.1 | ||
safety==1.8.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
-r common.txt | ||
flake8==3.3.0 | ||
isort==4.2.5 | ||
flake8==3.7.7 | ||
isort==4.3.20 | ||
marshmallow==2.18.1 | ||
pytest==4.4.2 | ||
wheel==0.29.0 | ||
pytest-xdist==1.28.0 | ||
pytest==4.6.3 | ||
wheel==0.33.4 | ||
pytest-xdist==1.29.0 | ||
numpy==1.15.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
falcon==2.0.0 | ||
requests==2.21.0 | ||
requests==2.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
bumpversion==0.5.3 | ||
Cython==0.29.6 | ||
Cython==0.29.10 | ||
-r common.txt | ||
flake8==3.5.0 | ||
ipython==6.2.1 | ||
isort==4.3.18 | ||
pytest-cov==2.5.1 | ||
pytest==4.3.1 | ||
python-coveralls==2.9.1 | ||
tox==2.9.1 | ||
flake8==3.7.7 | ||
ipython==7.5.0 | ||
isort==4.3.20 | ||
pytest-cov==2.7.1 | ||
pytest==4.6.3 | ||
python-coveralls==2.9.2 | ||
tox==3.12.1 | ||
wheel | ||
pytest-xdist==1.20.1 | ||
pytest-xdist==1.29.0 | ||
marshmallow==2.18.1 | ||
ujson==1.35 | ||
numpy==1.15.4 | ||
numpy<1.16 | ||
|
Oops, something went wrong.