meter-lib 0.0.4__tar.gz → 0.0.5__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.
Potentially problematic release.
This version of meter-lib might be problematic. Click here for more details.
- {meter_lib-0.0.4 → meter_lib-0.0.5}/PKG-INFO +5 -5
- {meter_lib-0.0.4 → meter_lib-0.0.5}/README.md +4 -4
- {meter_lib-0.0.4 → meter_lib-0.0.5}/pyproject.toml +1 -1
- {meter_lib-0.0.4 → meter_lib-0.0.5}/setup.py +1 -1
- {meter_lib-0.0.4 → meter_lib-0.0.5}/.github/workflows/publish.yml +0 -0
- {meter_lib-0.0.4 → meter_lib-0.0.5}/.gitignore +0 -0
- {meter_lib-0.0.4 → meter_lib-0.0.5}/meter_lib/__init__.py +0 -0
- {meter_lib-0.0.4 → meter_lib-0.0.5}/meter_lib/core.py +0 -0
- {meter_lib-0.0.4 → meter_lib-0.0.5}/requirements.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meter-lib
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: A litewave library to collect the customer credit usage
|
|
5
5
|
Project-URL: Homepage, https://github.com/aiorch/meter-lib
|
|
6
6
|
Project-URL: Repository, https://github.com/aiorch/meter-lib
|
|
@@ -63,14 +63,14 @@ result = post_meter_usage(
|
|
|
63
63
|
### For AI enabled
|
|
64
64
|
|
|
65
65
|
```python
|
|
66
|
-
from meter_lib import
|
|
66
|
+
from meter_lib import post_ai_meter_usage
|
|
67
67
|
|
|
68
68
|
tenant_id = "tenant_123"
|
|
69
69
|
device_id = "us-east-ing1"
|
|
70
70
|
meter_id = "chat.on.time_hours"
|
|
71
71
|
start_time = 1759791552000 # Timestamp in milliseconds
|
|
72
72
|
|
|
73
|
-
result =
|
|
73
|
+
result = post_ai_meter_usage(
|
|
74
74
|
tenant_id=tenant_id,
|
|
75
75
|
device_id=device_id,
|
|
76
76
|
meter_id=meter_id,
|
|
@@ -82,14 +82,14 @@ result = post_meter_usage(
|
|
|
82
82
|
### For AI disabled
|
|
83
83
|
|
|
84
84
|
```python
|
|
85
|
-
from meter_lib import
|
|
85
|
+
from meter_lib import post_ai_meter_usage
|
|
86
86
|
|
|
87
87
|
tenant_id = "tenant_123"
|
|
88
88
|
device_id = "us-east-ing1"
|
|
89
89
|
meter_id = "chat.on.time_hours"
|
|
90
90
|
end_time = 1779799552000 # Timestamp in milliseconds
|
|
91
91
|
|
|
92
|
-
result =
|
|
92
|
+
result = post_ai_meter_usage(
|
|
93
93
|
tenant_id=tenant_id,
|
|
94
94
|
device_id=device_id,
|
|
95
95
|
meter_id=meter_id,
|
|
@@ -45,14 +45,14 @@ result = post_meter_usage(
|
|
|
45
45
|
### For AI enabled
|
|
46
46
|
|
|
47
47
|
```python
|
|
48
|
-
from meter_lib import
|
|
48
|
+
from meter_lib import post_ai_meter_usage
|
|
49
49
|
|
|
50
50
|
tenant_id = "tenant_123"
|
|
51
51
|
device_id = "us-east-ing1"
|
|
52
52
|
meter_id = "chat.on.time_hours"
|
|
53
53
|
start_time = 1759791552000 # Timestamp in milliseconds
|
|
54
54
|
|
|
55
|
-
result =
|
|
55
|
+
result = post_ai_meter_usage(
|
|
56
56
|
tenant_id=tenant_id,
|
|
57
57
|
device_id=device_id,
|
|
58
58
|
meter_id=meter_id,
|
|
@@ -64,14 +64,14 @@ result = post_meter_usage(
|
|
|
64
64
|
### For AI disabled
|
|
65
65
|
|
|
66
66
|
```python
|
|
67
|
-
from meter_lib import
|
|
67
|
+
from meter_lib import post_ai_meter_usage
|
|
68
68
|
|
|
69
69
|
tenant_id = "tenant_123"
|
|
70
70
|
device_id = "us-east-ing1"
|
|
71
71
|
meter_id = "chat.on.time_hours"
|
|
72
72
|
end_time = 1779799552000 # Timestamp in milliseconds
|
|
73
73
|
|
|
74
|
-
result =
|
|
74
|
+
result = post_ai_meter_usage(
|
|
75
75
|
tenant_id=tenant_id,
|
|
76
76
|
device_id=device_id,
|
|
77
77
|
meter_id=meter_id,
|
|
@@ -10,7 +10,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh:
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name="meter-lib",
|
|
13
|
-
version="0.0.
|
|
13
|
+
version="0.0.5",
|
|
14
14
|
author="Sruthi R",
|
|
15
15
|
author_email="sruthi@litewave.ai",
|
|
16
16
|
description="A litewave library to collect the customer credit usage",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|