Skip to content

ilfrich/frappy-py-mongo-api-billing-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python MongoDB Store Implementation for Tracking API Billing Usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published