Skip to main content

Recharge API Wrapper

This library makes interacting with the Recharge API dead simple.

Installation

pip install recharge

Usage

from recharge import RechargeAPI

api = RechargeAPI(access_token='XXXXX')

response = api.Order.list({'status': 'QUEUED', 'limit': '250'})

for order in response['orders']:
    print(order['id'])

For more details on the content of the reponses, visit the official recharge API docs.

Resources Available

api.Address
api.Charge
api.Checkout
api.Customer
api.Order
api.Subscription

Methods Available

api.*.create
api.*.update
api.*.get
api.*.list

api.Address.apply_discount
api.Checkout.charge
api.Order.change_date
api.Order.delete
api.Subscription.cancel
api.Subscription.set_next_charge_date

Metadata

Release files for recharge 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recharge 1.0.0
File Size Uploaded Provenance
recharge-1.0.0.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for recharge 1.0.0
File Interpreter ABI Platform
recharge-1.0.0-py3.6.egg Legacy Egg format - - Details

Total release size: 10.5 kB

Release files / recharge-1.0.0.tar.gz

Download URL recharge-1.0.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
130d8c8f4c61db0befb58525dd88d6e63ca80db13a34f4b0d8432277fecae635
BLAKE2b-256 checksum
How to use checksums
36e9ed618934517eb3faddda3a160ddf62f75d359ab8d97cb899b90744ae6021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release files / recharge-1.0.0-py3.6.egg

Download URL recharge-1.0.0-py3.6.egg
Size 7.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
4c49014839c6f476c6ca81279f106aa926d57291efc4ca022c8e7285743730a9
BLAKE2b-256 checksum
How to use checksums
ea1e78a7ade2ae809c2582c0d41fc378c8a82cee11a3f1a92536f3f6efd4be2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Security for recharge 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page