audioarxiv 0.1.2rc59.post1__py3-none-any.whl → 0.1.2rc62.post1__py3-none-any.whl
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.
- audioarxiv/__init__.py +1 -1
- audioarxiv/audio/base.py +1 -0
- audioarxiv/resources/paper.py +3 -0
- {audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/METADATA +17 -2
- {audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/RECORD +8 -8
- {audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/WHEEL +0 -0
- {audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/entry_points.txt +0 -0
- {audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/licenses/LICENSE +0 -0
audioarxiv/__init__.py
CHANGED
audioarxiv/audio/base.py
CHANGED
@@ -43,6 +43,7 @@ def validate_audio_arguments(rate: float, volume: float, voice: int | str | None
|
|
43
43
|
logger.error('Invalid voice ID = %s. Keeping current voice.', voice)
|
44
44
|
elif voice is not None:
|
45
45
|
logger.error('Unsupported datatype of voice = %s. It must be either int or str.', type(voice))
|
46
|
+
voice = None
|
46
47
|
if pause_seconds < 0:
|
47
48
|
pause_seconds = 0.1
|
48
49
|
logger.error('pause = %s must be non-negative. Keeping the current pause.', pause_seconds)
|
audioarxiv/resources/paper.py
CHANGED
@@ -172,6 +172,9 @@ class Paper:
|
|
172
172
|
list: A list of sections. Each section is a dict with the header as the key and the content as the value.
|
173
173
|
"""
|
174
174
|
if len(self._sections) == 0:
|
175
|
+
if self.paper is None:
|
176
|
+
logger.error('Paper is None. Cannot download PDF.')
|
177
|
+
return self._sections
|
175
178
|
with tempfile.NamedTemporaryFile() as tmp:
|
176
179
|
filename = tmp.name
|
177
180
|
self.download_pdf(filename=filename)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: audioarxiv
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.2rc62.post1
|
4
4
|
Summary: Turn arXiv papers into audio. audioarxiv lets you fetch the research papers from arXiv and read them aloud.
|
5
5
|
Author-email: "Isaac C. F. Wong" <isaac.cf.wong@gmail.com>
|
6
6
|
Requires-Python: >=3.9
|
@@ -22,6 +22,10 @@ Requires-Dist: sympy
|
|
22
22
|
Requires-Dist: nltk
|
23
23
|
Requires-Dist: pandas
|
24
24
|
Requires-Dist: platformdirs
|
25
|
+
Requires-Dist: pytest ; extra == "dev"
|
26
|
+
Requires-Dist: pre-commit ; extra == "dev"
|
27
|
+
Requires-Dist: black ; extra == "dev"
|
28
|
+
Requires-Dist: flake8 ; extra == "dev"
|
25
29
|
Requires-Dist: pyspark>=3.0.0 ; extra == "spark"
|
26
30
|
Requires-Dist: bandit[toml]==1.8.3 ; extra == "test"
|
27
31
|
Requires-Dist: black==25.1.0 ; extra == "test"
|
@@ -45,6 +49,7 @@ Project-URL: Homepage, https://github.com/isaac-cf-wong/audioarxiv
|
|
45
49
|
Project-URL: Release Notes, https://github.com/isaac-cf-wong/audioarxiv/releases
|
46
50
|
Project-URL: Source, https://github.com/isaac-cf-wong/audioarxiv
|
47
51
|
Project-URL: Tracker, https://github.com/isaac-cf-wong/audioarxiv/issues
|
52
|
+
Provides-Extra: dev
|
48
53
|
Provides-Extra: spark
|
49
54
|
Provides-Extra: test
|
50
55
|
|
@@ -114,5 +119,15 @@ The settings are saved, so you only need to provide your preferred settings once
|
|
114
119
|
|
115
120
|
## Contributing
|
116
121
|
|
117
|
-
|
122
|
+
Contributions and suggestions are welcome! Whether it's fixing bugs, improving documentation, or adding new features, your help is appreciated.
|
123
|
+
|
124
|
+
Please read our [Code of Conduct](CODE_OF_CONDUCT.md) before contributing.
|
125
|
+
|
126
|
+
To get started:
|
127
|
+
|
128
|
+
- Fork the repository
|
129
|
+
- Create a new branch for your changes
|
130
|
+
- Submit a pull request
|
131
|
+
|
132
|
+
If you're unsure where to begin, feel free to open an issue or ask for guidance!
|
118
133
|
|
@@ -1,15 +1,15 @@
|
|
1
|
-
audioarxiv/__init__.py,sha256=
|
1
|
+
audioarxiv/__init__.py,sha256=OZJ71utW88TwFHi35Li6l3whih-i-OtOGLwZ6U4zbHM,5807
|
2
2
|
audioarxiv/audio/__init__.py,sha256=UZx3AkhC8NZFXwQbW_sU4sQ1uGeEIRXCPDghXvZy8rY,214
|
3
|
-
audioarxiv/audio/base.py,sha256=
|
3
|
+
audioarxiv/audio/base.py,sha256=LLZGciBbFeaGlRqt_VF58RWOSKDZevks4U2SpWAk1To,6005
|
4
4
|
audioarxiv/preprocess/__init__.py,sha256=NUCDDLpSwpWTBaPNdLWUVK2FhtwMPsFvXczTE21_UvU,338
|
5
5
|
audioarxiv/preprocess/article.py,sha256=d9nV2DEH4mvKsgUpJ3WB256rt8k5O7YvNTBUp5YOUbs,394
|
6
6
|
audioarxiv/preprocess/math_equation.py,sha256=ulkeMZFJKxU8BH1QzNyW4BZ-UjWfDDMp1C-cqoRGyls,945
|
7
7
|
audioarxiv/resources/__init__.py,sha256=KCZm9Hq0O9oCCtfpyKVDGo_qX-PU2qS8aJe1NgvmR7Q,166
|
8
|
-
audioarxiv/resources/paper.py,sha256=
|
8
|
+
audioarxiv/resources/paper.py,sha256=o6DD4KrcypjH810ArDzD93uBkdpKUNvnErIUJUZ3J9s,7302
|
9
9
|
audioarxiv/tools/__init__.py,sha256=7X5vtxzvCY9URWo0p3zvM11J6whGFeDPF7XU0dt1Qcw,28
|
10
10
|
audioarxiv/tools/main.py,sha256=sAh7izIdGmfQZiI3tBKn-zLMhQgAQvLGu4OmYnYLsAc,6884
|
11
|
-
audioarxiv-0.1.
|
12
|
-
audioarxiv-0.1.
|
13
|
-
audioarxiv-0.1.
|
14
|
-
audioarxiv-0.1.
|
15
|
-
audioarxiv-0.1.
|
11
|
+
audioarxiv-0.1.2rc62.post1.dist-info/entry_points.txt,sha256=d_K6uTNuC8-f9XUQ_enFBgssiK2lVV57EHCEloriVY4,57
|
12
|
+
audioarxiv-0.1.2rc62.post1.dist-info/licenses/LICENSE,sha256=EaCbwfO894O6p0QwcO_sgtKCIEWxfBS0fhybH9sURk8,1140
|
13
|
+
audioarxiv-0.1.2rc62.post1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
14
|
+
audioarxiv-0.1.2rc62.post1.dist-info/METADATA,sha256=Jk4YnyILpng4egGJYUckzltkLbxr50bhT-0zjo-h76c,5220
|
15
|
+
audioarxiv-0.1.2rc62.post1.dist-info/RECORD,,
|
File without changes
|
{audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/entry_points.txt
RENAMED
File without changes
|
{audioarxiv-0.1.2rc59.post1.dist-info → audioarxiv-0.1.2rc62.post1.dist-info}/licenses/LICENSE
RENAMED
File without changes
|