Odetam

Latest version: v1.5.2

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

Scan your dependencies

Page 1 of 2

1.5.1

What's Changed
* Typing improve and actions fix by butvinm in https://github.com/rickh94/ODetaM/pull/13


**Full Changelog**: https://github.com/rickh94/ODetaM/compare/v1.5.0...v1.5.1

1.5.0

No longer sets missing fields to `None`, rather allows pydantic to handle the default behavior.

1.4.0

This release adds a get_or_none method to get possibly null values without producing an error. It also adds lots of type hints to make development easier and more consistent.

1.3.2

The addition of async support in the official deta python sdk has allowed us to switch to that and remove a dependency. This was possible because of the work done here 7, thank you!

This also fixes bug 5 in 6, and another I found where the get methods could be passed None and wouldn't complain. This now raises since a primary key of `None` is obviously nonsense.

This also adds automated testing for python versions 3.10 and 3.11.

This release is also available on [PyPi](https://pypi.org/project/odetam), which is obviously the best way to install.

**Full Changelog**: https://github.com/rickh94/ODetaM/compare/v1.2.0...v1.3.2

1.2.0

I've added async support! The api is basically the same, with a different import and async/await in your functions. It also requires [aiodeta](https://github.com/leits/aiodeta). Just `pip install odetam aiodeta` then `from odetam.async_model import AsyncDetaModel`.

1.1.0

* Change datetime serialization behavior

I have rewritten most of the serialization code to better handle datetimes.
Unfornately, Deta does not have a built-in datetime type, so I hacked in some
serialization that provides useful functionality. Previously, they were simply
serialized to strings by pydantic's json serializer. Now dates, datetimes, and
times are turned into numbers so that the usual number queries (as well as range)
can be used. Previously, querying dates did not work at all.

This change completely breaks compatibility with previous datetime fields.
Data saved before 1.1.0 will create errors when serialized. Either pin to
v1.0.5 (the latest version before this change) or update data. Models without
date/datetime/time fields are not affected.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.