Skip to content

Releases: piccolo-orm/piccolo_api

0.51.0

09 Feb 18:59
1152bc6
Compare
Choose a tag to compare

You can now get all rows with a null / not-null value in PiccoloCRUD.

For example, if we have a nullable column called score:

GET /?score__operator=is_null

Likewise, to get all rows whose score is not null:

GET /?score__operator=not_null

0.50.0

04 Dec 09:31
Compare
Choose a tag to compare

Catching more database errors in PiccoloCRUD, and returning useful API responses instead of 500 errors.

Implemented GitHub's CodeQL suggestions - this now means LocalMediaStorage uses 600 instead of 640 as the default file permissions for uploaded files (thanks to @sinisaos for this).

0.49.0

15 Nov 14:41
Compare
Choose a tag to compare
  • Added Python 3.11 support.
  • PiccoloCRUD validators can now be async.
  • Improved logging.
  • The minimum version of FastAPI is now 0.87.0. The reason for this is Starlette made a fairly large change in version 0.21.0, which meant we had to refactor a lot of our tests, which makes it challenging to support older versions.

0.48.1

18 Oct 18:20
Compare
Choose a tag to compare

Improving type annotations:

  • Adding id: Serial for SessionsBase and TokenAuth.
  • Fixed type annotations for latest version of Starlette (thanks to @sinisaos for this).

0.48.0

26 Sep 21:36
Compare
Choose a tag to compare

If BaseUser is used with PiccoloCRUD, passwords are now handled properly.

Thanks to @sinisaos for making this change.

0.47.0

02 Sep 11:08
Compare
Choose a tag to compare

PiccoloCRUD now handles database exceptions better. If a query fails due to a unique constraint, a 422 response code is returned, along with information about the error.

This means Piccolo Admin will show more useful debugging information when a query fails.

Thanks to @ethagnawl for reporting this issue, and @sinisaos for help prototyping a solution.

0.46.0

01 Sep 20:29
Compare
Choose a tag to compare

Fixed a bug with Email columns and PiccoloCRUD.get_new.

Thanks to @Tar8117 for reporting this bug.

0.45.0

25 Aug 14:32
Compare
Choose a tag to compare

Previously you had to provide folder_name as an argument to S3MediaStorage.

It's now optional, as some users may choose to store their files in a bucket without a folder.

0.44.0

22 Aug 14:16
Compare
Choose a tag to compare

When uploading files to S3, we try and correctly set the content type. This now works correctly for .jpg files (previously only .jpeg worked for JPEGs). Thanks to @sumitsharansatsangi for adding this.

0.43.0

18 Aug 15:42
Compare
Choose a tag to compare

Fixed a bug with MediaStorage.delete_unused_files - it was raising an exception when used with Array columns. Thanks to @sumitsharansatsangi for reporting this issue.

When using S3MediaStorage you can now specify additional arguments when files are uploaded (using the upload_metadata argument), for example, setting the cache settings, and much more. Thanks to @sumitsharansatsangi, and @sinisaos for help reviewing.

S3MediaStorage(
    ...,
    # Cache the file for 24 hours:
    upload_metadata={'CacheControl': 'max-age=86400'}
)