Contributions are welcome. This is a generated library, and changes to core files should be promoted to our generator code.
- Python 3.10+
- Docker Desktop
Some integration tests use WireMock containers. Ensure Docker Desktop is installed and running before executing the test suite.
Fork this repo on GitHub.
git clone https://github.com/YOUR_USERNAME/deepgram-python-sdk.git
cd deepgram-python-sdkcurl -sSL https://install.python-poetry.org | python - -y --version 1.5.1Ensure 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:
C:\Users\<username>\AppData\Roaming\Python\Scripts
poetry --version
docker psIf Docker is running correctly, docker ps should return a container listing (which may be empty).
poetry installpoetry run pytest -rP .poetry run pip install -r examples/requirements.txtCreate an API key in the Deepgram Console.
set DEEPGRAM_API_KEY=YOUR_API_KEYexport DEEPGRAM_API_KEY=YOUR_API_KEYpoetry run python -u examples/listen/v1/media/transcribe_url/with_additional_query_parameters.pyA successful run will display a transcription response from the Deepgram API.
git add .
git commit -m "feat: your change description"git push origin mainOpen a pull request from your fork to the main repository.