Skip to main content

A thin Python wrapper for Fastbill's HTTP API

Project description

# python-fastbill

Super thin Python wrapper for Fastbill’s HTTP API developed by [Stylight](http://www.stylight.de/).

Limitations:

  • only supports JSON payloads

  • doesn’t (overly) check for consistency of responses

  • doesn’t convert date strings to datetime objects

Dependencies:

  • requests

## Installation

pip install fastbill

## Usage

# Construct the api client

client = FastbillWrapper(‘fastbill_user’, ‘fastbill_key’)

# Make requests, e.g. service customer.create

client.customer_create(data={})

# Search for customer, subscriptions, etc…

for customer in client.customer_get(filter={‘city’: ‘Munich’}):

print customer

# But you can also see the full result

result = client.customer_get(filter={‘city’: ‘Munich’}) print result.keys()

# Will give you ‘CUSTOMERS’

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

fastbill-0.1.3.tar.gz (3.2 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