Python wrapper for the ChargeBee API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
chargebee
tests
.gitignore
CHANGELOG.md * * * Jan 10, 2019
LICENSE
MANIFEST.in
README.md
setup.py

README.md

Chargebee Python Client Library - API V2

PyPI PyPI

This is the Python Library for integrating with Chargebee. Sign up for a Chargebee account here.

Chargebee now supports two API versions - V1 and V2, of which V2 is the latest release and all future developments will happen in V2. This library is for API version V2. If you’re looking for V1, head to chargebee-v1 branch.

Installation

Install the latest version 2.x.x of the library with the following commands:

$ pip install 'chargebee>=2,<3'

or

$ easy_install --upgrade 'chargebee>=2,<3'

If you would prefer to install it from source, just checkout the latest version for 2.x.x by git checkout [latest 2.x.x release tag] and install with the following command:

$ python setup.py install

Documentation

See our Python API Reference.

Usage

To create a new subscription:

import chargebee
chargebee.configure(api_key, site)

res = chargebee.Subscription.create({
"plan_id" : "basic"
})

print res.subscription

License

See the LICENSE file.