Releases: Animenosekai/nasse
v2.0.1
nasse
v2.0.1
Minor update to fix issues
Fixes
- Fixing an issue with
Login
not being hashable - Fixing a problem with endpoint inheritance and paths
Updates
- Set
category
as optional - Accept keyword arguments for handlers
- Automatically convert dataclasses using JSON
Everything is detailed in the README.md
file
A comparison from the previous release can be found here v2...v2.0.1
A comparison from the current branch can be found here v2.0.1...main
🍡 Animenosekai
v2
nasse
v2
Release note for the second version of
nasse
This version provides general improvements over the whole project, brining more stability and ease of use.
Warning
This is a breaking update !
The endpoints modelling objects are now slightly different. Most of them support method variation, which lets the app developer change the endpoint definition for different methods.
Also, this comes with several changes in how the models attributes and parameters are managed, and the public API. Please look at the new models' definition before updating.
New
- Docs Localization: You can now choose a language for the automatic documentation generation (please contribute to add your language!)
- It already comes with the English, Japanese, and French translations
- A new logging system, which is way more stable
- A new string formatting system
- A new server configuration system
- Switch to a local variables based system (more stable)
- Using
rich
to output things to the console, which improves the UI a lot - Adding a CLI to easily run Nasse apps
- Adding a TUI to test endpoints, similar to Postman
- Starting to add debug endpoints, when the server is running in
DEBUG
mode - Add a way of giving a sub category to endpoints
- Improving endpoint definitions, letting the developer the ability to document them with a Python-native approach (a big part of it can be directly extracted from the function definition)
- Introducing a new server backend based system to run the server, which allows the user to actually specify if they want to use Gunicorn or any other WSGI compatible server backend. (this fixes a pretty big bug where people on Windows couldn't really run their server)
Fixes
- Fixing a problem with CORS headers
- Fixing a problem with request verifications
- Fixing an issue with
UserSent
validation - Fixing an issue with the Windows operating system
- Fixing issues with function linking in docs generation
- Fixing several minor issues
Updates
- Using dataclasses for endpoint models
- Using
pyproject.toml
- Using correct versioning
- Using poetry
- Only log exceptions when wanted
- Better compatibility
- Improved code quality
- Improved in-code docs
- Using the
perf_counter
clock instead of theprocess_time
one for better results - Type-hinting code more
- The
Args
utility is more complete - Updating static code generation accordingly
- Making a fully custom
NasseJSONEncoder
with more flexibility (example: encoding default types) - Other little improvements
Note
Everything is detailed in theREADME.md
file
A comparison from the previous release can be found here v1.1...v2.0
A comparison from the current branch can be found here v2.0...main
🍡 Animenosekai
v1.1
New release for Nasse
!
Nasse v1.1
Welcome to Nasse
, a new web framework built on top of Flask!
This framework will help you create your web applications in no time, type safe and documented.
Addition
- A new
message
field in the data container for the response - Different
Login
for different methods - Different description for different methods
- Splitting docs on different sections
Fixes
- Fixing issues with docs generation
- Fixing multiple issues
- Better error handling
Updates
- Improve code compatibility
- Doc String for the Login model
- Changing the HTTP methods sorting algorithm
Everything is detailed in the README.md
file
A comparison from the previous release can be found here v1.0.2...v1.1
A comparison from the current branch can be found here v1.1...main
✨Animenosekai
v1.0.2
First release for Nasse
!
Nasse v1.0.2
Welcome to Nasse
, a new web framework built on top of Flask!
This framework will help you create your web applications in no time, type safe and documented.
Features
- Create web servers
- Document endpoints
- Validate inputs
- Validate outputs
- Response formatting
- Local context
- Auto Documentation Generation
- Production server
- Timer
- Debug mode
- Logging
- Flask-like syntax
Everything is detailed in the README.md
file
✨Animenosekai