datasourcelib 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.
@@ -300,6 +300,7 @@ class AzureDevOpsSource(DataSourceBase):
300
300
 
301
301
  # Display name and url
302
302
  display_name = page.get("name") or page.get("pageName") or page_path.strip("/") or "/"
303
+ new_display_name = self.sanitize(display_name.replace(" ", "_").strip()),
303
304
  url = (
304
305
  page.get("remoteUrl")
305
306
  or page.get("url")
@@ -339,12 +340,23 @@ class AzureDevOpsSource(DataSourceBase):
339
340
  content_text = w_resp.content.decode("utf-8", errors="ignore")
340
341
  except Exception:
341
342
  content_text = ""
342
-
343
+ # Construct a 'full' description string using available pieces
344
+ content_text = BeautifulSoup(content_text or "", "html.parser").get_text(),
345
+ parts = []
346
+ if new_display_name:
347
+ parts.append(f"Wiki Page Name is {display_name}. Page has information about {display_name}")
348
+ if project_name:
349
+ parts.append(f"This page is documented by for Project '{project_name}' and by the team '{project_name}'")
350
+ if url:
351
+ parts.append(f"The devops wiki page (url) link to access this page is {url}")
352
+ if project_name:
353
+ parts.append(f"These wiki page content refers sharepoint site links and other documents from sharepoint. So to get full detailed steps or contents you need to refer those links with appropriate permissions. This page contents are available on wiki are [{content_text}].")
354
+
355
+ index_content = ". ".join(parts)
343
356
  results.append({
344
- "display_name": self.sanitize(display_name.replace(" ", "_").strip()),
357
+ "display_name": new_display_name,
345
358
  "url": url,
346
- "content": BeautifulSoup(content_text or "", "html.parser").get_text(),
347
- "wiki": wiki_display,
359
+ "content": index_content,
348
360
  "project": project_name
349
361
  })
350
362
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datasourcelib
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: Data source sync strategies for vector DBs
5
5
  Home-page: https://github.com/akashmaurya0217/datasourcelib
6
6
  Author: Akash Kumar Maurya
@@ -5,7 +5,7 @@ datasourcelib/core/sync_manager.py,sha256=pfnvWv4AwmlJJUIsfxNNxYDBOsa7juTIxgFJIE
5
5
  datasourcelib/core/sync_types.py,sha256=KVZB7PkfkFTzghoe--U8jLeAU8XAfba9qMRIVcUjuMc,297
6
6
  datasourcelib/datasources/__init__.py,sha256=lZtgs0vT-2gub5UZo8BUnREZl3K_-_xYqUP8mjf8vhM,436
7
7
  datasourcelib/datasources/azure_devops_source copy.py,sha256=g-IOCq5vGwwteU21jZPWW_GggMu1_myVJkP0_BmSdGY,7282
8
- datasourcelib/datasources/azure_devops_source.py,sha256=A1RhV0uy-6wJ0_HGTf9LhIafkxoFou3HO-r9HDmEAnY,18571
8
+ datasourcelib/datasources/azure_devops_source.py,sha256=o-rl090HxbBA_Sl6WHazIDoA1NhjybIrmyQCU0SwzqA,19649
9
9
  datasourcelib/datasources/azure_devops_source10dec.py,sha256=J48E78AEfqkS-eBq7sesA48zmSiZ9oSfJkQjL7RAbyA,7928
10
10
  datasourcelib/datasources/blob_source.py,sha256=Qk61_ulqUSPYDaiMzqgvJAu43c4AjTlDRdfFg4VwgDU,3574
11
11
  datasourcelib/datasources/datasource_base.py,sha256=N8fOGvTl8oWWAiydLI0Joz66luq73a5yovO0XA9Q3jk,1068
@@ -30,8 +30,8 @@ datasourcelib/utils/exceptions.py,sha256=mgcDaW1k3VndgpMOwSm7NqgyRTvvE2a5ehn3x4f
30
30
  datasourcelib/utils/file_reader.py,sha256=Zr0rwNTRWE6KeVJEXgTOPS1_JI74LiUSiX5-6qojmN0,7301
31
31
  datasourcelib/utils/logger.py,sha256=Sl6lNlvubxtK9ztzyq7vjGVyA8_-pZ_ixpk5jfVsh6U,424
32
32
  datasourcelib/utils/validators.py,sha256=fLgmRAb5OZSdMVlHu_n0RKJUDl-G8dI8JsRSfxIquh8,205
33
- datasourcelib-0.1.11.dist-info/licenses/LICENSE,sha256=9S0AcKETmp9XOcC73jEjN7WSkuSWGFGreiBat6ONClo,1087
34
- datasourcelib-0.1.11.dist-info/METADATA,sha256=lfafhWbmV2lNtpSFntgM62Q7TJsyl_atJe4HhCvjdKo,1200
35
- datasourcelib-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
- datasourcelib-0.1.11.dist-info/top_level.txt,sha256=wIwiwdIj8T9pAvE2TkGLUvT2oIi43C2vkkTKibUlv3U,14
37
- datasourcelib-0.1.11.dist-info/RECORD,,
33
+ datasourcelib-0.1.12.dist-info/licenses/LICENSE,sha256=9S0AcKETmp9XOcC73jEjN7WSkuSWGFGreiBat6ONClo,1087
34
+ datasourcelib-0.1.12.dist-info/METADATA,sha256=Rvu5r33TNr6s-ph4bH6MCcwOx_jELup4C3KNnmTZA8Y,1200
35
+ datasourcelib-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
+ datasourcelib-0.1.12.dist-info/top_level.txt,sha256=wIwiwdIj8T9pAvE2TkGLUvT2oIi43C2vkkTKibUlv3U,14
37
+ datasourcelib-0.1.12.dist-info/RECORD,,