anomalyarmor-cli 0.1.1__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.
- anomalyarmor/__init__.py +58 -0
- anomalyarmor/_version.py +3 -0
- anomalyarmor/cli.py +1402 -0
- anomalyarmor/client.py +204 -0
- anomalyarmor/config.py +94 -0
- anomalyarmor/exceptions.py +143 -0
- anomalyarmor/models.py +285 -0
- anomalyarmor/resources/__init__.py +23 -0
- anomalyarmor/resources/alerts.py +296 -0
- anomalyarmor/resources/api_keys.py +138 -0
- anomalyarmor/resources/assets.py +76 -0
- anomalyarmor/resources/badges.py +211 -0
- anomalyarmor/resources/base.py +49 -0
- anomalyarmor/resources/freshness.py +152 -0
- anomalyarmor/resources/intelligence.py +135 -0
- anomalyarmor/resources/jobs.py +46 -0
- anomalyarmor/resources/lineage.py +66 -0
- anomalyarmor/resources/schema.py +85 -0
- anomalyarmor/resources/tags.py +204 -0
- anomalyarmor_cli-0.1.1.dist-info/METADATA +76 -0
- anomalyarmor_cli-0.1.1.dist-info/RECORD +23 -0
- anomalyarmor_cli-0.1.1.dist-info/WHEEL +4 -0
- anomalyarmor_cli-0.1.1.dist-info/entry_points.txt +3 -0
anomalyarmor/__init__.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""AnomalyArmor SDK for Python.
|
|
2
|
+
|
|
3
|
+
The armor SDK provides programmatic access to AnomalyArmor's data observability platform.
|
|
4
|
+
|
|
5
|
+
Quick Start:
|
|
6
|
+
>>> from anomalyarmor import Client
|
|
7
|
+
>>> client = Client(api_key="aa_live_...")
|
|
8
|
+
>>>
|
|
9
|
+
>>> # List assets
|
|
10
|
+
>>> assets = client.assets.list()
|
|
11
|
+
>>> for asset in assets:
|
|
12
|
+
... print(asset.qualified_name)
|
|
13
|
+
>>>
|
|
14
|
+
>>> # Check freshness
|
|
15
|
+
>>> freshness = client.freshness.get("postgresql.mydb.public.users")
|
|
16
|
+
>>> if freshness.is_stale:
|
|
17
|
+
... print(f"Stale for {freshness.hours_since_update} hours")
|
|
18
|
+
|
|
19
|
+
Environment Variables:
|
|
20
|
+
ARMOR_API_KEY: Your API key (alternative to passing in code)
|
|
21
|
+
ARMOR_API_URL: API base URL (default: https://app.anomalyarmor.ai/api/v1)
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from anomalyarmor._version import __version__
|
|
25
|
+
from anomalyarmor.client import Client
|
|
26
|
+
from anomalyarmor.exceptions import (
|
|
27
|
+
ArmorError,
|
|
28
|
+
AuthenticationError,
|
|
29
|
+
DataStaleError,
|
|
30
|
+
NotFoundError,
|
|
31
|
+
RateLimitError,
|
|
32
|
+
ValidationError,
|
|
33
|
+
)
|
|
34
|
+
from anomalyarmor.models import (
|
|
35
|
+
Alert,
|
|
36
|
+
Asset,
|
|
37
|
+
FreshnessStatus,
|
|
38
|
+
LineageGraph,
|
|
39
|
+
SchemaChange,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
__all__ = [
|
|
43
|
+
"__version__",
|
|
44
|
+
"Client",
|
|
45
|
+
# Exceptions
|
|
46
|
+
"ArmorError",
|
|
47
|
+
"AuthenticationError",
|
|
48
|
+
"DataStaleError",
|
|
49
|
+
"NotFoundError",
|
|
50
|
+
"RateLimitError",
|
|
51
|
+
"ValidationError",
|
|
52
|
+
# Models
|
|
53
|
+
"Asset",
|
|
54
|
+
"FreshnessStatus",
|
|
55
|
+
"SchemaChange",
|
|
56
|
+
"LineageGraph",
|
|
57
|
+
"Alert",
|
|
58
|
+
]
|
anomalyarmor/_version.py
ADDED