Piccolo-api

Latest version: v1.4.0

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

Scan your dependencies

Page 5 of 21

0.44.0

------

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

------

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.

.. code-block:: python

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

-------------------------------------------------------------------------------

0.42.0

------

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

------

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

------

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

------

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.

-------------------------------------------------------------------------------

Page 5 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.