Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

jsbronder/asyncio_stripe

Repository files navigation

Stripe API bindings for Python 3.5+ using asyncio and aiohttp

image

Unmaintained

This project is no longer actively maintained.

Introduction

As the header says, this is a wrapper around the Stripe API using asyncio and aiohttp. Stripe data is modeled using frozen objects built using attrs. Required arguments to API calls are explicitly listed while optional arguments are simply keyword arguments.

Installation

asyncio_stripe be installed via pip or by simply running the included setup.py script:

pip install asyncio_stripe
# OR
python setup.py install --root <destination> --record installed_files.txt

Examples

Create a Client:

Authorize then capture $1.00 from a Customer's default card:

Capture funds using a token:

Create, retrieve and pretty print a customer:

Thanks

While this project represents the company in no way, thanks to Kuvée (https://kuvee.com) for generously sponsoring some of the time I've spent in development.