- Python 3.10 or later
- uv for dependency management
-
Clone the repository:
git clone https://github.com/connectrpc/connect-python cd connect-python -
Install dependencies:
uv sync
We use just as a task runner. Available commands:
# Run all checks
uv run just check
# Format code
uv run just format
# Run type checking
uv run just typecheck
# Run tests
uv run just test
# Run conformance tests
uv run just conformanceWe use:
- ruff for linting and formatting
- pyright for type checking
- pytest for testing
The project follows strict type checking and formatting standards.
uv run just testThe project uses the official Connect conformance test suite. Go must be installed to run them.
uv run just conformanceThe project includes protobuf code generation for examples and tests:
uv run just generateTo release a new version, follow the guide in RELEASE.md.
# Build documentation
uv run just docs
# Serve documentation locally
uv run just docs-serve- Use MyST markdown for documentation files
- Place API documentation in
docs/api.md - Place examples in
docs/examples.md - Update the main
docs/index.mdfor structural changes
- Fork the repository
- Create a feature branch
- Make your changes
- Run the full test suite:
uv run just check - Submit a pull request
- Ensure all tests pass
- Add tests for new functionality
- Update documentation as needed
- Follow the existing code style
- Write clear commit messages