xarra-sdk 1.0.0__tar.gz

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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bleex Technologies LTD.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.4
2
+ Name: xarra-sdk
3
+ Version: 1.0.0
4
+ Summary: Python SDK for the Xarra Analytics Platform
5
+ Home-page: https://xarra.dev
6
+ Author: Xarra Team
7
+ Author-email: Xarra Team <support@xarra.dev>
8
+ License: MIT
9
+ Project-URL: Homepage, https://xarra.dev
10
+ Project-URL: Documentation, https://docs.xarra.dev
11
+ Project-URL: Repository, https://github.com/xarra/xarra-sdk
12
+ Project-URL: Issues, https://github.com/xarra/xarra-sdk/issues
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.8
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: requests>=2.25.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
29
+ Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
30
+ Requires-Dist: black>=22.0.0; extra == "dev"
31
+ Requires-Dist: isort>=5.10.0; extra == "dev"
32
+ Requires-Dist: mypy>=0.990; extra == "dev"
33
+ Provides-Extra: pandas
34
+ Requires-Dist: pandas>=1.3.0; extra == "pandas"
35
+ Dynamic: author
36
+ Dynamic: home-page
37
+ Dynamic: license-file
38
+ Dynamic: requires-python
39
+
40
+ # dataergy-flux
41
+
42
+ Python SDK for the Dataergy Dashy Analytics Platform.
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ pip install dataergy-flux
@@ -0,0 +1,8 @@
1
+ # dataergy-flux
2
+
3
+ Python SDK for the Dataergy Dashy Analytics Platform.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install dataergy-flux
@@ -0,0 +1,63 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "xarra-sdk"
7
+ version = "1.0.0"
8
+ description = "Python SDK for the Xarra Analytics Platform"
9
+ readme = "README.md"
10
+ authors = [
11
+ {name = "Xarra Team", email = "support@xarra.dev"}
12
+ ]
13
+ license = {text = "MIT"}
14
+ requires-python = ">=3.8"
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Developers",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.8",
21
+ "Programming Language :: Python :: 3.9",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Software Development :: Libraries :: Python Modules",
26
+ ]
27
+ dependencies = [
28
+ "requests>=2.25.0",
29
+ ]
30
+
31
+ [project.urls]
32
+ Homepage = "https://xarra.dev"
33
+ Documentation = "https://docs.xarra.dev"
34
+ Repository = "https://github.com/xarra/xarra-sdk"
35
+ Issues = "https://github.com/xarra/xarra-sdk/issues"
36
+
37
+ [project.optional-dependencies]
38
+ dev = [
39
+ "pytest>=7.0.0",
40
+ "pytest-cov>=4.0.0",
41
+ "black>=22.0.0",
42
+ "isort>=5.10.0",
43
+ "mypy>=0.990",
44
+ ]
45
+ pandas = ["pandas>=1.3.0"]
46
+
47
+ [tool.setuptools.packages.find]
48
+ include = ["xarra_sdk*"]
49
+ exclude = ["examples*", "test*", "test_*"]
50
+
51
+ [tool.black]
52
+ line-length = 100
53
+ target-version = ["py38", "py39", "py310", "py311", "py312"]
54
+
55
+ [tool.isort]
56
+ profile = "black"
57
+ line_length = 100
58
+
59
+ [tool.mypy]
60
+ python_version = "3.8"
61
+ warn_return_any = true
62
+ warn_unused_configs = true
63
+ ignore_missing_imports = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,41 @@
1
+ # setup.py
2
+ from setuptools import setup, find_packages
3
+
4
+ setup(
5
+ name="xarra-sdk",
6
+ version="1.0.0",
7
+ description="Python SDK for the Xarra Analytics Platform",
8
+ author="Xarra Team",
9
+ author_email="support@xarra.dev",
10
+ url="https://xarra.dev",
11
+ packages=find_packages(include=["xarra_sdk*"]),
12
+ package_dir={"": "."},
13
+ install_requires=[
14
+ "requests>=2.25.0",
15
+ ],
16
+ extras_require={
17
+ "dev": [
18
+ "pytest>=7.0.0",
19
+ "pytest-cov>=4.0.0",
20
+ "black>=22.0.0",
21
+ "isort>=5.10.0",
22
+ "mypy>=0.990",
23
+ ],
24
+ "pandas": ["pandas>=1.3.0"],
25
+ },
26
+ python_requires=">=3.8",
27
+ classifiers=[
28
+ "Development Status :: 4 - Beta",
29
+ "Intended Audience :: Developers",
30
+ "License :: OSI Approved :: MIT License",
31
+ "Programming Language :: Python :: 3",
32
+ "Programming Language :: Python :: 3.8",
33
+ "Programming Language :: Python :: 3.9",
34
+ "Programming Language :: Python :: 3.10",
35
+ "Programming Language :: Python :: 3.11",
36
+ "Programming Language :: Python :: 3.12",
37
+ "Topic :: Software Development :: Libraries :: Python Modules",
38
+ ],
39
+ long_description=open("README.md").read(),
40
+ long_description_content_type="text/markdown",
41
+ )
@@ -0,0 +1,101 @@
1
+ # src/xarra_sdk/__init__.py
2
+
3
+ """
4
+ Xarra SDK - Python client for the Xarra Analytics Platform.
5
+
6
+ The Xarra SDK provides a simple Python interface for:
7
+ - Querying analytics data (product models)
8
+ - Querying XRM models (custom data models)
9
+ - Natural language queries (NLQ) for both XPM and XRM
10
+ - Ingesting events
11
+ - Managing apps and API keys
12
+ - Accessing model definitions and documentation
13
+
14
+ Example:
15
+ from xarra_sdk import XarraClient
16
+
17
+ client = XarraClient(api_key="xr_tst_xxx")
18
+
19
+ # XPM Query (Product Models)
20
+ result = client.xpm_query(
21
+ app="app_key",
22
+ model="transactions",
23
+ query="amount:sum;currency:group"
24
+ )
25
+
26
+ # XRM Query (Relational Models)
27
+ result = client.xrm_query(
28
+ model_id="550e8400-e29b-41d4-a716-446655440000",
29
+ query="orders.amount:sum"
30
+ )
31
+
32
+ # XPM Natural Language Query
33
+ result = client.xpm_nlq(
34
+ app="app_key",
35
+ model="transactions",
36
+ query="Why did my revenue drop last month?"
37
+ )
38
+
39
+ # XRM Natural Language Query
40
+ result = client.xrm_nlq(
41
+ model_id="550e8400-e29b-41d4-a716-446655440000",
42
+ query="Which customers generated the most revenue this quarter?"
43
+ )
44
+
45
+ for row in result.rows:
46
+ print(row)
47
+ """
48
+
49
+ from .client import XarraClient
50
+ from .models import (
51
+ QueryResult,
52
+ BatchQueryResult,
53
+ App,
54
+ IngestionResult,
55
+ ModelDefinition,
56
+ Column,
57
+ Aggregator,
58
+ XRMModel,
59
+ RateLimitInfo,
60
+ NLQResult,
61
+ )
62
+ from .exceptions import (
63
+ XarraError,
64
+ AuthenticationError,
65
+ RateLimitError,
66
+ ValidationError,
67
+ NotFoundError,
68
+ ServerError,
69
+ TimeoutError,
70
+ IngestionError,
71
+ QueryError,
72
+ NLQError,
73
+ )
74
+
75
+ __version__ = "1.0.0"
76
+ __all__ = [
77
+ # Client
78
+ "XarraClient",
79
+ # Models
80
+ "QueryResult",
81
+ "BatchQueryResult",
82
+ "App",
83
+ "IngestionResult",
84
+ "ModelDefinition",
85
+ "Column",
86
+ "Aggregator",
87
+ "XRMModel",
88
+ "RateLimitInfo",
89
+ "NLQResult",
90
+ # Exceptions
91
+ "XarraError",
92
+ "AuthenticationError",
93
+ "RateLimitError",
94
+ "ValidationError",
95
+ "NotFoundError",
96
+ "ServerError",
97
+ "TimeoutError",
98
+ "IngestionError",
99
+ "QueryError",
100
+ "NLQError",
101
+ ]