Skip to main content

MongoDB Store for the API Billing Backend

Project description

Frappy Python Mongo Store for API Billing

Python MongoDB Store Implementation for Tracking API Billing Usage.

Installation

pip install frappymongoapibilling --user

This will also install pbu which is required to operate the store implementation.

Usage

from frappymongoapibilling import UsageStore
from frappyapibilling import ApiBilling

# create the store instance
store = UsageStore(mongo_url="mongodb://localhost:27017", mongo_db="myDatabase", collection_name="apiUsage")

# pass the store instance to the api billing constructor
api_billing = ApiBilling(usage_store=store)

See API Billing Usage for details on how to use the module.

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

frappymongoapibilling-0.1.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

frappymongoapibilling-0.1.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

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