Skip to main content

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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file amberflo-metering-python-2.3.0.tar.gz.

File metadata

  • Download URL: amberflo-metering-python-2.3.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2

File hashes

Hashes for amberflo-metering-python-2.3.0.tar.gz
Algorithm Hash digest
SHA256 9a26d7fe935d2e30e16789dbf3b5b0a9a0feafbcab62d705f81ff81575decb13
MD5 3c652a847204617ac4cf403c4e1b708e
BLAKE2b-256 afeb1ce8fda9678bc2fabb9d8d67d1ff0417a3010853126a262469acb0264a62

See more details on using hashes here.

File details

Details for the file amberflo_metering_python-2.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: amberflo_metering_python-2.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2

File hashes

Hashes for amberflo_metering_python-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3301b5a90e884293577e713d518532719cfa365fe9d99d93a7128087ce31c553
MD5 e757acb2d7e34e4c9819cea5d5ca566f
BLAKE2b-256 0851559534b071f1c68a1e2eb1dc76b279d7df9de486a7485cca96d36a185488

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page