Skip to main content

Integrate amberflo into any python application.

Project description

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

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

amberflo-metering-python-2.3.0.tar.gz (18.4 kB view hashes)

Uploaded Source

Built Distribution

amberflo_metering_python-2.3.0-py2.py3-none-any.whl (28.3 kB view hashes)

Uploaded Python 2 Python 3

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