Piccolo

Latest version: v1.22.0

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

Scan your dependencies

Page 31 of 53

0.25.0

Not secure
------
* Changed the migration IDs, so the timestamp now includes microseconds. This
is to make clashing migration IDs much less likely.
* Added a lot of end-to-end tests for migrations, which revealed some bugs
in ``Column`` defaults.

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

0.24.1

Not secure
------
A bug fix for migrations. See `issue 123 <https://github.com/piccolo-orm/piccolo/issues/123>`_
for more information.

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

0.24.0

Not secure
------
Lots of improvements to ``JSON`` and ``JSONB`` columns. Piccolo will now
automatically convert between Python types and JSON strings. For example, with
this schema:

.. code-block:: python

class RecordingStudio(Table):
name = Varchar()
facilities = JSON()

We can now do the following:

.. code-block:: python

RecordingStudio(
name="Abbey Road",
facilities={'mixing_desk': True} Will automatically be converted to a JSON string
).save().run_sync()

Similarly, when fetching data from a JSON column, Piccolo can now automatically
deserialise it.

.. code-block:: python

>>> RecordingStudio.select().output(load_json=True).run_sync()
[{'id': 1, 'name': 'Abbey Road', 'facilities': {'mixing_desk': True}]

>>> studio = RecordingStudio.objects().first().output(load_json=True).run_sync()
>>> studio.facilities
{'mixing_desk': True}

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

0.23.0

Not secure
------
Added the ``create_table_class`` function, which can be used to create
``Table`` subclasses at runtime. This was required to fix an existing bug,
which was effecting migrations (see `issue 111 <https://github.com/piccolo-orm/piccolo/issues/111>`_
for more details).

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

0.22.2

------

More sandbox fixes.

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

0.22.1

------

Fixed a bug with the sandbox.

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

Page 31 of 53

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.