Skip to content

glennpai/simple-graph-etl-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-graph-etl

NOTE

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

Example

Example document library structure:

remote
└──dir
   └──path
      └──ExampleFile.txt

Example ETL:

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 original

TODO

Add tests

Peer review

Create detailed usage spec docs

Publish

Move to enterprise space?

About

Minimal wrapper lib for Python ETLs using Microsoft's Graph API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages