ziya 0.1.11__py3-none-any.whl → 0.1.12__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.

Potentially problematic release.


This version of ziya might be problematic. Click here for more details.

app/server.py CHANGED
@@ -3,6 +3,7 @@ from typing import Dict, Any, List, Tuple
3
3
 
4
4
  import tiktoken
5
5
  from fastapi import FastAPI, Request
6
+ from fastapi.middleware.cors import CORSMiddleware
6
7
  from fastapi.staticfiles import StaticFiles
7
8
  from fastapi.templating import Jinja2Templates
8
9
  from langserve import add_routes
@@ -16,6 +17,15 @@ from app.utils.directory_util import get_ignored_patterns
16
17
  from app.utils.gitignore_parser import parse_gitignore_patterns
17
18
 
18
19
  app = FastAPI()
20
+
21
+ app.add_middleware(
22
+ CORSMiddleware,
23
+ allow_origins=["*"],
24
+ allow_credentials=True,
25
+ allow_methods=["*"],
26
+ allow_headers=["*"],
27
+ )
28
+
19
29
  app.mount("/static", StaticFiles(directory="../templates/static"), name="static")
20
30
  templates = Jinja2Templates(directory="../templates")
21
31
 
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.11"
3
+ version = "0.1.12"
4
4
  description = ""
5
5
  authors = ["Vishnu Krishnaprasad <vishnukool@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ziya
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -78,9 +78,7 @@ ziya
78
78
 
79
79
  ### Options
80
80
 
81
- `--exclude`: Comma-separated list of files or directories or file suffix patterns to exclude from the codebase. Eg: `--exclude 'tst,build,*.py'`
82
-
83
- `--include`: Comma-separated list of directories to include. By default, it only searches for current directory for code files, but you can specify a list of subset directories under current folder to search instead of the entire folder. Eg: `--include='app,src/mappers'`
81
+ `--exclude`: Comma-separated list of files or directories or file suffix patterns to exclude from the codebase. Eg: "--exclude 'tst,build,*.py'"
84
82
 
85
83
  `--profile`: AWS profile to use for the Bedrock LLM.
86
84
 
@@ -91,3 +89,4 @@ ziya
91
89
  ```bash
92
90
  ziya --include='app,src/mappers' --exclude='tst,build,*.py' --profile=ziya --model=sonnet --port=8080
93
91
  ```
92
+
@@ -3,7 +3,7 @@ app/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  app/agents/agent.py,sha256=l_GmvQ_G4eKwd_9h4tH325jnQDS3_-NYFAX2yKcypPw,5363
4
4
  app/agents/prompts.py,sha256=LMwNzbYexns8er7mlF5VKhlobYH9yy37HR-axL_DNkk,1747
5
5
  app/main.py,sha256=jm78WN0opAp-lk78mUTg7a-n68E322Jwy2fUosoIphE,2819
6
- app/server.py,sha256=VqPlRQ-_14eI4Y9kIkcHrGW5uMxL6MPesD9bZrBvanQ,3199
6
+ app/server.py,sha256=nzm94XVuntOQgM61ivQGAMghG8HexeCSI29sziVSocI,3397
7
7
  app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  app/utils/directory_util.py,sha256=2zxsSxSOZKesjhgjF3KguY__fC9XkjxHHnDbcxtnhXk,2762
9
9
  app/utils/gitignore_parser.py,sha256=DnDqf7K6neeLTChcGD-x4g1UQ32pzgHh0qf7oP1mEDk,7425
@@ -11,7 +11,7 @@ app/utils/langchain_validation_util.py,sha256=RgmKayKMApvUA7SPF_DrBAcYdIzzLUVJfn
11
11
  app/utils/logging_utils.py,sha256=8JEcc1t7L-a0G4HLmM8zFydNNSOd5l2-gkTxviLQUns,280
12
12
  app/utils/print_tree_util.py,sha256=O4Rb-GS8UODxfH7Z6bZGsr-opG6QLmvdaU1im5kh4IA,1419
13
13
  app/utils/version_util.py,sha256=NcvMWIImJDcO9K5OMX6jJD4q6Zb8Y117Mu8sWIkhxEc,631
14
- pyproject.toml,sha256=wnlS-7gHbMeuGR9mljgmA-cU99zttwa0ekfcMyhrvvo,804
14
+ pyproject.toml,sha256=kRH3IGE0yIag1w6K-6K0IzaF6ygbEyk5qp6aoUgfebM,804
15
15
  scripts.py,sha256=70BOvYoboMhl3Bxjy73m1ozmI8UV8JZVyi2RwUptkK8,809
16
16
  templates/.DS_Store,sha256=IWzGxsqGRcdoSHwV5Q9YF26GaZGnTClZWzKJgx33UyY,6148
17
17
  templates/asset-manifest.json,sha256=-cGZTauN08338NqyS6yzTSJs0xFusjbbXrLN7PJiAuE,1157
@@ -30,8 +30,8 @@ templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2,sha256=rhfBavvqIW
30
30
  templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf,sha256=tJkNDQxfXTjWLpNu6hIGdOWEx-6o3O44qXXAz5o3U5s,420332
31
31
  templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf,sha256=_49SX7BQxdJFGczI9XI9hbLlHt0_m8ZUivVa663U8mk,10832
32
32
  templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2,sha256=x6hp-sopnRW-EKAfGdB2WnxNRtiSLZuTFyNcHkpvCYI,4792
33
- ziya-0.1.11.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
34
- ziya-0.1.11.dist-info/METADATA,sha256=gfAXSpCKiQ0LeRNXjs7vBNYxdTwHFPpewZH2-v5GgOo,2978
35
- ziya-0.1.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- ziya-0.1.11.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
37
- ziya-0.1.11.dist-info/RECORD,,
33
+ ziya-0.1.12.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
34
+ ziya-0.1.12.dist-info/METADATA,sha256=0AvjBsq2RLG81TTd5k9abks4kgzFJqtveiiRJeTJidI,2706
35
+ ziya-0.1.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ ziya-0.1.12.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
37
+ ziya-0.1.12.dist-info/RECORD,,
File without changes
File without changes