Skip to main content

Akamai Network Lists

A package for Akamai CLI to interact with the Network Lists API. An API summary can be found here.

Usage

Usage: akamai_network_lists [OPTIONS] COMMAND [ARGS]...

Options:
  -e, --edgerc        Location of the credentials file [$AKAMAI_EDGERC]
  -s, --section       Section of the credentials file [$AKAMAI_EDGERC_SECTION]
  -a, --account-key   Account Key
  --version           Show the version and exit.
  -h, --help          Show this message and exit.

Commands:
  activate             Activate Network List
  activation-snapshot  Get Activation Snapshot
  activation-status    Get Activation Status
  add-element          Add Network List Element
  append               Append Elements to Network List
  create               Create Network List
  delete               Delete Network List
  help                 Show help information
  list                 List Network Lists
  remove-element       Remove Network List Element
  retrieve             Retrieve Network List
  update               Update Network List
  update-details       Update Network List details

Development

This project is using hatch as it's build system. For this reason I also used it to manage the development environment. The following commands can be used to create and activate a virtual environment. Alternatively you're free to use the Python venv module.

You may need to install hatch (pip install hatch)

hatch env create
hatch shell

The main "binary" is located in bin/akamai-network-lists.py. The reason is because the akamai-cli tool has it's own format a python module must adhere to. It looks for files under the bin directory that match the pattern of akamai-command-name.

We also need to list our dependencies in a requirements.txt file, as we are using pyproject.toml to define our build system requirements and dependencies, this means we have only included akamai-network-lists in requirements.txt and this module will be installed from PyPi.

There is some information in the README.md for akamai-cli, but a lot of the specifics seem un-written..

Build

python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine

python3 -m build
python3 -m twine upload dist/*

Install in akamai-cli

# i'm using ubuntu 22.04 and there's an issue with the default python pip package
# for that reason i need to use a later version of python that the akamai-cli
# can use, the following three lines may not be necessary on any other configuration
python3.11 -m venv test_venv
source test_venv/bin/activate
PYTHONUSERBASE="test_venv/lib/python3.11/site-packages"

akamai install https://github.com/ryanlinnit-sky/akamai-cli-network-lists.git

akamai network-lists

Metadata

Release files for akamai-network-lists 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for akamai-network-lists 0.0.4
File Size Uploaded Provenance Actions
akamai_network_lists-0.0.4.tar.gz 5.3 kB Without provenance Details for akamai_network_lists-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for akamai-network-lists 0.0.4
File Interpreter ABI Platform Actions
akamai_network_lists-0.0.4-py3-none-any.whl Python 3 none any Details for akamai_network_lists-0.0.4-py3-none-any.whl

Total release size: 9.2 kB

Release files / akamai_network_lists-0.0.4.tar.gz

Download URL akamai_network_lists-0.0.4.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0c79e77b41f8cb70d5651f6505758a7267252180e0e16b91ae07bce16fbf5421
BLAKE2b-256 checksum
How to use checksums
e067fa52ca9d49387fc7f2f7875e68830a8cc545d948664870b05f84136ff99e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / akamai_network_lists-0.0.4-py3-none-any.whl

Download URL akamai_network_lists-0.0.4-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aaea4bc1c23f77a5629ccfb1c9a55beb960047b0ff57d1e2702a0ac2dc660750
BLAKE2b-256 checksum
How to use checksums
0627720ff646e88594b9c7395518977440ae98f726cd0b414f2aa3dd3a22106a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for akamai-network-lists 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page