
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Simple Python library that pulls the products from Stripe dashboard in JSON format
using only STRIPE_API_KEY as input.
Actively supported by AppSeed via
Discord
. Available items:
Product
Meta Information:
All Images
All Prices
default price
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
. Here is a sample output using an account with one product (multiple prices):
{
"data": [
{
"id": "prod_L3QBiEdGWquAHl",
"name": "Django Datta Able PRO",
"description": "Premium Django Seed project",
"images": [
"https://files.stripe.com/links/MDB8YWNjdF8xSGxXdEdHTExkMVgwN1ZVfGZsX3Rlc3RfZjNtOGxwZTRFdGp1MGp1N2ZUeFlENU9Q008T4Zyl6Z"
],
"price_dfault": {
"price_1KNJKmGLLd1X07VUqu1kDHO2": 99.0
},
"prices": {
"price_1LuEz0GLLd1X07VUpsvuNCT8": 119.0,
"price_1KNJKmGLLd1X07VUqu1kDHO2": 99.0
}
}
]
}
Product Image
pulled from Stripe
Step 1 - Clone the sources from public repository
$ git clone https://github.com/app-generator/python-stripe-wrapper.git
$ cd python-stripe-wrapper
Step 2 - Create
.env
using providedenv.sample
Add .env
file in your projects root directory and add the following credentials
STRIPE_API_KEY=<REAL_VALUE_HERE>
Step 2 - Install
dependencies
$ python -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt
Step 3 - Pull the products from Stripe dashboard
$ python run.py
The products are saved in products.json
(current working directory). Available props:
id
name
description
images
price
(all)Python Library for Stripe API - Free library provided by AppSeed.
FAQs
Simple Wrapper for Stripe API, written in Python
We found that python-stripe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.