Suite of prebuilt connectors to other APIs
Project description
Fringe API Connectors
This API package GSuite and GCP API connections into classes with simpler executions.
Requirements
- Oauth Credentials for GSuite services
- Service Account for GCP services
Defaults
- scopes:
scopes = [
'https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/spreadsheets',
'https://mail.google.com/'
]
Classes & Functions
import fringe_connector.api
GSuite()
- authenticates using the Oauth credentials .json fileGSheets()
- creates service using GSuite class upon instantiationget()
update()
getColumnNumber()
getIndexesFromRange()
create()
GMail()
- creates service using GSuite class upon instantiationfetchEmails()
sendEmail()
GDrive()
- creates service using GSuite class upon instantiationmoveFile()
uploadFile()
GSlides()
- creates service using GSuite class upon instantiationBigQuery()
creates service using Service Account .json upon instantiationloadTable()
- creates table with datacreateTable()
- creates an empty tablequery()
- custom defined query. Returns results of query or loads results at the defined destination tableupdateSchema()
- updates schema of tablegetTableProperties()
- returns parsed table propertiesdeleteTable()
copyTable()
deleteDataset()
createDataset()
getDatasetTables()
import fringe_web_driver
WebDriver()
- default instantiation with a crome web driver. Requires a chrome web driver in PATH.quit()
downloadFile()
- works with chrome web driver. Buggy with Firefox web driver. Returns the filename of the downloaded file.
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
Built Distribution
Close
Hashes for fringe_connector-0.0.104-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 247ba5ab826459e85df0ba4b42e29837f489888092b8c8642f9b08d085f5a300 |
|
MD5 | c78d28d941783f7bd7a282c773530265 |
|
BLAKE2b-256 | 29a7fd069762ec839ce9f4e4a1c544d7d16ff7011d4ff397a896f3d40ce50d64 |