Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added Git-2.49.0-64-bit.exe
Binary file not shown.
Binary file added New product development (Gate System) temp.docx
Binary file not shown.
Binary file added R&D Instrument list.xlsx
Binary file not shown.
Binary file added R&D instruments Budget For Ramesh Sir.xlsx
Binary file not shown.
Binary file added Report formate_ IISc phase 3.pptx
Binary file not shown.
Binary file added SAT_Recycling_Budget_Approval.pptx
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions rough.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import pandas as pd
import os
from io import StringIO
from datetime import datetime
from office365.runtime.auth.authentication_context import AuthenticationContext
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.files.file import File
import clickhouse_connect

# SharePoint URL and credentials
sharepoint_base_url = ''
sharepoint_user = ''
sharepoint_password = ''


# Authenticate to SharePoint
auth = AuthenticationContext(sharepoint_base_url)
auth.acquire_token_for_user(sharepoint_user, sharepoint_password)
ctx = ClientContext(sharepoint_base_url, auth)
web = ctx.web
ctx.load(web)
ctx.execute_query()
print('Connected to SharePoint:', web.properties['Title'])