This project has been moved into Ohio University's GitHub Enterprise project space. As such, this repo will not be updated as frequently until the full release of the package. It will then be cloned back to this repo for historical / showcase purposes.
Minimal wrapper lib for Python ETLs using Microsoft's Graph API
Designed with intent for use in Ohio University Python scripts interacting with the Graph API
remote
└──dir
└──path
└──ExampleFile.txt
import simple_graph_etl as sge
documentLibrary = sge.DocumentLibrary(
client_id = 'some client ID',
site_id = 'some site ID',
res_id = 'some res ID',
authority = 'some authority',
scope = 'some scope'
)
connection = sge.SimpleETL(
library = documentLibrary,
thumbprint = 'some thumbprint',
private_key = 'some private key'
)
connection.fetch('/remote/dir/path') # Create local copies of child files at specified remote path
transform_file('ExampleFile.txt') # Transform local file
connection.delete('/remote/dir/path', 'ExampleFile.txt') # Delete remote copy of file as it will be replaced
connection.upload('/remote/dir/path', 'ExampleFile.txt') # Upload local copy of file to same location as originalAdd tests
Peer review
Create detailed usage spec docs
Publish
Move to enterprise space?