Skip to main content

Simple Wrapper for Stripe API, written in Python

Project description

Simple Python Wrapper for Stripe

This minimal library pulls the products from Stripe in JSON format using STRIPE_API_KEY as input, loaded from environment.


Quick Start


Install the package via PIP

$ pip install python-stripe

Usage in code

from stripe_python import get_products

STRIPE_KEY  = 'YOUR_key_here' # mandatory parameter  
OUTPUT_FILE = 'products.json' # optional   

get_products( STRIPE_KEY, OUTPUT_FILE ) 

All products associated with the account are pulled in products.json.


Standalone Execution


Step 1 - Create .env using provided env.sample

Add .env file in your projects root directory and add the following credentials

STRIPE_API_KEY=<REAL_VALUE_HERE>

Step 1 - Install dependencies

$ python -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt

Pull the products from Stripe dashboard

$ python run.py

The products are saved in products.json. Available props:

  • id
  • name
  • description
  • images
  • price

Credits & Links



Simple Python Wrapper for Stripe - Free library provided by AppSeed.

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

python-stripe-0.0.2.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

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