Please visit the API tab in the Promethium settings page to:
- Install the Promethium Python Software Developmet Kit (SDK), and,
- Create your API key.
Installing the Promethium SDK will provide both the Python client, and the Command-Line Tool (CLI).
Once you have installed the CLI, you can type:
promethium
to see a list of available commands. You can also use the short-form alias pm
for promethium
.
The simplest method to set your credentials is to run the CLI:
pm config credentials
which will prompt you to enter your Promethium API key. This will
be stored in a .promethium.ini
in your home directory.
This initializes your credentials for use with both the CLI and the Python client.
After doing this, in Python you can simply instantiate the Promethium Client directly using:
from promethium_sdk import PromethiumClient
pc = PromethiumClient()
and begin using the SDK.
This repository contains a variety of examples for interacting with Promethium programmatically.
Each example has up to two different versions:
- Interacting with the Promethium API via the SDK (recommended), and,
- Directly querying the API.
Please reach out to Promethium support with any questions.