lumera 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
lumera/sdk.py CHANGED
@@ -268,15 +268,15 @@ def list_records(
268
268
  limit: Alternative to ``per_page`` for cursor-style queries.
269
269
  offset: Starting offset for cursor-style queries.
270
270
  sort: Optional sort expression (e.g. ``"-created"``).
271
- filter: Accepts either a raw filter string (e.g.
272
- ``"status = 'ok'"``) or a structured filter encoded as a mapping/
273
- sequence. Structured filters mirror the Page Builder helpers, e.g.:
271
+ filter: Filter as dict (JSON object). String filters are NOT supported.
272
+ Use dict syntax with optional comparison operators:
274
273
 
275
- * ``{"and": [{"status": {"eq": "active"}}, {"owner_id": user_id}]}``
276
- * ``{"or": [{"created": {"gt": "2024-01-01"}}, {"stage": "new"}]}``
274
+ * Simple equality: ``{"status": "pending"}``
275
+ * Comparison: ``{"amount": {"gt": 1000}}`` (gt, gte, lt, lte, eq)
276
+ * OR logic: ``{"or": [{"status": "a"}, {"status": "b"}]}``
277
+ * AND (implicit): ``{"status": "active", "amount": {"gt": 100}}``
277
278
 
278
- The SDK JSON-encodes structured filters so the API can build
279
- tenant-aware expressions automatically.
279
+ The SDK JSON-encodes the filter for the API.
280
280
  expand: Optional comma-separated list of relation fields to expand.
281
281
  Expanded relations are included inline in the record response.
282
282
  Example: ``"user_id,company_id"`` or ``"line_items_via_deposit_id"``
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lumera
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: SDK for building on Lumera platform
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: requests
@@ -26,7 +26,7 @@ Requires-Dist: openai-agents<1.0.0,>=0.6.5; extra == "full"
26
26
  Requires-Dist: openpyxl==3.1.5; extra == "full"
27
27
  Requires-Dist: pandas==2.3.0; extra == "full"
28
28
  Requires-Dist: pdfplumber; extra == "full"
29
- Requires-Dist: pydantic==2.11.7; extra == "full"
29
+ Requires-Dist: pydantic<3.0.0,>=2.12.3; extra == "full"
30
30
  Requires-Dist: PyGithub==2.6.1; extra == "full"
31
31
  Requires-Dist: python-dotenv==1.1.0; extra == "full"
32
32
  Requires-Dist: pyzmq; extra == "full"
@@ -5,9 +5,9 @@ lumera/google.py,sha256=3IVNL1HaOtsTmunl0alnGFuUAkzQQRyCEA3CKjlPqO0,10183
5
5
  lumera/llm.py,sha256=pUTZK7t3GTK0vfxMI1PJgJwNendyuiJc5MB1pUj2vxE,14412
6
6
  lumera/locks.py,sha256=8l_qxb8nrxge7YJ-ApUTJ5MeYpIdxDeEa94Eim9O-YM,6806
7
7
  lumera/pb.py,sha256=nYD8veZWUxPK3pKImoP72VZMBkBQvCLbJErxRBPVykk,8858
8
- lumera/sdk.py,sha256=ibkf85HFMUQPaFyhCaV4DZf0IwZf1yrEW9XFPjsGZOY,26875
8
+ lumera/sdk.py,sha256=6Vw0f5MX-yjmy7KBZzEYNdjtXk2P4Oxibpa_UpcM7bs,26859
9
9
  lumera/storage.py,sha256=kQQJYVRnxcpDZQ_gB2iZy6anb3hyZN7b8a_oNuE2yYE,8191
10
- lumera-0.5.1.dist-info/METADATA,sha256=TpymAeIKBpQKRYq_lPAHZPfgb3g61L_fGgBG-W_A_1w,1604
11
- lumera-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- lumera-0.5.1.dist-info/top_level.txt,sha256=HgfK4XQkpMTnM2E5iWM4kB711FnYqUY9dglzib3pWlE,7
13
- lumera-0.5.1.dist-info/RECORD,,
10
+ lumera-0.5.2.dist-info/METADATA,sha256=Jo8QUTtbNoXlKR2VHbYhR6xvjenHuRfQ6Fx-3AR1SHc,1611
11
+ lumera-0.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ lumera-0.5.2.dist-info/top_level.txt,sha256=HgfK4XQkpMTnM2E5iWM4kB711FnYqUY9dglzib3pWlE,7
13
+ lumera-0.5.2.dist-info/RECORD,,
File without changes