Skip to main content
The midPilot Connector Generator is a FastAPI-based microservice for intelligent connector generation. This guide will walk you through the installation process.

Prerequisites

Before installing the midPilot Connector Generator, ensure you have the following installed:

Python 3.12+

Python 3.12 or later is required

UV Package Manager

Modern Python package manager

PostgreSQL 15

PostgreSQL database for data persistence

Docker (Optional)

For containerized deployment

Installation Methods

Choose your preferred installation method:

Development Dependencies

For development, install additional tools for testing, linting, and type checking:
uv sync --group dev
This installs:
  • mypy - Static type checker
  • pytest - Testing framework
  • ruff - Fast Python linter and formatter
  • pre-commit - Git hook framework
  • poethepoet - Task runner

Installing Additional Dependencies

To add a production dependency:
uv add <package-name>
Example:
uv add requests
To add a development dependency:
uv add --dev <package-name>
Example:
uv add --dev pytest-cov

Pre-commit Hooks

Set up pre-commit hooks to ensure code quality on every commit:
uv run pre-commit install
This installs hooks from .pre-commit-config.yaml that will automatically run quality checks (linting, formatting, type checking) before each commit.

Next Steps

Configuration

Configure environment variables and settings

Database Setup

Set up PostgreSQL and run migrations

Docker Setup

Deploy with Docker Compose

API Reference

Explore the API endpoints

Troubleshooting

If uv is not found after installation, ensure that ~/.cargo/bin is in your PATH:
export PATH="$HOME/.cargo/bin:$PATH"
Add this line to your ~/.bashrc or ~/.zshrc to make it permanent.
Ensure you have Python 3.12 or later:
python --version
UV will use the system Python by default. To use a specific version:
uv python install 3.13
uv python pin 3.13
If you encounter permission errors, avoid using sudo. Instead, ensure your user has write permissions to the project directory:
chmod -R u+w .

Build docs developers (and LLMs) love