Installation
Easily setup the right tool integrations
Access to the different Pending AI services is made available through a variety of different tools. Integrations are defined at different software layers to make installation more streamlined.
Depending on your pipeline environment, there are many different available tools with more under development coming in future releases. All integrations leverage our API as the entry-point for the different Pending AI capabilities.
Installing the CLI
For creating simple scripts or interacting with the platform from your terminal
1. Create a Python Environment (Recommended)
The CLI tool is made available via the Python PyPI repository and can be installed using your favourite dependency manager. Before installing the tool, it's recommended to set up a clean environment to avoid dependency conflicts with cheminformatics libraries like rdkit.
2. Installation Methods
Once your environment is active, you can install the pendingai tool. Here are some common methods.
Using pip (Standard)
pip (Standard)pip is Python's standard package installer and is included with most Python installations. It's perfect for installing tools as part of a specific project's dependencies regardless of runtime.
pip install pendingaiTo install a specific version:
pip install pendingai==0.4.0The tool is continually being improved, to upgrade an existing installed version:
pip install --upgrade pendingaiUsing uv (Recommended for performance)
uv is an extremely fast Python package installer and resolver. If you value speed, you can use it within any activated virtual environment (venv or conda).
Install uv:
pip install uvInstall packages using uv similar to pip:
uv pip install pendingai # Latest
uv pip install pendingai==0.4.0 # Specific versionNote: uv can install into activated virtual environments and requires running tools such as pendingai prefixing commands with uv run <command>:
uv run pendingai <commands>Using poetry (Recommended for projects)
poetry (Recommended for projects)A modern Python project and dependency manager like poetry can streamline version management in larger software projects.
Install poetry:
pip install poetryInstall packages with poetry:
poetry add pendingai # Add as a main dependency
poetry add -G <group> pendingai # Add to a dependency group
poetry add pendingai==0.4.0 # Specific versionNote: poetry installs into the Python environment automatically but it is recommended to invoke commands prefixed with poetry run <command> which is important for reproducibility:
poetry run pendingai <commands>Using pipx (Recommended for global dependency management)
pipx (Recommended for global dependency management)The pipx tool is ideal for installing dependencies into the global Python runtime to be used across different virtual environments making it easier for use in different projects.
Install pipx:
pip install pipx
pipx ensurepathInstall packages with pipx:
pipx install pendingai3. Verifying Your Installation
Check the installation was successful by checking CLI is available in your terminal.
pendingai --help
pendingai --versionAuthentication
We provide a simple authentication flow from the CLI that will automatically redirect you to our login page. Multiple commands are provided to help manage the access control when using the different Pending AI services.
pendingai auth login # Login to the Pending AI platform
pendingai auth refresh # Refresh an authenticated sessionInstalling the SDK
Pending AI currently supports a Python-based SDK available to install following the same steps as the CLI tool as both are bundled in the same package.
Verify your installation with a simple script that sets up an authenticated client and lists our Retrosynthesis engines that are available for use:
from pendingai import PendingAiClient
pai = PendingAiClient() # Create the client
pai.authentication.login() # Login to the platform
# Retrieve all retrosynthesis engines
for engine in pai.retrosynthesis.engines.list():
print(f"Engine ID: {engine.id}")Authentication
The SDK mimics the same authentication flow as the CLI tool but from a Python script. Cached active sessions can be used without any additional code after logging in from executing a script. To maintain the active session, it needs to be routinely refreshed, otherwise you will be redirect to login again.
from pendingai import PendingAiClient
pai = PendingAiClient()
pai.authentication.login() # Initially calling a script must login
pai.authentication.refresh() # Repeated scripts can refresh a sessionTroubleshooting
Have a specialised use case? Contact us at [email protected] for help with building custom pipelines.
Here are some common questions and how to resolve them.
Next Steps
See the different capabilities Pending AI offers to customers like Retrosynthesis or Generative AI
Follow one of our Guides to jump-start integrating our services into your Drug Discovery pipelines.

