cycls 0.0.2.87__tar.gz → 0.0.2.89__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.
- cycls-0.0.2.89/.gitignore +27 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/PKG-INFO +10 -17
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/app.py +2 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/function.py +6 -3
- cycls-0.0.2.89/cycls/themes/default/assets/index-C2r4Daz3.js +435 -0
- cycls-0.0.2.89/cycls/themes/default/assets/index-DWGS8zpa.css +1 -0
- cycls-0.0.2.89/cycls/themes/default/index.html +28 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/web.py +23 -9
- cycls-0.0.2.89/pyproject.toml +35 -0
- cycls-0.0.2.87/pyproject.toml +0 -28
- {cycls-0.0.2.87 → cycls-0.0.2.89}/README.md +0 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/__init__.py +0 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/auth.py +0 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/cli.py +0 -0
- {cycls-0.0.2.87/cycls/themes/default → cycls-0.0.2.89/cycls/themes/defaultN}/assets/index-DOmNqb-2.js +0 -0
- {cycls-0.0.2.87/cycls/themes/default → cycls-0.0.2.89/cycls/themes/defaultN}/assets/index-oGkkm3Z8.css +0 -0
- {cycls-0.0.2.87/cycls/themes/default → cycls-0.0.2.89/cycls/themes/defaultN}/index.html +0 -0
- {cycls-0.0.2.87 → cycls-0.0.2.89}/cycls/themes/dev/index.html +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
### AL ###
|
|
2
|
+
#Template for AL projects for Dynamics 365 Business Central
|
|
3
|
+
#launch.json folder
|
|
4
|
+
.vscode/
|
|
5
|
+
#Cache folder
|
|
6
|
+
.alcache/
|
|
7
|
+
#Symbols folder
|
|
8
|
+
.alpackages/
|
|
9
|
+
#Snapshots folder
|
|
10
|
+
.snapshots/
|
|
11
|
+
#Testing Output folder
|
|
12
|
+
.output/
|
|
13
|
+
#Extension App-file
|
|
14
|
+
*.app
|
|
15
|
+
#Rapid Application Development File
|
|
16
|
+
rad.json
|
|
17
|
+
#Translation Base-file
|
|
18
|
+
*.g.xlf
|
|
19
|
+
#License-file
|
|
20
|
+
*.flf
|
|
21
|
+
#Test results file
|
|
22
|
+
TestResults.xml
|
|
23
|
+
dist/
|
|
24
|
+
**/__pycache__/
|
|
25
|
+
.*
|
|
26
|
+
!.github
|
|
27
|
+
mj/
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cycls
|
|
3
|
-
Version: 0.0.2.
|
|
3
|
+
Version: 0.0.2.89
|
|
4
4
|
Summary: Distribute Intelligence
|
|
5
|
-
Author: Mohammed J. AlRujayi
|
|
6
|
-
|
|
7
|
-
Requires-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
-
Requires-Dist: cloudpickle (>=3.1.1,<4.0.0)
|
|
16
|
-
Requires-Dist: docker (>=7.1.0,<8.0.0)
|
|
17
|
-
Requires-Dist: fastapi (>=0.111.0,<0.112.0)
|
|
18
|
-
Requires-Dist: httpx (>=0.27.0,<0.28.0)
|
|
19
|
-
Requires-Dist: pyjwt (>=2.8.0,<3.0.0)
|
|
5
|
+
Author-email: "Mohammed J. AlRujayi" <mj@cycls.com>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Requires-Dist: cloudpickle>=3.1.1
|
|
8
|
+
Requires-Dist: docker>=7.1.0
|
|
9
|
+
Requires-Dist: email-validator>=2.0.0
|
|
10
|
+
Requires-Dist: fastapi>=0.111.0
|
|
11
|
+
Requires-Dist: httpx>=0.27.0
|
|
12
|
+
Requires-Dist: pyjwt>=2.8.0
|
|
13
|
+
Requires-Dist: uvicorn>=0.30.0
|
|
20
14
|
Description-Content-Type: text/markdown
|
|
21
15
|
|
|
22
16
|
<h3 align="center">
|
|
@@ -273,4 +267,3 @@ No YAML. No Dockerfiles. No infrastructure repo. The code is the deployment.
|
|
|
273
267
|
## License
|
|
274
268
|
|
|
275
269
|
MIT
|
|
276
|
-
|
|
@@ -51,6 +51,7 @@ class App(Function):
|
|
|
51
51
|
|
|
52
52
|
def _prepare_func(self, prod):
|
|
53
53
|
self.config.set_prod(prod)
|
|
54
|
+
self.config.debug = not prod # debug=True in local mode
|
|
54
55
|
self.config.public_path = f"cycls/themes/{self.theme}"
|
|
55
56
|
user_func, config, name = self.user_func, self.config, self.name
|
|
56
57
|
self.func = lambda port: __import__("cycls").web.serve(user_func, config, name, port)
|
|
@@ -60,6 +61,7 @@ class App(Function):
|
|
|
60
61
|
print(f"Starting local server at localhost:{port}")
|
|
61
62
|
self.config.public_path = str(CYCLS_PATH.joinpath(f"themes/{self.theme}"))
|
|
62
63
|
self.config.set_prod(False)
|
|
64
|
+
self.config.debug = True
|
|
63
65
|
uvicorn.run(web(self.user_func, self.config), host="0.0.0.0", port=port)
|
|
64
66
|
|
|
65
67
|
def local(self, port=8080, watch=True):
|
|
@@ -12,14 +12,17 @@ import tarfile
|
|
|
12
12
|
|
|
13
13
|
os.environ["DOCKER_BUILDKIT"] = "1"
|
|
14
14
|
|
|
15
|
-
ENTRYPOINT_PY = '''import
|
|
15
|
+
ENTRYPOINT_PY = '''import sys
|
|
16
|
+
sys.path.insert(0, '/app')
|
|
17
|
+
import cloudpickle
|
|
16
18
|
with open("/app/function.pkl", "rb") as f:
|
|
17
19
|
func, args, kwargs = cloudpickle.load(f)
|
|
18
20
|
func(*args, **kwargs)
|
|
19
21
|
'''
|
|
20
22
|
|
|
21
|
-
RUNNER_PY = '''import
|
|
22
|
-
|
|
23
|
+
RUNNER_PY = '''import sys
|
|
24
|
+
sys.path.insert(0, '/app')
|
|
25
|
+
import cloudpickle
|
|
23
26
|
import traceback
|
|
24
27
|
from pathlib import Path
|
|
25
28
|
|