Metadata-Version: 2.1
Name: amberflo-metering-python
Version: 2.1.0
Summary: Integrate amberflo into any python application.
Home-page: https://github.com/amberflo/metering-python
Author: Amberflo
Author-email: friends@amberflo.com
Maintainer: Amberflo.io
Maintainer-email: friends@amberflo.com
License: MIT License
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: requests (<3.0,>=2.20)
Requires-Dist: backoff (==1.10.0)
Requires-Dist: python-dateutil (>=2.5)
Requires-Dist: boto3 (>=1.18.47)
Provides-Extra: test
Requires-Dist: mock (==3.0.5) ; extra == 'test'
Requires-Dist: pylint (==1.9.5) ; extra == 'test'
Requires-Dist: flake8 (==3.7.9) ; extra == 'test'
Requires-Dist: coverage (==4.5.4) ; extra == 'test'


Amberflo is the simplest way to integrate metering into your application.

This is the official python client that wraps the Amberflo REST API (https://amberflo.io).

Samples:

# dedup is happening on a full record

metering.meter(options.meter_api_name,     int(options.meter_value),     meter_time_in_millis=current_time,     customer_id=options.customer_id)

# adding dimensions

metering.meter(options.meter_api_name,     int(options.meter_value),     meter_time_in_millis=current_time,     customer_id=options.customer_id,     dimensions=dimensions)

# adding unique id

metering.meter(options.meter_api_name,     int(options.meter_value),     meter_time_in_millis=current_time,     customer_id=options.customer_id,     dimensions=dimensions,     unique_id = uuid1())

Documentation and more details at https://github.com/amberflo/metering-python


