bell-tag 1.0.9__tar.gz → 1.2.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.
- {bell_tag-1.0.9 → bell_tag-1.2.0}/PKG-INFO +1 -1
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag/decorators.py +2 -2
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag/middleware.py +2 -2
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag/utils.py +3 -2
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag.egg-info/PKG-INFO +1 -1
- {bell_tag-1.0.9 → bell_tag-1.2.0}/pyproject.toml +1 -1
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag/__init__.py +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag/exceptions.py +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag/py.typed +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag.egg-info/SOURCES.txt +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag.egg-info/dependency_links.txt +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag.egg-info/requires.txt +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/bell_tag.egg-info/top_level.txt +0 -0
- {bell_tag-1.0.9 → bell_tag-1.2.0}/setup.cfg +0 -0
|
@@ -35,9 +35,9 @@ def bell_tag(name: str = None):
|
|
|
35
35
|
method = request.method
|
|
36
36
|
|
|
37
37
|
requests.post(
|
|
38
|
-
"https://belltagmanager.com/api/v1/
|
|
38
|
+
"https://dev.belltagmanager.com/api/v1/bell_tag/dev/js",
|
|
39
39
|
json={
|
|
40
|
-
"
|
|
40
|
+
"key": api_key,
|
|
41
41
|
"route_name": route_name,
|
|
42
42
|
"path": path,
|
|
43
43
|
"method": method,
|
|
@@ -22,9 +22,9 @@ def create_before_request_handler(app):
|
|
|
22
22
|
method = request.method
|
|
23
23
|
|
|
24
24
|
requests.post(
|
|
25
|
-
"https://belltagmanager.com/api/v1/
|
|
25
|
+
"https://dev.belltagmanager.com/api/v1/bell_tag/dev/js",
|
|
26
26
|
json={
|
|
27
|
-
"
|
|
27
|
+
"key": api_key,
|
|
28
28
|
"path": path,
|
|
29
29
|
"method": method,
|
|
30
30
|
"ip": ip_address,
|
|
@@ -17,12 +17,13 @@ def verify_server_once(api_key):
|
|
|
17
17
|
try:
|
|
18
18
|
import requests
|
|
19
19
|
resp = requests.post(
|
|
20
|
-
"https://belltagmanager.com/api/v1/verify",
|
|
21
|
-
json={"
|
|
20
|
+
"https://dev.belltagmanager.com/api/v1/bell_tag/dev/js/verify",
|
|
21
|
+
json={"key": api_key},
|
|
22
22
|
timeout=5
|
|
23
23
|
)
|
|
24
24
|
if resp.status_code == 200:
|
|
25
25
|
_verified = True
|
|
26
|
+
print("Bell Tag: Connected and verified successfully.")
|
|
26
27
|
return True
|
|
27
28
|
else:
|
|
28
29
|
# server responded but failed verification — log silently
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|