pypi Office365-REST-Python-Client 2.5.5
v 2.5.5

latest releases: 2.5.13, 2.5.12, 2.5.11...
9 months ago

Changelog

  • #745: better support for Range in OneDrive API

Example: get Range

client = GraphClient.with_username_and_password(
    tenant_name, client_id, username, password
)
drive_item = client.me.drive.root.get_by_path("Financial Report.xlsx")
worksheets = drive_item.workbook.worksheets.get().execute_query()
if len(worksheets) == 0:
    sys.exit("No worksheets found")

worksheet_range = worksheets["Sheet1"].range(address="A1:B3").execute_query()

Don't miss a new Office365-REST-Python-Client release

NewReleases is sending notifications on new releases.