Skip to content

Installation

Requirements

  • Python 3.8 or higher
  • An active MicroDC API key (starts with mDC_)

Install from GitLab

# Install the v1 release
pip install git+https://gitlab.com/microdc/python-client.git

Install from Source

git clone https://gitlab.com/microdc/python-client.git
cd python-client
pip install -e .

Install with Development Dependencies

pip install -e ".[dev]"

This includes pytest, black, ruff, mypy, and other development tools.

Dependencies

The library has minimal dependencies:

Package Version Purpose
httpx >= 0.27.0 HTTP client with HTTP/2 and async support
typing-extensions >= 4.5.0 Type hints for Python < 3.10

Verify Installation

import microdc
print(microdc.__version__)

Get an API Key

  1. Sign up at microdc.ai
  2. Navigate to your account settings
  3. Generate a new API key
  4. Your key will look like: mDC_499FC19C-686A-47C5-AA93-E619C55EBE98

Keep your API key secure

Never commit your API key to version control. Use environment variables or a .microdc.json config file instead.