Skip to main content

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 file
  • GSheets()- creates service using GSuite class upon instantiation
    • get() - gets the values of a specified range
    • update() - updates a specified range with the provide set of values
    • append() - appends values to the end of a range
    • getColumnNumber() - returns numerical column number of letter column
    • getIndexesFromRange() - returns numerical indexes of alphanumeric range
    • create() - creates a new spreadsheet
  • GMail() - creates service using GSuite class upon instantiation
    • fetchEmails()
    • sendEmail()
  • GDrive()- creates service using GSuite class upon instantiation
    • moveFile()
    • uploadFile()
  • GSlides() - creates service using GSuite class upon instantiation
  • BigQuery() creates service using Service Account .json upon instantiation
    • loadTable() - creates table with data
    • createTable() - creates an empty table
    • query() - custom defined query. Returns results of query or loads results at the defined destination table
    • updateSchema() - updates schema of table
    • getTableProperties() - returns parsed table properties
    • deleteTable()
    • 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

fringe_connector-0.0.110.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fringe_connector-0.0.110-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file fringe_connector-0.0.110.tar.gz.

File metadata

  • Download URL: fringe_connector-0.0.110.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.7.4

File hashes

Hashes for fringe_connector-0.0.110.tar.gz
Algorithm Hash digest
SHA256 f9627e8d3bf9a002146acf21e2a2a3783752eba1a227d0f99adeec422140819d
MD5 b3fe0eeb450337a2de2440a2a7d4a830
BLAKE2b-256 c807c913a3141f098a79d132a767c3953bff53f7f8e725063443411d30d48989

See more details on using hashes here.

File details

Details for the file fringe_connector-0.0.110-py3-none-any.whl.

File metadata

File hashes

Hashes for fringe_connector-0.0.110-py3-none-any.whl
Algorithm Hash digest
SHA256 1b6a09115aeab31b148cdde081b7ccc817f61f6c4d2fe3954298cb7f89902cf9
MD5 9292718d39be3d2a028376d4d5077257
BLAKE2b-256 5895a08ebd32d89829cf0d253a81f9a494a547cbf284314eaef315c69ec8965e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page