Skip to main content

Client for using Microsoft Graph API asynchronously

Project description

This is a client for Microsoft Graph API

The client currently supports the following Graph API:

  • Acquiring access token
  • Generating authorization url for admin consent
  • Users basic operations (list/get)
  • Subscriptions operations (create/renew/delete, also for chat resources)
  • Mails operations (list/get/send/add/delete/attachments/extensions/user-purpose)
  • Mail folders operations (get-bulk/get/list)
  • SharePoint sites operations (list/get)
  • Drive resources operations (get delta link/list changes/list recent changes/get (by user, by drive))
  • Groups operations (list/get)
  • Teams operations (get)
  • Channels operations (get)
  • Domains operations (list/get)
  • Service Principals operations (list/get)

The client is async, meaning all functions are awaitables.

Odata query is also generally supported, you can build the query and pass it to any supported function as key-word argument

The client supports automatic token refresh, this is done by calling manage_token passing it app-id, app-secret and tenant-id.

If token is managed, then there's no need to pass the token to any of the client call. However, if the token is not managed, you will need to provide it with every call as part of kwargs (e.g. list_users(token="your access token here")).

This client is intended to serve tenant-admin so the only user-context api that is currently supported is to acquire access token from refresh token.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msgraph-async-0.2.2.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

msgraph_async-0.2.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file msgraph-async-0.2.2.tar.gz.

File metadata

  • Download URL: msgraph-async-0.2.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.3 importlib-metadata/4.4.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

File hashes

Hashes for msgraph-async-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7a574a6aceee3c6d5d13ce017ebc29a70820710177dd9b912e8d04c669d7ada1
MD5 ebb6d4357c0b186d420a2161e43ab27e
BLAKE2b-256 4e597e6947385fe63b1b580bc145a83b1d7b658fb94025f793ccc1f0cfdaa1df

See more details on using hashes here.

File details

Details for the file msgraph_async-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: msgraph_async-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.3 importlib-metadata/4.4.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

File hashes

Hashes for msgraph_async-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac45b2e8a7a8e4c6b19503ae6f779859db4e5d3b42e479c5f6c8db151dc6895d
MD5 3d12fdd18fa2b372f1d5550b0434f8c9
BLAKE2b-256 a97d5de79f64ef21455a8ad465475299836ec915b30018cecce3220d3dc6418b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page