Skip to content

Commit

Permalink
[release] prepare for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed May 26, 2022
1 parent 6d7f591 commit b566b73
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ A web framework built on top of Flask
<br>
<br>

[![PyPI version](https://badge.fury.io/py/nasse.svg)](https://pypi.org/project/nasse/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/nasse)](https://pypistats.org/packages/nasse)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/nasse)](https://pypi.org/project/nasse/)
[![PyPI - Status](https://img.shields.io/pypi/status/nasse)](https://pypi.org/project/nasse/)
[![GitHub - License](https://img.shields.io/github/license/Animenosekai/nasse)](https://github.com/Animenosekai/nasse/blob/master/LICENSE)
[![GitHub top language](https://img.shields.io/github/languages/top/Animenosekai/nasse)](https://github.com/Animenosekai/nasse)
[![CodeQL Checks Badge](https://github.com/Animenosekai/nasse/workflows/CodeQL%20Python%20Analysis/badge.svg)](https://github.com/Animenosekai/nasse/actions?query=workflow%3ACodeQL)
[![PyPI version](https://badge.fury.io/py/Nasse.svg)](https://pypi.org/project/nasse/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/Nasse)](https://pypistats.org/packages/nasse)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Nasse)](https://pypi.org/project/nasse/)
[![PyPI - Status](https://img.shields.io/pypi/status/Nasse)](https://pypi.org/project/nasse/)
[![GitHub - License](https://img.shields.io/github/license/Animenosekai/Nasse)](https://github.com/Animenosekai/nasse/blob/master/LICENSE)
[![GitHub top language](https://img.shields.io/github/languages/top/Animenosekai/Nasse)](https://github.com/Animenosekai/nasse)
[![CodeQL Checks Badge](https://github.com/Animenosekai/nasse/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Animenosekai/nasse/actions/workflows/codeql-analysis.yml)
[![Pytest](https://github.com/Animenosekai/nasse/actions/workflows/pytest.yml/badge.svg)](https://github.com/Animenosekai/nasse/actions/workflows/pytest.yml)
![Code Size](https://img.shields.io/github/languages/code-size/Animenosekai/nasse)
![Repo Size](https://img.shields.io/github/repo-size/Animenosekai/nasse)
Expand Down Expand Up @@ -58,7 +58,7 @@ You can check if you successfully installed it by printing out its version:
```bash
$ python -c "import nasse; print(nasse.__version__)"
# output:
Nasse v1.0.0
Nasse v1.1
```

## Purpose
Expand Down Expand Up @@ -187,7 +187,7 @@ It accepts a lot of parameters:

> The name of the endpoint, used for documentation purposes
- `description`: str = Default("")
- `description`: str | dict[method\<str>:str] = Default("")

> The description of the endpoint, used for documentation purposes
Expand All @@ -199,7 +199,7 @@ It accepts a lot of parameters:

> What the endpoint returns, used for documentation purposes
- `login`: models.Login = Default(models.Login(required=False))
- `login`: models.Login | dict[method\<str>:models.Login] = Default(models.Login(required=False))

> The login which can be used to access the endpoint
Expand Down Expand Up @@ -280,7 +280,6 @@ Here are its parameters:

- `required`: if the login is required
- `types`: the type of account that are allowed to access this endpoint
- `methods`: the methods where the login applies to
- `no_login`: if no login is required
- `verification_only`: if it is only required to verify the login token but not to get the account (this will avoid retrieving the account on each request but still validate the token)

Expand Down Expand Up @@ -426,6 +425,7 @@ If the endpoint is configured as a JSON endpoint, it will be formatted using the
{
"success": true,
"error": null,
"message": "",
"data": {}
}
```
Expand Down
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ TOP PRIORITY
TODO
- Test Environment/CLI
- Writing Tests
- Support for Windows

WAITING FOR TEST
- Decide what to do for different login rules for different methods
Expand Down
2 changes: 1 addition & 1 deletion nasse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __getattribute__(self, name: str):
__copyright__ = 'Copyright 2022, Nasse'
__credits__ = ['animenosekai']
__license__ = 'MIT License'
__version_tuple__ = (1, 0, 2)
__version_tuple__ = (1, 1)


def __version_string__():
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
setup(
name="Nasse",
packages=["nasse"],
version="1.0.2",
version="1.1",
license="MIT License",
description="A web server framework written on top of Flask",
author="Anime no Sekai",
author_email="niichannomail@gmail.com",
url="https://github.com/Animenosekai/nasse",
download_url="https://github.com/Animenosekai/nasse/archive/v1.0.2.tar.gz",
download_url="https://github.com/Animenosekai/nasse/archive/v1.1.tar.gz",
keywords=['python', 'Anime no Sekai', "animenosekai", "Nasse", "flask", "framework", "web", "web-server", "web-framework"],
install_requires=[
'typing; python_version<"3.5"',
Expand Down

0 comments on commit b566b73

Please sign in to comment.