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.1a2.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

graph_onedrive-0.0.1a2-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.1a2.tar.gz.

File metadata

  • Download URL: graph_onedrive-0.0.1a2.tar.gz
  • Upload date:
  • Size: 15.6 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.1a2.tar.gz
Algorithm Hash digest
SHA256 07bae6fbf0306223f92086305b2ad4b76794633c5476ec88c208c6479f7d0593
MD5 8acac068dc6c3653816ce31d9371e739
BLAKE2b-256 d8fe25aa4e6641d7d868ed25092df18027599bed9b90f407df040183701ed815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graph_onedrive-0.0.1a2-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.1a2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c04081e98a1a95debd02580b09c573ab98954a1de1d5ca890ef0d22e019180f
MD5 a7d58b7e1fd939709a546dbaf1ad238b
BLAKE2b-256 bf9e9e9e6f6fd549c0237861626b70c1742b779f59cb3ab666cea697304f9b79

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