GithubHelp home page GithubHelp logo

stripe_plugin's Introduction

Plugin - Stripe to S3

This plugin moves data from the Stripe API to S3 based on the specified object

Creating a connection

To create a connection with stripe using the Airflow UI you need to open the interface > Admin dropdown menu > click on "connections" > create. In "extras" field, specify your api key from stripe in the following format: {"api_key": "your_secret_api_key"} Leave all the other fields blank.

Hooks

StripeHook

This hook handles the authentication and request to Stripe. Based on stripe-python module.

S3Hook

Core Airflow S3Hook with the standard boto dependency.

Operators

StripeToS3Operator

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

  • stripe_conn_id: The Stripe connection id from Airflow
  • stripe_object: Stripe object to query. Tested for BalanceTransaction, Charge, Coupon, Customer, Event, InvoiceItem, Invoice, Plan, Subscription, Transfer
  • stripe_args: optional dictionary with any extra arguments accepted by stripe-python module,
  • s3_conn_id: S3 connection id from Airflow.
  • s3_bucket: The output s3 bucket.
  • s3_key: The input s3 key.
  • fields: optional list of fields that you want to get from the object. If None, then this will get all fields for the object
  • replication_key_value: (optional) value of the replication key, if needed. The operator will import only the objects created after the object with this id.

stripe_plugin's People

Contributors

benjamingregory avatar adelinaenache avatar

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.