Files
fastgpt-python-sdk/docs/getting_started/installation.md
2026-01-08 17:35:21 +08:00

880 B

Installation

Requirements

  • Python 3.8 or higher
  • A FastGPT API key

Install with pip

pip install fastgpt-client

Install for Development

If you want to contribute to the SDK or run tests:

# Clone the repository
git clone https://github.com/yourusername/fastgpt-python-sdk.git
cd fastgpt-python-sdk

# Install in development mode
pip install -e ".[dev]"

Development Dependencies

The [dev] extra includes:

  • pytest - Testing framework
  • ruff - Linting and formatting
  • httpx - HTTP client (already included)
  • python-dotenv - Environment variable management

Verify Installation

from fastgpt_client import ChatClient, AppClient
print("FastGPT SDK installed successfully!")

Next Steps