- 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 poe as a task runner. Available commands:
# Run all checks
uv run poe check
# Format code
uv run poe format
# Run tests
uv run poe test
# Run conformance tests
uv run poe test-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 poe testThe project uses the official Connect conformance test suite. Go must be installed to run them.
uv run poe test-conformanceThe project includes protobuf code generation for examples and tests:
uv run poe generateTo release a new version, follow the guide in RELEASE.md.
Documentation is contained in the connectrpc/connectrpc.com repository.
- Fork the repository
- Create a feature branch
- Make your changes
- Run the full smoke check suite:
uv run poe 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