Skip to main content

Library that implements Akamai PI requests to control cloudlet API version 3

Project description

Akamai shared cloudlets library

Purpose

This python program implements the API requests that deal with Akamai Shared Cloudlets (for more information about Akamai cloudlets, see https://techdocs.akamai.com/cloudlets/reference/api).

It could be used as a building block for any application using the 'shared cloudlets API' (such as Akamai CLI https://github.com/akamai/cli or Terraform Akamai provider https://registry.terraform.io/providers/akamai/akamai/latest/docs/guides/get_started_cloudlets).

Using it

Prerequisites

Run

There are two basic ways how to work with the app - importing the app and making it part of your own code like that - or there is limited 'cli' capability (that doesn't provide all the requests, but it may help you find some basic information anyway.)

Getting it

It is recommended to use this app in virtual environment (especially for your development needs). Then install the app from PyPI. Following command installs the app from the TEST PYPI:

TEST PYPI
python3 -m pip install --index-url https://test.pypi.org/simple/ akamai-shared-cloudlets
PROD PYPI
python3 -m pip install akamai-shared-cloudlets
Poetry

To add the library to your own project as dependency, and you happen to use Poetry to manage your dependencies:

poetry add akamai-shared-cloudlets

Using it

Next step would be to import (example):

from akamai_shared_cloudlets import akamai_api_requests_abstractions as akamai_api

And finally you're ready to use the app:

print(akamai_api.list_cloudlets("~/.edgerc"))

Example above does not do very much, but it shows how to start using the app.

Usint it as CLI

Issuing the following command:

cloudlets list-cloudlets

Would produce this output (for example, it may be different in your case)

Sending request to Akamai...
[{'cloudletType': 'ER', 'cloudletName': 'EDGE_REDIRECTOR'}]

Help is provided when issued the cloudlets command without any parameters or clouldets --help

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

akamai_shared_cloudlets-0.1.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

akamai_shared_cloudlets-0.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file akamai_shared_cloudlets-0.1.1.tar.gz.

File metadata

File hashes

Hashes for akamai_shared_cloudlets-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d78ad5344ca2e7b7957d096b732c6da29f140ee0ef2a71887c997bc43d25f83
MD5 25df981b73562ffe6e7038a31028ed98
BLAKE2b-256 1798ade7735b32f7128bd616b7c595f19afdb15d33a201864b2b143afd660433

See more details on using hashes here.

File details

Details for the file akamai_shared_cloudlets-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for akamai_shared_cloudlets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd183ac62f9def1d9f99dda5a499e2415eccdd79a7acfe11183ad936982591b2
MD5 7262f1630ad75ec87ecd2f76001217e6
BLAKE2b-256 558cbcd4c432744e18327dff9ad6d7bd79a4c5273f600ca3671cc282e7a4638f

See more details on using hashes here.

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