Lazy-record

Latest version: v0.6.0

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

Scan your dependencies

0.3.1

Fixed a bug where pre-made validations were not working correctly. Now, you can (successfully) do

python
class MyModel(lazy_record.Base):
__validates__ = {"my_attr": unique}

0.3.0

Enhanced querying by adding the following methods to Query objects:
- select (SQL `SELECT`)
- group (SQL `GROUP BY`)
- having (SQL `HAVING`)

Using `where` with a list or tuple argument now generates a query using `IN`

python
Cantaloupe.where(ripeness=[1, 2, 3])


SQL
SELECT cantaloupes.* FROM cantaloupes WHERE cantaloupes.ripeness IN (1, 2, 3)


`len` now works on Query objects, and generates a `SELECT COUNT` in SQL for fast counting.

0.2.0.dev

Added support for multi-level joins.

Now has full test coverage and is fully documented.

0.1.dev

This is an early development release of lazy_record. Primarily intended for users of the greenhouse application.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.