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.1.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distributions

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

amberflo_metering_python-2.1.0-py3.8.egg (23.0 kB view details)

Uploaded Egg

amberflo_metering_python-2.1.0-py2.py3-none-any.whl (28.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: amberflo-metering-python-2.1.0.tar.gz
  • Upload date:
  • Size: 18.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 555e36fbb9d068147e686e980e8bb57f3f1dbff9c0ba7570dbb0ceb1e584625b
MD5 2a8095722fc09002a648ee4ecedc3ab6
BLAKE2b-256 72c1adc7113d8d5026e6cbad6efd80f0932140447264cc21da43b3a073bd7cc1

See more details on using hashes here.

File details

Details for the file amberflo_metering_python-2.1.0-py3.8.egg.

File metadata

  • Download URL: amberflo_metering_python-2.1.0-py3.8.egg
  • Upload date:
  • Size: 23.0 kB
  • Tags: Egg
  • 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.1.0-py3.8.egg
Algorithm Hash digest
SHA256 c897e910d00ea2caf4fb41f69e40c4fd7a0044b12355830b6f253a49a2719804
MD5 731d1463a6ae6d4079c5faa0b4d40ee9
BLAKE2b-256 98f511798aabc0da09a92d7e5b1ed37bdca2a67fce8ea120d9f9cc318e045690

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amberflo_metering_python-2.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.2 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.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c3b69f96dfcd5a64ed794f5563f958c9013888293ebd599abc3a937c708ea24
MD5 1f91510c65610985ebbcba150dd99510
BLAKE2b-256 35662bec5425aa14e454f9cadb3108737e4632df238a75271d8d50aafd641fbf

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