Office365-REST-Python-Client 2.5.10__py3-none-any.whl → 2.5.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.
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/METADATA +14 -10
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/RECORD +85 -69
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/WHEEL +1 -1
- office365/directory/authentication/conditions/__init__.py +0 -0
- office365/directory/authentication/conditions/application.py +5 -0
- office365/directory/authentication/conditions/applications.py +5 -0
- office365/directory/authentication/conditions/conditions.py +11 -0
- office365/directory/identitygovernance/appconsent/request.py +32 -0
- office365/directory/identitygovernance/appconsent/request_scope.py +5 -0
- office365/directory/identitygovernance/privilegedaccess/group.py +5 -0
- office365/directory/identitygovernance/privilegedaccess/root.py +14 -0
- office365/directory/identitygovernance/privilegedaccess/schedule_instance.py +6 -0
- office365/directory/policies/admin_consent_request.py +10 -0
- office365/directory/policies/root.py +15 -0
- office365/directory/synchronization/status.py +14 -1
- office365/directory/synchronization/task_execution.py +5 -0
- office365/directory/users/user.py +4 -2
- office365/graph_client.py +11 -25
- office365/graph_request.py +24 -1
- office365/onedrive/driveitems/driveItem.py +41 -38
- office365/onedrive/idle_session_signout.py +15 -0
- office365/onedrive/listitems/list_item.py +1 -0
- office365/onedrive/lists/collection.py +6 -0
- office365/onedrive/sharepoint_ids.py +18 -1
- office365/onedrive/sharepoint_settings.py +13 -0
- office365/onedrive/shares/drive_item.py +1 -2
- office365/onedrive/sitepages/title_area.py +15 -5
- office365/onedrive/storage/__init__.py +0 -0
- office365/onedrive/storage/storage.py +5 -0
- office365/onedrive/workbooks/filter.py +7 -0
- office365/onedrive/workbooks/filter_criteria.py +9 -2
- office365/onedrive/workbooks/tables/rows/collection.py +20 -0
- office365/onedrive/workbooks/tables/rows/row.py +2 -1
- office365/onedrive/workbooks/workbook.py +7 -5
- office365/onenote/internal/multipart_page_query.py +2 -3
- office365/outlook/calendar/sharing/__init__.py +0 -0
- office365/outlook/calendar/sharing/message_action.py +5 -0
- office365/outlook/calendar/sharing_message.py +19 -0
- office365/outlook/calendar/timezones/custom.py +9 -0
- office365/outlook/category.py +7 -0
- office365/outlook/mail/automatic_replies_setting.py +7 -0
- office365/outlook/mail/item_body.py +10 -1
- office365/outlook/mail/messages/collection.py +3 -0
- office365/outlook/mail/messages/message.py +3 -4
- office365/outlook/mail/messages/rules/predicates.py +5 -0
- office365/outlook/mail/messages/rules/rule.py +4 -3
- office365/runtime/auth/providers/saml_token_provider.py +4 -4
- office365/runtime/http/request_options.py +7 -3
- office365/runtime/odata/query_options.py +3 -0
- office365/runtime/queries/batch.py +4 -0
- office365/runtime/queries/create_entity.py +6 -8
- office365/runtime/queries/update_entity.py +3 -5
- office365/sharepoint/appprincipal/identity_provider.py +7 -1
- office365/sharepoint/attachments/attachment.py +14 -2
- office365/sharepoint/attachments/collection.py +27 -4
- office365/sharepoint/changes/app_consent_principal.py +5 -0
- office365/sharepoint/changes/file.py +4 -0
- office365/sharepoint/client_context.py +4 -3
- office365/sharepoint/directory/group.py +9 -9
- office365/sharepoint/directory/helper.py +6 -4
- office365/sharepoint/documentmanagement/document_set.py +7 -8
- office365/sharepoint/entity.py +4 -3
- office365/sharepoint/fields/builtin_field_id.py +19 -0
- office365/sharepoint/fields/choice.py +2 -2
- office365/sharepoint/fields/collection.py +1 -3
- office365/sharepoint/fields/field.py +5 -2
- office365/sharepoint/files/file.py +1 -1
- office365/sharepoint/internal/queries/upload_file.py +12 -8
- office365/sharepoint/navigation/node.py +4 -2
- office365/sharepoint/packaging/app_details.py +34 -0
- office365/sharepoint/policy/dlp_policy_tip.py +9 -1
- office365/sharepoint/portal/sites/manager.py +1 -1
- office365/sharepoint/principal/principal.py +10 -1
- office365/sharepoint/principal/users/collection.py +1 -3
- office365/sharepoint/publishing/pages/collection.py +1 -1
- office365/sharepoint/publishing/sites/communication/site.py +4 -3
- office365/sharepoint/request.py +33 -1
- office365/sharepoint/sharing/information.py +5 -0
- office365/sharepoint/sharing/permission_collection.py +13 -9
- office365/sharepoint/sharing/recipient_limits.py +9 -0
- office365/sharepoint/sharing/site_sharing_report_helper.py +2 -3
- office365/sharepoint/tenant/administration/recent_admin_action_report.py +2 -2
- office365/sharepoint/tenant/administration/tenant.py +50 -4
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Office365-REST-Python-Client
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.12
|
|
4
4
|
Summary: Microsoft 365 & Microsoft Graph Library for Python
|
|
5
5
|
Home-page: https://github.com/vgrem/Office365-REST-Python-Client
|
|
6
6
|
Author: Vadim Gremyachev
|
|
@@ -30,7 +30,7 @@ License-File: LICENSE
|
|
|
30
30
|
Requires-Dist: requests
|
|
31
31
|
Requires-Dist: msal
|
|
32
32
|
Requires-Dist: pytz
|
|
33
|
-
Requires-Dist: typing-extensions
|
|
33
|
+
Requires-Dist: typing-extensions >=4.0.0
|
|
34
34
|
Provides-Extra: ntlmprovider
|
|
35
35
|
Requires-Dist: requests-ntlm ; extra == 'ntlmprovider'
|
|
36
36
|
|
|
@@ -145,7 +145,7 @@ Steps to access:
|
|
|
145
145
|
Usage:
|
|
146
146
|
```python
|
|
147
147
|
from office365.sharepoint.client_context import ClientContext
|
|
148
|
-
ctx = ClientContext(
|
|
148
|
+
ctx = ClientContext("{site-url}").with_interactive("{tenant-name-or-id}", "{client-id}")
|
|
149
149
|
me = ctx.web.current_user.get().execute_query()
|
|
150
150
|
print(me.login_name)
|
|
151
151
|
```
|
|
@@ -178,19 +178,17 @@ print("Web title: {0}".format(web.properties['Title']))
|
|
|
178
178
|
```
|
|
179
179
|
|
|
180
180
|
|
|
181
|
-
2. `
|
|
181
|
+
2. `SharePointRequest class` - where you construct REST queries (and no model is involved)
|
|
182
182
|
|
|
183
183
|
The example demonstrates how to read `Web` properties:
|
|
184
184
|
|
|
185
185
|
```python
|
|
186
186
|
import json
|
|
187
187
|
from office365.runtime.auth.user_credential import UserCredential
|
|
188
|
-
from office365.
|
|
189
|
-
from office365.sharepoint.client_context import ClientContext
|
|
188
|
+
from office365.sharepoint.request import SharePointRequest
|
|
190
189
|
site_url = "https://{your-tenant-prefix}.sharepoint.com"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
response = ctx.pending_request().execute_request_direct(request)
|
|
190
|
+
request = SharePointRequest(site_url).with_credentials(UserCredential("{username}", "{password}"))
|
|
191
|
+
response = request.execute_request("web")
|
|
194
192
|
json = json.loads(response.content)
|
|
195
193
|
web_title = json['d']['Title']
|
|
196
194
|
print("Web title: {0}".format(web_title))
|
|
@@ -220,6 +218,7 @@ Refer [examples section](examples/sharepoint) for another scenarios
|
|
|
220
218
|
|
|
221
219
|
Example:
|
|
222
220
|
```python
|
|
221
|
+
from office365.sharepoint.client_context import ClientContext
|
|
223
222
|
client_credentials = ClientCredential('{client_id}','{client_secret}')
|
|
224
223
|
ctx = ClientContext('{url}').with_credentials(client_credentials, environment='GCCH')
|
|
225
224
|
```
|
|
@@ -431,7 +430,7 @@ which corresponds to [`Create team` endpoint](https://docs.microsoft.com/en-us/g
|
|
|
431
430
|
```python
|
|
432
431
|
from office365.graph_client import GraphClient
|
|
433
432
|
client = GraphClient(acquire_token_func)
|
|
434
|
-
new_team = client.groups["{
|
|
433
|
+
new_team = client.groups["{group-id}"].add_team().execute_query_retry()
|
|
435
434
|
```
|
|
436
435
|
|
|
437
436
|
Additional examples:
|
|
@@ -481,4 +480,9 @@ The following libraries will be installed when you install the client library:
|
|
|
481
480
|
* [Microsoft Authentication Library (MSAL) for Python](https://pypi.org/project/msal/)
|
|
482
481
|
|
|
483
482
|
|
|
483
|
+
# ThanksTo
|
|
484
|
+
|
|
485
|
+
Powerful Python IDE [`Pycharm`](https://www.jetbrains.com/pycharm) from [`Jetbrains`](https://jb.gg/OpenSourceSupport).
|
|
486
|
+
|
|
487
|
+
[<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg">](https://jb.gg/OpenSourceSupport)
|
|
484
488
|
|