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.1a3.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

graph_onedrive-0.0.1a3-py2.py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 2 Python 3

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