datatables-backend 0.1.0rc2__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.
- datatables_backend/__init__.py +44 -0
- datatables_backend/_plan.py +1077 -0
- datatables_backend/cache.py +49 -0
- datatables_backend/columns.py +53 -0
- datatables_backend/fastapi.py +77 -0
- datatables_backend/opensearch.py +623 -0
- datatables_backend/protocol.py +567 -0
- datatables_backend/py.typed +0 -0
- datatables_backend/rows.py +32 -0
- datatables_backend/sqlalchemy.py +657 -0
- datatables_backend-0.1.0rc2.dist-info/METADATA +214 -0
- datatables_backend-0.1.0rc2.dist-info/RECORD +14 -0
- datatables_backend-0.1.0rc2.dist-info/WHEEL +4 -0
- datatables_backend-0.1.0rc2.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Server-side processing for DataTables from SQL (SQLAlchemy 2) and OpenSearch.
|
|
2
|
+
|
|
3
|
+
The core needs only Pydantic. The backends are imported from their own modules, so each needs only its own extra:
|
|
4
|
+
``datatables_backend.sqlalchemy`` (``[sqlalchemy]``), ``datatables_backend.opensearch`` (no client library is
|
|
5
|
+
imported; ``[opensearch]`` installs one) and ``datatables_backend.fastapi`` (``[fastapi]``).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = '0.1.0rc2'
|
|
9
|
+
|
|
10
|
+
from .cache import TotalCache
|
|
11
|
+
from .columns import Column
|
|
12
|
+
from .columns import ColumnType
|
|
13
|
+
from .protocol import DTColumn
|
|
14
|
+
from .protocol import DTOrder
|
|
15
|
+
from .protocol import DTParams
|
|
16
|
+
from .protocol import DTResponse
|
|
17
|
+
from .protocol import InvalidFilter
|
|
18
|
+
from .protocol import MalformedRequest
|
|
19
|
+
from .protocol import PartialResultError
|
|
20
|
+
from .protocol import SchemaError
|
|
21
|
+
from .protocol import Search
|
|
22
|
+
from .protocol import SearchCriterion
|
|
23
|
+
from .protocol import SearchGroup
|
|
24
|
+
from .protocol import parse_request
|
|
25
|
+
from .rows import RowHooks
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
'Column',
|
|
29
|
+
'ColumnType',
|
|
30
|
+
'DTColumn',
|
|
31
|
+
'DTOrder',
|
|
32
|
+
'DTParams',
|
|
33
|
+
'DTResponse',
|
|
34
|
+
'InvalidFilter',
|
|
35
|
+
'MalformedRequest',
|
|
36
|
+
'PartialResultError',
|
|
37
|
+
'RowHooks',
|
|
38
|
+
'SchemaError',
|
|
39
|
+
'Search',
|
|
40
|
+
'SearchCriterion',
|
|
41
|
+
'SearchGroup',
|
|
42
|
+
'TotalCache',
|
|
43
|
+
'parse_request',
|
|
44
|
+
]
|