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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file frappymongoapibilling-0.1.1.tar.gz
.
File metadata
- Download URL: frappymongoapibilling-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35dfb9d0cca9ea6e9d2e17f38a65f26d211b318e13d003a5afb579e4467c4432 |
|
MD5 | 241ee9f2fce4d9cf7275bc0e8d86e5a8 |
|
BLAKE2b-256 | fe984977c96959f5a55fcfecada0a58067024c7e895c32a5c4c969addd60100c |
File details
Details for the file frappymongoapibilling-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: frappymongoapibilling-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 756f916120984b0aab18d59bdbe6c80c9f2784d71dde858d36125bf0f4691bcc |
|
MD5 | 5d151fe9084dccdb55952ea7a781d394 |
|
BLAKE2b-256 | 9cf6f3889592558a3fd54ca4489b3b08ecd12a8b4671c4b22cd7417552c9c3c8 |