Skip to content

Commit

Permalink
git-ignore pycache files
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraRodgers committed Oct 26, 2023
1 parent b9a10a4 commit 5559a3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
*.egg-info
*/__pycache__/
**/__pycache__/
dist/
.venv
venv/
venv.bak/
build/
build/
.env
1 change: 1 addition & 0 deletions deepgram/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from deepgram.deepgram_client import DeepgramClient
from .types.deepgram_client_options import DeepgramClientOptions


def create_client(api_key: str, config_options: DeepgramClientOptions = None) -> DeepgramClient:
"""
Create a DeepgramClient instance with the provided API key and optional configuration options.
Expand Down
8 changes: 5 additions & 3 deletions deepgram/clients/listen_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
from .live_client import LiveClient
from typing import Dict, Any, Optional


class ListenClient:
def __init__(self, url: str, api_key: str, headers: Optional[Dict[str, Any]]):
self.url = url
self.api_key = api_key
self.headers = headers

print('hey')

@property
def prerecorded(self):
return PreRecordedClient(self.url, self.headers)

@property
def live(self):
return LiveClient(self.url, self.api_key, self.headers)
return LiveClient(self.url, self.api_key, self.headers)

0 comments on commit 5559a3f

Please sign in to comment.