Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure Python v3 (Part 7) - Support API Versioning #177

Merged

Conversation

davidvonthenen
Copy link
Contributor

This builds on this PR #156, #172, #173, #174, #175, and #176 to restructure the project. The goal is to do this in smaller chunks so the work is not finished in this PR. The PR merges to main so the PR is going to look messy until the dependent PR is merged.

Here is a clean diff in the meantime: dvonthenen:deepgram-python-sdk:restructure-project-part6...dvonthenen:deepgram-python-sdk:restructure-project-part7

Notable changes:

  • This implements versioning in the API to support backward compatibiility.

Verified that all existing demos work: examples/demo_prerecorded.py, examples/demo_live.py, and examples/demo_manage.py.

Added a new example called demo_versioning.py which demonstrates how the support for concurrent versioning should be handled. The example shows using deepgram.manage.get_projects() which uses the latest API version to get_projects(). Subsequently, there is another call to deepgram.manage_v1.get_projects() which gets the API call for v1 where latest does not need to equal v1 but both are accessible.

SandraRodgers
SandraRodgers previously approved these changes Nov 12, 2023
@SandraRodgers SandraRodgers dismissed their stale review November 14, 2023 15:27

The merge-base changed after approval.

Restructure Pyhon v3 (Part 3)

Restructure Python v3 (Part 5) - Rename files

Restructure Python v3 (Part 7) - Support API Versioning
@davidvonthenen davidvonthenen force-pushed the restructure-project-part7 branch from 0f5c285 to 71cbc9a Compare November 16, 2023 14:54
@davidvonthenen davidvonthenen merged commit 2ad31c9 into deepgram:main Nov 16, 2023
1 check passed
@davidvonthenen davidvonthenen deleted the restructure-project-part7 branch November 16, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants