Metadata-Version: 2.1
Name: fs.onedrivefs
Version: 1.1.0
Summary: Pyfilesystem2 implementation for OneDrive using Microsoft Graph API
Home-page: https://github.com/rkhwaja/fs.onedrivefs
License: MIT
Keywords: filesystem,Pyfilesystem2,onedrive
Author: Rehan Khwaja
Author-email: rehan@khwaja.name
Requires-Python: >=3.6
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: fs (>=2.0.6)
Requires-Dist: requests (>=2.20)
Requires-Dist: requests-oauthlib (>=1.2.0)
Requires-Dist: urllib3 (>=1.26); python_version >= "3.10" and python_version < "4"
Description-Content-Type: text/markdown

# fs.onedrivefs

Implementation of pyfilesystem2 file system using OneDrive

![image](https://github.com/rkhwaja/fs.onedrivefs/workflows/ci/badge.svg) [![codecov](https://codecov.io/gh/rkhwaja/fs.onedrivefs/branch/master/graph/badge.svg)](https://codecov.io/gh/rkhwaja/fs.onedrivefs) [![PyPI version](https://badge.fury.io/py/fs.onedrivefs.svg)](https://badge.fury.io/py/fs.onedrivefs)

# Usage

``` python
onedriveFS = OneDriveFS(
  clientId=<your client id>,
  clientSecret=<your client secret>,
  token=<token JSON saved by oauth2lib>,
  SaveToken=<function which saves a new token string after refresh>)

# onedriveFS is now a standard pyfilesystem2 file system
```

Register your app [here](https://docs.microsoft.com/en-us/graph/auth-register-app-v2) to get a client ID and secret

