Microsoft 365 & Microsoft Graph Library for Python
MIT License
Bot releases are hidden (Show)
Published by vgrem over 4 years ago
Bug fixes (#183) and publish package to PyPi (PR #184)
Published by vgrem over 4 years ago
Now for user credentials flow, instead of
ctx_auth = AuthenticationContext(url=site_url)
ctx_auth.acquire_token_for_user(username,password):
ctx = ClientContext(site_url, ctx_auth)
an authenticated client could be initialized like this:
ctx = ClientContext.connect_with_credentials(site_url, UserCredential(username,password))
and for client credentials flow (aka SharePoint App-Only) instead of
ctx_auth = AuthenticationContext(url=site_url)
ctx_auth.acquire_token_for_app(client_id,client_secret):
ctx = ClientContext(site_url, ctx_auth)
like this:
ctx = ClientContext.connect_with_credentials(site_url, ClientCredential(client_id,client_secret))
GroupSiteManager.create_group_ex - create a Team site
SPSiteManager.create - create a Communication site
Create a Team Site
client = ClientContext.connect_with_credentials(url,ClientCredential(client_id,client_secret))
site_manager = GroupSiteManager(client)
info = site_manager.create_group_ex("Team Site", "teamsite", True, None)
client.execute_query()
Create a Communication site
client = ClientContext.connect_with_credentials(url,ClientCredential(client_id,client_secret))
site_manager = SPSiteManager(client)
request = SPSiteCreationRequest("CommSite", "https://contoso.sharepoint.com/sites/commsite")
response = site_manager.create(request)
client.execute_query()
Published by vgrem over 4 years ago
Support for SAML-based federated authentication with SharePoint Online
Bug fixes and feature requests: #170 #171
Published by vgrem over 4 years ago
Mainly unit testing bug fixes for Travis CI
Published by vgrem over 4 years ago
The list of changes:
introduced new resources such as ContentType
, ColumnDefinition
support for Resumable file upload
support for chunk file upload, for example:
ctx = ClientContext(site_url, ctx_auth)
size_1Mb = 1000000
local_path = "./data/big_buck_bunny.mp4"
target_url = "/Shared Documents"
result_file = ctx.web.get_folder_by_server_relative_url(target_url)
.files.create_upload_session(local_path, size_1Mb, print_upload_progress)
ctx.execute_query()
Published by vgrem almost 5 years ago
Release changes:
GraphClient
client has been introduced for working with Microsoft Graph endpointPublished by vgrem about 5 years ago
introduced support for Introduced support for SharePoint 2010 list data service, ListDataService
class
added methods and properties for List, ListItem and Field resources:
ListItem.validate_update_listItem
method - Validates and sets the values of the specified collection of fields for the list item.ListItem.system_update
methodListItem.update_overwrite_version
methodListItem.parent_list
navigation propertyList.fields
navigation propertyFieldCollection.add
methodFieldCollection.get_by_id
methodFieldCollection.get_by_internal_name_or_title
methodFieldCollection.get_by_title
methodField.update
methodField.delete
methodPublished by vgrem over 5 years ago
Added support for NTLM authentication #110
Switch context per web #111
All the credit goes to @Aisbergg for those changes!
Published by vgrem over 5 years ago
Outlook client transitioned from Office 365 Outlook REST API to Microsoft Graph-based Outlook REST API
introduced support for for Resource Owner Password Credential (ROPC) flow, which is suitable for scenarios where BasicAuth (discontinued nowadays) was utilized before
Published by vgrem over 6 years ago
Introduced support for SharePoint authentication via OAuth (app principal) and SharePoint CAML queries