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 3) - Separation of Concerns #173

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

dvonthenen
Copy link
Contributor

This builds on this PR #156 and #172 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-part2...dvonthenen:deepgram-python-sdk:restructure-project-part3

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

Notable changes:

  • There were a lot of things "globally shared" in folders like deepgram/types and various helper.py files that didn't need to be at this global level. If an Class, functions, enum, etc was only apart of Live transcription, they were moved into the deepgram/clients/live folder. This gives you separation of concerns and you immediately know which definitions are (usually in the same folder).

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.

@dvonthenen dvonthenen merged commit c7f9b0d into deepgram:main Nov 15, 2023
1 check passed
@dvonthenen dvonthenen deleted the restructure-project-part3 branch November 22, 2023 15:03
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.

None yet

3 participants