cycls 0.0.2.53__py3-none-any.whl → 0.0.2.55__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.
cycls/sdk.py CHANGED
@@ -25,11 +25,11 @@ class Agent:
25
25
 
26
26
  self.registered_functions = []
27
27
 
28
- def __call__(self, name=None, header="", intro="", title="", domain=None, auth=False):
28
+ def __call__(self, name=None, header="", intro="", title="", domain=None, auth=False, tier="free"):
29
29
  def decorator(f):
30
30
  self.registered_functions.append({
31
31
  "func": f,
32
- "config": ["theme", False, self.org, self.api_token, header, intro, title, auth],
32
+ "config": ["theme", False, self.org, self.api_token, header, intro, title, auth, tier],
33
33
  # "name": name,
34
34
  "name": name or (f.__name__).replace('_', '-'),
35
35
  "domain": domain or f"{name}.cycls.ai",
cycls/web.py CHANGED
@@ -49,7 +49,7 @@ XwIDAQAB
49
49
  -----END PUBLIC KEY-----
50
50
  """
51
51
 
52
- def web(func, public_path="", prod=False, org=None, api_token=None, header="", intro="", title="", auth=True): # API auth
52
+ def web(func, public_path="", prod=False, org=None, api_token=None, header="", intro="", title="", auth=True, tier=""): # API auth
53
53
  from fastapi import FastAPI, Request, HTTPException, status, Depends
54
54
  from fastapi.responses import StreamingResponse , HTMLResponse
55
55
  from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
@@ -60,7 +60,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
60
60
 
61
61
  class User(BaseModel):
62
62
  id: str
63
- name: str
63
+ name: Optional[str] = None
64
64
  email: EmailStr
65
65
  org: Optional[str] = None
66
66
  plans: List[str] = []
@@ -71,6 +71,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
71
71
  title: str
72
72
  prod: bool
73
73
  auth: bool
74
+ tier: str
74
75
  org: Optional[str]
75
76
  pk_live: str
76
77
  pk_test: str
@@ -114,6 +115,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
114
115
  title=title,
115
116
  prod=prod,
116
117
  auth=auth,
118
+ tier=tier,
117
119
  org=org,
118
120
  pk_live="pk_live_Y2xlcmsuY3ljbHMuYWkk",
119
121
  pk_test="pk_test_c2VsZWN0LXNsb3RoLTU4LmNsZXJrLmFjY291bnRzLmRldiQ"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycls
3
- Version: 0.0.2.53
3
+ Version: 0.0.2.55
4
4
  Summary: Cycls SDK
5
5
  Author: Mohammed J. AlRujayi
6
6
  Author-email: mj@cycls.com
@@ -1,10 +1,10 @@
1
1
  cycls/__init__.py,sha256=bVT0dYTXLdSC3ZURgtm-DEOj-VO6RUM6zGsJB0zuj6Y,61
2
2
  cycls/runtime.py,sha256=hLBtwtGz0FCW1-EPCJy6kMdF2fB3i6Df_H8-bm7qeK0,18223
3
- cycls/sdk.py,sha256=2XnIV4c0UBcHylbCZtBqv6f-4EgJaPrg2LuXUrVZPK0,5901
3
+ cycls/sdk.py,sha256=K53Y9bL7uHoUDgt7oMlDjAyrK3252nmxME19J8-9Q7A,5920
4
4
  cycls/theme/assets/index-CE4acW4J.css,sha256=yN0rMoDcVYJ043rHIgaxF7cierHER6ivIrrWnFCopB4,110
5
5
  cycls/theme/assets/index-DK37eWM7.js,sha256=pRHnyd8ewPbfpCrSE5zndG3YQ4YTW1t_ORdEI21ky7U,1138629
6
6
  cycls/theme/index.html,sha256=c4IX-5NB8HjYy0_sXIoP6dYVoHgp-Zlbjhym9OhtkAM,738
7
- cycls/web.py,sha256=jdlrGyjxPNg83B-jOqVHRtR78ve0duAm1xkMVw3ja8Y,4990
8
- cycls-0.0.2.53.dist-info/METADATA,sha256=oU6fojMIOh-QHiFX7nduQTuESJ6NHT4ON1rgqXDwIdU,4800
9
- cycls-0.0.2.53.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
10
- cycls-0.0.2.53.dist-info/RECORD,,
7
+ cycls/web.py,sha256=n0ZIiRSE4DSGbMOOsJhx-giA1A6i2ECkD2WlkdZtL1Y,5057
8
+ cycls-0.0.2.55.dist-info/METADATA,sha256=ueHOrRIn8T9TlsycL7z0xFrEyHavwCOHGyJcKUI3Iz8,4800
9
+ cycls-0.0.2.55.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
10
+ cycls-0.0.2.55.dist-info/RECORD,,