Office365-rest-python-client

Latest version: v2.5.9

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

Scan your dependencies

Page 2 of 9

2.5.3

Changelog

- 791 fix: do not reuse same instance for recipient by byenilmez
- 787 support for `file_name` parameter in `File.copyto` and `File.copyto_using_path` methods
- 781: fix for ImportError: cannot import name 'TypedDict' from 'typing' on Python 3.7
- 764: fix for `parent_folder` and `parent_collection` empty when retrieving file using `ctx.web.get_file_by_server_relative_url`
- 735 fix for 401 Client Error: Unauthorised for url on site property update

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)

Page 2 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.