Skip to main content
The official Python client for the Archetype platform provides a simple interface to interact with the Archetype API.

GitHub Repository

View source code, examples, and documentation

Requirements

  • Python 3.10 or later
  • An Archetype API key (see Libraries for setup instructions)

Install

Create a virtual environment, install the client, and set your credentials for your operating system:
macOS ships with python3. Recent Homebrew and system Pythons block system-wide installs (PEP 668), so create a virtual environment first — a bare pip install fails with externally-managed-environment:
Set your credentials in the activated shell (or persist them in ~/.zshrc):
On other Linux distributions, the same pattern applies: ensure Python 3.10+ is installed, create and activate a virtual environment, then pip install archetypeai. For more on credentials, see Environment Variables.
If you prefer Anaconda or Miniconda to manage Python environments, create and activate an environment and install the client inside it:

Verify Installation

Test that the client is correctly installed by running (inside your activated environment):
If successful, you should see a version number printed:

What’s Included

The Python client includes:
  • API Client: Core client for interacting with the Archetype platform
  • Examples: Sample scripts demonstrating common use cases

Upgrade Python Client

  • To show the currently installed version of the python client, please use
  • To upgrade to the latest version of the python client, please use
Please note the minimum requirements here.