cycls 0.0.2.73__py3-none-any.whl → 0.0.2.74__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/__init__.py CHANGED
@@ -1,15 +1,20 @@
1
+ import sys
2
+ from types import ModuleType
1
3
  from .sdk import function, agent
2
4
  from .runtime import Runtime
3
5
 
4
- def __getattr__(name):
5
- from . import sdk
6
- if name in ("api_key", "base_url"):
7
- return getattr(sdk, name)
8
- raise AttributeError(f"module 'cycls' has no attribute '{name}'")
6
+ class _Module(ModuleType):
7
+ def __getattr__(self, name):
8
+ from . import sdk
9
+ if name in ("api_key", "base_url"):
10
+ return getattr(sdk, name)
11
+ raise AttributeError(f"module 'cycls' has no attribute '{name}'")
9
12
 
10
- def __setattr__(name, value):
11
- from . import sdk
12
- if name in ("api_key", "base_url"):
13
- setattr(sdk, name, value)
14
- return
15
- raise AttributeError(f"module 'cycls' has no attribute '{name}'")
13
+ def __setattr__(self, name, value):
14
+ from . import sdk
15
+ if name in ("api_key", "base_url"):
16
+ setattr(sdk, name, value)
17
+ return
18
+ super().__setattr__(name, value)
19
+
20
+ sys.modules[__name__].__class__ = _Module
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycls
3
- Version: 0.0.2.73
3
+ Version: 0.0.2.74
4
4
  Summary: Distribute Intelligence
5
5
  Author: Mohammed J. AlRujayi
6
6
  Author-email: mj@cycls.com
@@ -47,8 +47,6 @@ The open-source SDK for distributing AI agents.
47
47
 
48
48
  ## Distribute Intelligence
49
49
 
50
- AI capabilities shouldn't be locked in notebooks or trapped behind months of infrastructure work. Cycls turns your Python functions into production services - complete with APIs, interfaces, auth, and analytics. You focus on the intelligence. Cycls handles the distribution.
51
-
52
50
  Write a function. Deploy it as an API, a web interface, or both. Add authentication, analytics, and monetization with flags.
53
51
 
54
52
  ```python
@@ -1,4 +1,4 @@
1
- cycls/__init__.py,sha256=HEpBZpHkC-4YwDUqcKAcnulyPxcvKnplhx91nB2a7IU,464
1
+ cycls/__init__.py,sha256=vyI1d_8VP4XW7MliFuUs_P3O9KQxyCwQu-JkxrCyhPQ,597
2
2
  cycls/auth.py,sha256=xkndHZyCfnlertMMEKerCJjf23N3fVcTRVTTSXTTuzg,247
3
3
  cycls/cli.py,sha256=AKf0z7ZLau3GvBVR_IhB7agmq4nVaHkcuUafNyvv2_A,7978
4
4
  cycls/default-theme/assets/index-B0ZKcm_V.css,sha256=wK9-NhEB8xPcN9Zv69zpOcfGTlFbMwyC9WqTmSKUaKw,6546
@@ -8,7 +8,7 @@ cycls/dev-theme/index.html,sha256=QJBHkdNuMMiwQU7o8dN8__8YQeQB45D37D-NCXIWB2Q,11
8
8
  cycls/runtime.py,sha256=lg7XKHd9fLV_bYksHv2LHf3Lq7HPAC3K5Tr8pNgQ7sM,21641
9
9
  cycls/sdk.py,sha256=X8-VAVqtksO0VGJIxlg02HLmeFpwtwMHWu9PNksS5kw,6620
10
10
  cycls/web.py,sha256=_QNH8K55vTm90Z7tvcRKal5IybjkB1GY7Pf9p3qu3r8,4659
11
- cycls-0.0.2.73.dist-info/METADATA,sha256=IP8h-NzyerOy701pjRYDbY_Nbvb1WsoU6JTKYE8xQ34,8695
12
- cycls-0.0.2.73.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
13
- cycls-0.0.2.73.dist-info/entry_points.txt,sha256=vEhqUxFhhuzCKWtq02LbMnT3wpUqdfgcM3Yh-jjXom8,40
14
- cycls-0.0.2.73.dist-info/RECORD,,
11
+ cycls-0.0.2.74.dist-info/METADATA,sha256=IXA6mD4bkkGRnGZjK_rQYDda-fEE8nI2ucgVVVIsJgQ,8419
12
+ cycls-0.0.2.74.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
13
+ cycls-0.0.2.74.dist-info/entry_points.txt,sha256=vEhqUxFhhuzCKWtq02LbMnT3wpUqdfgcM3Yh-jjXom8,40
14
+ cycls-0.0.2.74.dist-info/RECORD,,