Our first open source project: tornado-stripe
We are pleased to announce our first open source project: tornado-stripe v.1.0.0.
It’s an API client to access Stripe, our payment gateway from inside Python or Tornado Web Framework.
Here’s a quick example on how to use it:
from tornado_stripe import Stripe
# blocking client
stripe = Stripe('api_key', blocking=True)
DUMMY_PLAN = {
'amount': 2000,
'interval': 'month',
'name': 'Amazing Gold Plan',
'currency': 'usd',
'id': 'stripe-test-gold'
}
# Creating Stripe plan
stripe.plans.post(**DUMMY_PLAN)
# Fetching Stripe plan
plan = stripe.plans.id(DUMMY_PLAN['id']).get()
Releasing this project is just the beginning, we are happy to be part of Python and Tornado communities and looking forward to give back more.
Didip Kerabat, Co-founder of On the Plates
