GithubHelp home page GithubHelp logo

autopilot_plugin's Introduction

Plugin - Autopilot to S3

This plugin moves data from the Autopilot API to S3.

Hooks

AutopilotHook

This hook handles the authentication and requests to Autopilot. Inherits from the HttpHook

S3Hook

Core Airflow S3Hook with the standard boto dependency.

Operators

AutopilotToS3Operator

This operator composes the logic for this plugin. It fetches the autopilot specified resource and saves the result in a S3 Bucket, under a specified key, in ndjson format. The parameters it can accept include the following.

  • autopilot_conn_id: The Airflow connection id used to store the Airflow credentials.
  • autopilot_resource : resource to call. Possible values are [lists, smart_segments, contacts/custom_fields, triggers]. Leave blank if you want to list all contacts.
  • payload: (optional) payload to send with request.
  • results_field: (optional the field with the results from the api's response. Default to "contacts", if contacts field is true else defaults to the resource's name
  • ids: (optional) ids for the api call (for smart_segments)
  • contacts: (optional) true if the operator should get all contacts from resource.
  • s3_conn_id :The Airflow connection id used to store the S3 credentials.
  • s3_bucket: The S3 bucket to be used to store the Autopilot data.
  • s3_key: The S3 key to be used to store the Autopilot data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.