From b858ad3f94c6301271d497b793a2f3939e6584ac Mon Sep 17 00:00:00 2001 From: Jhanvi Date: Sat, 23 May 2026 10:22:59 +0530 Subject: [PATCH] docs: improve contributor setup instructions --- CONTRIBUTING.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 30db7821..fa278347 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,12 +2,20 @@ Contributions are welcome. This is a generated library, and changes to core files should be promoted to our generator code. -Requires Python 3.10+ + +## Prerequisites + +- Python 3.10+ +- Docker Desktop + +Some integration tests use WireMock containers. Ensure Docker Desktop is installed and running before executing the test suite. + ## Fork Repository Fork this repo on GitHub. + ## Clone Repository ```bash @@ -15,6 +23,7 @@ git clone https://github.com/YOUR_USERNAME/deepgram-python-sdk.git cd deepgram-python-sdk ``` + ## Install Poetry ```bash @@ -23,30 +32,74 @@ curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 Ensure Poetry is in your `$PATH`. +**Note for Windows users:** If `poetry --version` is not recognized, add Poetry's Scripts directory to your PATH and restart the terminal. + +Typical Windows location: + +```text +C:\Users\\AppData\Roaming\Python\Scripts +``` + + +## Verify Installation + +```bash +poetry --version +docker ps +``` + +If Docker is running correctly, `docker ps` should return a container listing (which may be empty). + + ## Install Dependencies ```bash poetry install ``` + ## Run Tests ```bash poetry run pytest -rP . ``` + ## Install Example Dependencies ```bash poetry run pip install -r examples/requirements.txt ``` + +## Configure Deepgram API Key + +Create an API key in the Deepgram Console. + + +### Windows + +```cmd +set DEEPGRAM_API_KEY=YOUR_API_KEY +``` + + +### Linux/macOS + +```bash +export DEEPGRAM_API_KEY=YOUR_API_KEY +``` + + ## Run Example ```bash -poetry run python -u examples/listen/media/transcribe_url/main.py +poetry run python -u examples/listen/v1/media/transcribe_url/with_additional_query_parameters.py ``` +A successful run will display a transcription response from the Deepgram API. + + ## Commit Changes ```bash @@ -54,12 +107,14 @@ git add . git commit -m "feat: your change description" ``` + ## Push to Fork ```bash git push origin main ``` + ## Create Pull Request -Open a pull request from your fork to the main repository. +Open a pull request from your fork to the main repository. \ No newline at end of file