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.0.0.tar.gz (17.9 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.0.0-py3.8.egg (22.9 kB view details)

Uploaded Egg

amberflo_metering_python-2.0.0-py2.py3-none-any.whl (27.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: amberflo-metering-python-2.0.0.tar.gz
  • Upload date:
  • Size: 17.9 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.0.0.tar.gz
Algorithm Hash digest
SHA256 13d539c075a33193e2e0bea48b752a4b46ba94f115f484c0a48f29b46c13aa53
MD5 0b467a5a2b5841fa9058de38d33a59bb
BLAKE2b-256 96275dcd2473de116c69c775b557186200a0ada0490ee80b3c30a93319cb2c70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amberflo_metering_python-2.0.0-py3.8.egg
  • Upload date:
  • Size: 22.9 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.0.0-py3.8.egg
Algorithm Hash digest
SHA256 c9c45b95c5b9d06330b1ed1422263bdcaa38e1485d86721189f7628df33837db
MD5 286a2b045ce3493754aa2eb94965b10f
BLAKE2b-256 55b52df500cf53129b78b1284550c7a20c419ea7251211f2660a192214a561ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amberflo_metering_python-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 52d79c9f4fd9062024807190e8212cf80d6142e27e538f82711fd5f0cf4eaed8
MD5 a5fc335e28180fc4b73483673a7721e1
BLAKE2b-256 e07d98f05e6f34243e1defa494ad7d5af4f216f6716a19b8b428a8873f310a88

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