880 B
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 frameworkruff- Linting and formattinghttpx- HTTP client (already included)python-dotenv- Environment variable management
Verify Installation
from fastgpt_client import ChatClient, AppClient
print("FastGPT SDK installed successfully!")
Next Steps
- Quick Start Guide - Learn the basics
- Authentication - Set up your API key