Skip to main content

validataclass Search Queries

Unit tests

Shared Python library for search queries based on validataclass.

Implements search filters, pagination and sorting using dataclasses and validators, and provides helpers to work with database queries (currently SQLAlchemy 1.4 and 2.0 are supported, however, support for SQLAlchemy 1.4 is deprecated now).

Status: Beta.

Installation

validataclass-search-queries is available on PyPI.

To install it using pip, just run:

pip install validataclass-search-queries

If you add the package to your dependencies, it is recommended to use compatible release version specifiers to make sure you always get the latest version of the library but without running into breaking changes:

pip install validataclass-search-queries~=0.6.0

However, keep in mind that the library is still in its beta phase (as indicated by the major version of 0). There can and will be smaller breaking changes between 0.x minor versions, but we will try to keep them at a minimum and save the big breaking changes for the release of version 1.0.0.

Usage

See docs for the documentation, including a quick tutorial on how to use this library.

Development

Virtual environment

To setup a virtualenv for development of the library, run make venv.

This will create a virtualenv in venv and install the package in edit mode inside the virtualenv, including testing dependencies.

Running unit tests

Unit tests can be run using make tox or by directly executing tox.

For this to work you need to either be inside the virtualenv (see above) or have tox installed in your system locally.

Take a look at the Makefile for more ways to run the unit tests (e.g. inside a Docker container to test for specific Python versions).

Metadata

Release files for validataclass-search-queries 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for validataclass-search-queries 0.6.1
File Size Uploaded
validataclass_search_queries-0.6.1.tar.gz 59.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for validataclass-search-queries 0.6.1
File Interpreter ABI Platform
validataclass_search_queries-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 103.4 kB

Release files / validataclass_search_queries-0.6.1.tar.gz

Download URL validataclass_search_queries-0.6.1.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6ef663d676148afbda779a892bf2db4fb0640063b582878f4aac5dce1e1655d4
BLAKE2b-256 checksum
How to use checksums
036e330f6638c5e45241fd744b798d7124ec2a21b86b487a4b6856236cb54314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release files / validataclass_search_queries-0.6.1-py3-none-any.whl

Download URL validataclass_search_queries-0.6.1-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6044d67ca6f6de5bd6d0655b340646603b04f85e36bb629c10087c565f52c0e
BLAKE2b-256 checksum
How to use checksums
446db202456dd042d55a399dceb2f0437ee8cb8f8fd4d644dfb45fbad868fa66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page