Office365-rest-python-client

Latest version: v2.5.14

Safety actively analyzes 688554 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

2.5.2

Changelog

- 762: Missing dependency typing_extensions on Python by chludwig-haufe
- 764: file and folder addresing methods fixes
- 765: CI & Linting improvements and fixes by kellerza
- 766: fix to share file with password
- 767: fix change token entity type namefix change token entity type name by benediktziegler
- 768: documentation fixes by TomPughe

2.5.1

Changelog

- 757: Conditionally import ParamSpec from typing_extensions by thaiphv

2.5.0

Changelog

- 740: fix for `Folder.copy_to_using_path` method
- 743: introduce black for code formatting and fix flake8 by kellerza
- 746 & 747 typing improvements (support for `mypy` and `pyright` type checkers) by kellerza
- 744: Fix ResourcePath collection by kellerza
- 748: `File.download_session` method fix
- introduced `GraphClient.with_client_secret` and `GraphClient.with_username_and_password` methods to initialize the client, refer below examples


Example: initializes a `GraphClient` client using user namename and password flow:

python
from office365.graph_client import GraphClient

client = GraphClient.with_username_and_password(
"contoso.onmicrosoft.com", client_id, username, password
)




Example: initializes a `GraphClient` with client secret:

python
from office365.graph_client import GraphClient
client = GraphClient.with_client_secret("contoso.onmicrosoft.com", client_id, client_secret)

2.4.4

Changelog

- 723: fixes `FieldCollection.add_dependent_lookup_field` by pclasen-eb
- 722: fixes 404 error with `Web.get_file_by_server_relative_path` method

2.4.3

Changelog

- 682: fixes the bug with loosing event handlers
- Support for Interactive authentication via `ClientContext.with_interactive` method introduced
- 713: support for oauth2 device code auth introduced


Example: demonstrates how to interactively authenticate via `ClientContext` client

python
tenant = "contoso.onmicrosoft.com"

ctx = ClientContext(site_url).with_interactive(tenant, client_id)
me = ctx.web.current_user.get().execute_query()
print(me.login_name)

2.4.2

Changelog

- 645: fixed error when file get addressed by path


Enhancements for files and folders addressing in SharePoint v1 API

When addressing a file or folder, in addition to _server relative url_ format `/sites/mysite/folder/filename.ext`, it is supported to specify url in _site or web relative_ format now: `folder/filename.ext`, for example:


python
ctx = ClientContext(site_url).with_credentials(credentials)
file_url = 'Shared Documents/Report.xlsx'
file = ctx.web.get_file_by_server_relative_url(file_url).get().execute_query()


Support for long running actions in Teams API, polling for status method introduced

Use `ensure_created` method which polls for team status to determine whether it has been created:

python
client = GraphClient(acquire_token)
new_team = client.teams.create(team_name).ensure_created().execute_query()

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.