frappymongoapibilling-0.1.1
توضیحات
MongoDB Store for the API Billing Backend
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | frappymongoapibilling-0.1.1 |
| نام | frappymongoapibilling |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Peter Ilfrich |
| ایمیل نویسنده | das-peter@gmx.de |
| آدرس صفحه اصلی | https://github.com/ilfrich/frappy-py-api-billing-store |
| آدرس اینترنتی | https://pypi.org/project/frappymongoapibilling/ |
| مجوز | - |
# Frappy Python Mongo Store for API Billing
Python MongoDB Store Implementation for Tracking [API Billing](https://github.com/ilfrich/frappy-api-billing) Usage.
## Installation
```shell
pip install frappymongoapibilling --user
```
This will also install `pbu` which is required to operate the store implementation.
## Usage
```python
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](https://github.com/ilfrich/frappy-api-billing#usage) for details on how to use the module.
نیازمندی
| مقدار | نام |
|---|---|
| - | frappyapibilling |
| >=1.0.0 | pbumongo |
نحوه نصب
نصب پکیج whl frappymongoapibilling-0.1.1:
pip install frappymongoapibilling-0.1.1.whl
نصب پکیج tar.gz frappymongoapibilling-0.1.1:
pip install frappymongoapibilling-0.1.1.tar.gz