dora-microphone 0.3.10rc1__tar.gz → 0.3.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dora-microphone
3
- Version: 0.3.10rc1
3
+ Version: 0.3.11
4
4
  Summary: Dora dora-microphone
5
5
  Author-email: Haixuan Xavier Tao <tao.xavier@outlook.com>, Enzo Le Van <dev@enzo-le-van.fr>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: dora-rs>=0.3.6
9
+ Requires-Dist: dora-rs>=0.3.9
10
10
  Requires-Dist: numpy<2.0.0
11
11
  Requires-Dist: pyarrow>=5.0.0
12
12
  Requires-Dist: sounddevice>=0.4.6
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
 
3
5
  # Define the path to the README file relative to the package directory
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
  import time as tm
3
5
 
@@ -12,6 +14,7 @@ SAMPLE_RATE = int(os.getenv("SAMPLE_RATE", "16000"))
12
14
 
13
15
  def main():
14
16
  # Initialize buffer and recording flag
17
+ """TODO: Add docstring."""
15
18
  buffer = []
16
19
  start_recording_time = tm.time()
17
20
  node = Node()
@@ -20,6 +23,7 @@ def main():
20
23
  finished = False
21
24
 
22
25
  def callback(indata, frames, time, status):
26
+ """TODO: Add docstring."""
23
27
  nonlocal buffer, node, start_recording_time, finished
24
28
 
25
29
  if tm.time() - start_recording_time > MAX_DURATION:
@@ -35,7 +39,10 @@ def main():
35
39
 
36
40
  # Start recording
37
41
  with sd.InputStream(
38
- callback=callback, dtype=np.int16, channels=1, samplerate=SAMPLE_RATE,
42
+ callback=callback,
43
+ dtype=np.int16,
44
+ channels=1,
45
+ samplerate=SAMPLE_RATE,
39
46
  ):
40
47
  while not finished:
41
48
  sd.sleep(1000)
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dora-microphone
3
- Version: 0.3.10rc1
3
+ Version: 0.3.11
4
4
  Summary: Dora dora-microphone
5
5
  Author-email: Haixuan Xavier Tao <tao.xavier@outlook.com>, Enzo Le Van <dev@enzo-le-van.fr>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: dora-rs>=0.3.6
9
+ Requires-Dist: dora-rs>=0.3.9
10
10
  Requires-Dist: numpy<2.0.0
11
11
  Requires-Dist: pyarrow>=5.0.0
12
12
  Requires-Dist: sounddevice>=0.4.6
@@ -1,4 +1,4 @@
1
- dora-rs>=0.3.6
1
+ dora-rs>=0.3.9
2
2
  numpy<2.0.0
3
3
  pyarrow>=5.0.0
4
4
  sounddevice>=0.4.6
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dora-microphone"
3
- version = "0.3.10-rc1"
3
+ version = "0.3.11"
4
4
  authors = [
5
5
  { name = "Haixuan Xavier Tao", email = "tao.xavier@outlook.com" },
6
6
  { name = "Enzo Le Van", email = "dev@enzo-le-van.fr" },
@@ -11,7 +11,7 @@ readme = "README.md"
11
11
  requires-python = ">=3.8"
12
12
 
13
13
  dependencies = [
14
- "dora-rs >= 0.3.6",
14
+ "dora-rs >= 0.3.9",
15
15
  "numpy < 2.0.0",
16
16
  "pyarrow >= 5.0.0",
17
17
  "sounddevice >= 0.4.6",
@@ -23,3 +23,15 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"]
23
23
 
24
24
  [project.scripts]
25
25
  dora-microphone = "dora_microphone.main:main"
26
+
27
+ [tool.ruff.lint]
28
+ extend-select = [
29
+ "D", # pydocstyle
30
+ "UP", # Ruff's UP rule
31
+ "PERF", # Ruff's PERF rule
32
+ "RET", # Ruff's RET rule
33
+ "RSE", # Ruff's RSE rule
34
+ "NPY", # Ruff's NPY rule
35
+ "N", # Ruff's N rule
36
+ "I", # Ruff's I rule
37
+ ]
@@ -1,7 +1,10 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import pytest
2
4
 
3
5
 
4
6
  def test_import_main():
7
+ """TODO: Add docstring."""
5
8
  from dora_microphone.main import main
6
9
 
7
10
  # Check that everything is working, and catch dora Runtime Exception as we're not running in a dora dataflow.