Qwael 4.0.4.2__tar.gz → 4.0.4.4__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.
- {qwael-4.0.4.2 → qwael-4.0.4.4}/PKG-INFO +4 -1
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/__init__.py +2 -1
- qwael-4.0.4.4/Qwael/adbfull.py +45 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael.egg-info/PKG-INFO +4 -1
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael.egg-info/SOURCES.txt +1 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael.egg-info/requires.txt +3 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/setup.py +4 -1
- {qwael-4.0.4.2 → qwael-4.0.4.4}/LICENSE +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/DR/304/260VE.py" +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/DoIP.py +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/EasyWeb.py +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/MultiDB.py +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/Multidata.py +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/filesz.py +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael/pgif.py +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael.egg-info/dependency_links.txt +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/Qwael.egg-info/top_level.txt +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/README.md +0 -0
- {qwael-4.0.4.2 → qwael-4.0.4.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Qwael
|
|
3
|
-
Version: 4.0.4.
|
|
3
|
+
Version: 4.0.4.4
|
|
4
4
|
Summary: Qwael: İşlevsel ve kolaylaştırılmış Python kütüphanesi
|
|
5
5
|
Author: Bedirhan
|
|
6
6
|
Author-email: bedirhan.oytpass@gmail.com
|
|
@@ -23,6 +23,9 @@ Requires-Dist: Pillow
|
|
|
23
23
|
Requires-Dist: flask
|
|
24
24
|
Requires-Dist: pyyaml
|
|
25
25
|
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: supabase<3
|
|
27
|
+
Requires-Dist: httpx<0.28
|
|
28
|
+
Requires-Dist: pydantic<2
|
|
26
29
|
Dynamic: author
|
|
27
30
|
Dynamic: author-email
|
|
28
31
|
Dynamic: classifier
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from supabase import create_client
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ADB:
|
|
5
|
+
|
|
6
|
+
def __init__(self, url, key):
|
|
7
|
+
self.db = create_client(url, key)
|
|
8
|
+
|
|
9
|
+
# ========= AUTH =========
|
|
10
|
+
|
|
11
|
+
def a_kayit_ol(self, email, sifre):
|
|
12
|
+
return self.db.auth.sign_up({
|
|
13
|
+
"email": email,
|
|
14
|
+
"password": sifre
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
def a_giris_yap(self, email, sifre):
|
|
18
|
+
sonuc = self.db.auth.sign_in_with_password({
|
|
19
|
+
"email": email,
|
|
20
|
+
"password": sifre
|
|
21
|
+
})
|
|
22
|
+
return sonuc.user.id # uid döner
|
|
23
|
+
|
|
24
|
+
# ========= TABLO =========
|
|
25
|
+
|
|
26
|
+
def add(self, tablo, uid, **veriler):
|
|
27
|
+
"""
|
|
28
|
+
Örnek:
|
|
29
|
+
add("users_data", uid, username="Ali Kaya", skor=34)
|
|
30
|
+
"""
|
|
31
|
+
veriler["user_id"] = uid
|
|
32
|
+
return self.db.table(tablo).insert(veriler).execute()
|
|
33
|
+
|
|
34
|
+
def get(self, tablo, uid):
|
|
35
|
+
return self.db.table(tablo) \
|
|
36
|
+
.select("*") \
|
|
37
|
+
.eq("user_id", uid) \
|
|
38
|
+
.single() \
|
|
39
|
+
.execute().data
|
|
40
|
+
|
|
41
|
+
def update(self, tablo, uid, **veriler):
|
|
42
|
+
return self.db.table(tablo) \
|
|
43
|
+
.update(veriler) \
|
|
44
|
+
.eq("user_id", uid) \
|
|
45
|
+
.execute()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Qwael
|
|
3
|
-
Version: 4.0.4.
|
|
3
|
+
Version: 4.0.4.4
|
|
4
4
|
Summary: Qwael: İşlevsel ve kolaylaştırılmış Python kütüphanesi
|
|
5
5
|
Author: Bedirhan
|
|
6
6
|
Author-email: bedirhan.oytpass@gmail.com
|
|
@@ -23,6 +23,9 @@ Requires-Dist: Pillow
|
|
|
23
23
|
Requires-Dist: flask
|
|
24
24
|
Requires-Dist: pyyaml
|
|
25
25
|
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: supabase<3
|
|
27
|
+
Requires-Dist: httpx<0.28
|
|
28
|
+
Requires-Dist: pydantic<2
|
|
26
29
|
Dynamic: author
|
|
27
30
|
Dynamic: author-email
|
|
28
31
|
Dynamic: classifier
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="Qwael",
|
|
8
|
-
version="4.0.4.
|
|
8
|
+
version="4.0.4.4",
|
|
9
9
|
packages=find_packages(),
|
|
10
10
|
install_requires=[
|
|
11
11
|
"google-api-python-client",
|
|
@@ -16,6 +16,9 @@ setup(
|
|
|
16
16
|
"flask",
|
|
17
17
|
"pyyaml",
|
|
18
18
|
"requests",
|
|
19
|
+
"supabase<3",
|
|
20
|
+
"httpx<0.28",
|
|
21
|
+
"pydantic<2"
|
|
19
22
|
],
|
|
20
23
|
description="Qwael: İşlevsel ve kolaylaştırılmış Python kütüphanesi",
|
|
21
24
|
long_description=README,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|