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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for frappymongoapibilling-0.1.1.tar.gz
Algorithm Hash digest
SHA256 35dfb9d0cca9ea6e9d2e17f38a65f26d211b318e13d003a5afb579e4467c4432
MD5 241ee9f2fce4d9cf7275bc0e8d86e5a8
BLAKE2b-256 fe984977c96959f5a55fcfecada0a58067024c7e895c32a5c4c969addd60100c

See more details on using hashes here.

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

Hashes for frappymongoapibilling-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 756f916120984b0aab18d59bdbe6c80c9f2784d71dde858d36125bf0f4691bcc
MD5 5d151fe9084dccdb55952ea7a781d394
BLAKE2b-256 9cf6f3889592558a3fd54ca4489b3b08ecd12a8b4671c4b22cd7417552c9c3c8

See more details on using hashes here.

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