PyBIS date range condition

Hello,

Is it possible to search for a date range with pybis? Using release 1.37.4. I couldn’t find any operator, but maybe I missed it. Using the same property in the where multiple times also does not work because it is a dict where the key is unique.

I try to achieve the following:

o.get_objects(
    where={
        'event_date': '=>2026-01-01',
        'event_date': '<=2026-01-31',
    }
)

Thx for any help.

Hello,

Although it does not look pretty, you can leverage that pybis does not perform case conversion for property names in where clause:

samples = o.get_objects(where={
        'start_date': '>=2026-08-18',
        'START_DATE': '<=2026-08-19'
    })

Best,

Adam

Good trick to know :slight_smile: Works for me, thanks!

B, Sascha