Skip to main content

Py CGRrateS

Project description

Python CGRateS Api Client




pip install py-cgrates


from cgrates import Client
from cgrates import models

api = Client(tenant="1")


=> <Account(AcmeWidgets)>

api.add_destination("DST_45", prefixes=["45"])

=> <Destination(DST_64, [64])>

api.add_rates(rate_id="RT_STANDARD", rates=[models.Rate(rate=0.25, rate_unit=60, rate_increment=60)])

=> [<Rate(rate=0.25, rate_unit=60s,...)>]

        dest_rates=[models.DestinationRate(rate_id="RT_STANDARD", dest_id="DST_64")])

=> [<DestinationRate(rate_id=RT_STANDARD, dest_id=DST_64,...)>]

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

py-cgrates-0.0.2.tar.gz (2.8 kB view hashes)

Uploaded source

Built Distribution

py_cgrates-0.0.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page