Skip to content

Releases: piccolo-orm/piccolo_api

0.42.0

08 Aug 21:39
Compare
Choose a tag to compare

Added dependency injection to PiccoloCRUD hooks - the Starlette request object will now be passed in if requested. For example:

def my_hook(row_id, request):
      ...

Thanks to @AnthonyArmour and @destos for this.

0.41.0

06 Aug 14:54
Compare
Choose a tag to compare

Added support for file storage in a local folder and in S3. This was added for Piccolo Admin, but is useful for all Piccolo apps.

Thanks to @sinisaos for assisting with this.

0.40.0

22 Jul 11:51
Compare
Choose a tag to compare

Make Piccolo API work with Piccolo >= 0.82.0. Table used to accept a parameter called ignore_missing. This was renamed to _ignore_missing. Thanks to @sinisaos for this fix.

0.39.0

04 Jul 08:30
Compare
Choose a tag to compare

Improved the HTTP status codes returned by the change_password, register and session_login endpoints. They now return a 422 status code if a validation error occurs. This is required by Piccolo Admin, to better determine why a request failed.

0.38.0

22 Jun 14:48
Compare
Choose a tag to compare

Added read_only option to change_password and register endpoints.

This is for Piccolo Admin's read_only mode.

0.37.2

18 Jun 08:24
Compare
Choose a tag to compare

Changed a parameter name used in the change_password endpoint to be less ambiguous (old_password -> current_password).

0.37.1

17 Jun 21:46
Compare
Choose a tag to compare

Changed a parameter name used in the change_password endpoint to be less ambiguous (confirm_password -> confirm_new_password).

0.37.0

17 Jun 21:08
Compare
Choose a tag to compare

Added a change_password endpoint (courtesy @sinisaos).

See the demo project for a full example.

Screenshot 2022-06-17 at 22 10 02

0.36.0

05 Jun 16:42
Compare
Choose a tag to compare

The session_login, session_logout, and register endpoints can now have their CSS styles easily customised, to make them match the rest of the application.

from fastapi import FastAPI
from piccolo_api.session_auth.endpoints import register
from piccolo_api.shared.auth.styles import Styles

app = FastAPI()

app.mount(
    '/register/',
    register(
        styles=Styles(background_color='black')
    )
)

0.35.0

05 Jun 09:55
Compare
Choose a tag to compare

It is now trivially easy to add CAPTCHA support to the register and session_login endpoints, to provide protection against bots. Just sign up for an account with hCaptcha or reCAPTCHA, and do the following:

from fastapi import FastAPI
from piccolo_api.session_auth.endpoints import register
from piccolo_api.shared.auth.captcha import hcaptcha

app = FastAPI()

# To use hCaptcha:
app.mount(
    '/register/',
    register(
        captcha=hcaptcha(
            site_key='my-site-key',
            secret_key='my-secret-key',
        )
    )
)