Skip to main content

Perform simple tasks on OneDrive through the Graph API.

Project description

Graph-OneDrive

Interact with Microsoft's OneDrive service using the Graph API.

The Graph-OneDrive package facilitates the creation of OneDrive class instances which are objects that you can use to interact with OneDrive sessions. Thus multiple OneDrives can be connected to in parallel.

Functions include:

  • listing directories;
  • moving, copying, and renaming files and folders;
  • uploading and downloading files;
  • getting drive metadata including usage.

Azure app requirement

For the package to connect to the Graph API, you need to have an app registered in the Microsoft Azure Portal. The documentation provides basic guidance on how to register an app.

Note that some Microsoft work and school accounts will not allow apps to connect with them without admin consent.

Installation

The package currently requires Python 3.7 or greater.

General installation is using pip from PyPI, but depending on your installation you may need to use pip3 instead.

pip install graph-onedrive

You can also install the in-development version:

pip install https://github.com/dariobauer/graph-onedrive/archive/master.zip

Futher information is available in the documentation.

Documentation

Documentation and examples are provided on GitHub: https://github.com/dariobauer/graph-onedrive/blob/main/docs/

License

This project itself is subject to BSD 3-Clause License detailed in LICENSE.

The Graph API is provided by Microsoft Corporation and subject to their terms of use.

Links

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

graph_onedrive-0.0.1a4.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

graph_onedrive-0.0.1a4-py2.py3-none-any.whl (15.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file graph_onedrive-0.0.1a4.tar.gz.

File metadata

  • Download URL: graph_onedrive-0.0.1a4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for graph_onedrive-0.0.1a4.tar.gz
Algorithm Hash digest
SHA256 1c95e43b9760fb30a84e4dcde00892689885c6a70104316dcf17d588fe286a56
MD5 83df4126a3be550939e1d1dd0e9771df
BLAKE2b-256 bedf9a016ad6cb6ba227f25cbe9d39fef42004475939fcef035c99220395773b

See more details on using hashes here.

File details

Details for the file graph_onedrive-0.0.1a4-py2.py3-none-any.whl.

File metadata

  • Download URL: graph_onedrive-0.0.1a4-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for graph_onedrive-0.0.1a4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 984caf56ae91c659b98f3285fc870d48ccf6f6eb2600e31251453669d811f662
MD5 c2f7c59199eb8cbbc295edc1562ff179
BLAKE2b-256 ce519f47acdef2f3e1214c7b1a4ac6e90c6a0efc10b90e3c5480fbcf51a3db13

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