Ysanic

Latest version: v0.1.0

Safety actively analyzes 619434 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.0

This version has three main differences:
- Introspection
- No decorators except notaroute
- Jinja2 emails

Introspection
This is the biggest change since it allows several things:
- Automatic route generator
- Does the hard work for OpenApi since, in this version is key to achieve Full stack features

It uses the models' decorators to determine if a model's member is a route (when it has consumes and/or produces) and what kind of route is (if it has consumes is a in route if not is and out one)

That allow us to focus in the definition of the problem's domain

No decorators except notaroute
The only point of the decorators of ySanic was to allow to customize the response of the route but since yREST is based on REST it make sense to simplify this facet

You can always eject from yRest and use the manual routes with full control

So notaroute is the way to exclude members of the model that uses consumes/produces but maintain the convenience of this decorators (in terms of automatic validation and so on)

 Jinja2 emails
Anyone that has deal with emails know the nightmare they are so introducing jinja2 as a template system only simplifys what its is difficult as it is

 Generics factory, dispatcher and options
Now factory has been abstracted as a pattern in a similar way as dispatcher is

You can define which member is going to be called when a particular factory is required (which allows to have more than one type of children defined. This requieres a unique index to avoid same slug for two childs and to group them by type)

A generic_options super simple options has been defined and will be load with your routes

A generic very introspection oriented JSON encoder has been added as MyEncoder for debugging purposes. You can use it if you need it

Tests are made but, you know, test are always consider incomplet but will grow up as cases show up

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.