An Akamai CLI package for interacting with the Network Lists API
Project description
Akamai Network Lists
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
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
Built Distribution
File details
Details for the file akamai_network_lists-0.0.3.tar.gz
.
File metadata
- Download URL: akamai_network_lists-0.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5424b28e6196aaca7ad00dc7a93fabb763262a7457fecfbcb7d24344bc82e3e6 |
|
MD5 | 4ca47b11a90442d8bdf521bf20cb5117 |
|
BLAKE2b-256 | 2a83710dc543f42002b91f657e864a18c189eeecae6dfee298fada59c5f442c9 |
File details
Details for the file akamai_network_lists-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: akamai_network_lists-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82cad556d24329cb223810187469bd94ce356bdda7f0978594620484bf2736cd |
|
MD5 | 01193faec4cd6b68edec6fa40b3f658e |
|
BLAKE2b-256 | c146c336de2ea434b66a9abc16b2f1dc981bba0c9df56ecb8e4dcdbc5462829f |