Skip to content

Commit

Permalink
Refactor minim.audio submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
bbye98 committed Nov 12, 2023
1 parent 1b1913f commit f2c4983
Show file tree
Hide file tree
Showing 91 changed files with 4,972 additions and 1,897 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: continuous-integration
on: [push]
jobs:
build:
name: continuous-integration-${{ matrix.python-version}}
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version}}
- name: install-dependencies
run: |
python3 -m pip install -r requirements_minimal.txt
- name: ruff-lint
run: |
python3 -m pip install ruff
ruff --format=github --target-version=py38 .
continue-on-error: true
- name: pytest-test
run: |
python3 -m pip install pytest
pytest
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ formats.
Audio file handlers for reading and writing metadata and converting
between audio formats.
* [`minim.itunes`](https://github.com/bbye98/minim/blob/main/src/minim/itunes.py):
A client for the iTunes Store API.
A client for the iTunes Search API.
* [`minim.qobuz`](https://github.com/bbye98/minim/blob/main/src/minim/qobuz.py):
A client for the Qobuz API with support for the password grant type
for user authentication and user authentication token caching.
Expand Down Expand Up @@ -60,7 +60,7 @@ Clone the repository and install the package using pip:
- Search for and retrieve information about an artist, such as the EDM
group Galantis:

**iTunes Store API**
**iTunes Search API**

>>> client_itunes.search("Galantis", entity="musicArtist",
... limit=1)["results"][0]
Expand Down Expand Up @@ -206,7 +206,7 @@ Clone the repository and install the package using pip:

- Search for and retrieve information about a track, such as "Everybody Talks" by Neon Trees:

**iTunes Store API**
**iTunes Search API**

>>> client_itunes.search("Everybody Talks", media="music",
... limit=1)["results"][0]
Expand Down
Binary file modified docs/.doctrees/api/minim.audio.Audio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.audio.FLACAudio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.audio.MP3Audio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.audio.MP4Audio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.audio.OGGAudio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.audio.WAVEAudio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.audio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.qobuz.PrivateAPI.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.spotify.PrivateLyricsService.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.spotify.WebAPI.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.tidal.PrivateAPI.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.utility.levenshtein_ratio.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.utility.multivalue_formatter.doctree
Binary file not shown.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/index.doctree
Binary file not shown.
Binary file added docs/.doctrees/notebooks/getting_started.doctree
Binary file not shown.
Binary file modified docs/.doctrees/notebooks/start.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../index.html">Home</a></li>
<li class="toctree-l1"><a class="reference internal" href="../notebooks/start.html">Getting Started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../notebooks/getting_started.html">Getting Started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../guide.html">User Guide</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="../api/minim.html">API Reference</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" role="switch" type="checkbox"/><label for="toctree-checkbox-1"><div class="visually-hidden">Toggle navigation of API Reference</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l2 has-children"><a class="reference internal" href="../api/minim.audio.html">audio</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" role="switch" type="checkbox"/><label for="toctree-checkbox-2"><div class="visually-hidden">Toggle navigation of audio</div><i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i></label><ul>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.Audio.html">Audio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.FLACAudio.html">FLACAudio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.MP3Audio.html">MP3Audio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.MP4Audio.html">MP4Audio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.OGGAudio.html">OGGAudio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.OggAudio.html">OggAudio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../api/minim.audio.WAVEAudio.html">WAVEAudio</a></li>
</ul>
</li>
Expand Down
837 changes: 469 additions & 368 deletions docs/_modules/minim/audio.html

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions docs/_modules/minim/itunes.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
<title>minim.itunes - Minim 1.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?v=135e06be" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css?v=be8a1c11" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../../_static/togglebutton.css?v=13237357" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo-extensions.css?v=36a5483c" />
<link rel="stylesheet" type="text/css" href="../../_static/sidebar.css" />



Expand Down Expand Up @@ -152,7 +151,6 @@
<img class="sidebar-logo" src="../../_static/icon.svg" alt="Logo"/>
</div>

<span class="sidebar-brand-text">Minim 1.0.0 documentation</span>

</a><form class="sidebar-search-container" method="get" action="../../search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
Expand All @@ -170,7 +168,6 @@
<li class="toctree-l3"><a class="reference internal" href="../../api/minim.audio.FLACAudio.html">FLACAudio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../api/minim.audio.MP3Audio.html">MP3Audio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../api/minim.audio.MP4Audio.html">MP4Audio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../api/minim.audio.OGGAudio.html">OGGAudio</a></li>
<li class="toctree-l3"><a class="reference internal" href="../../api/minim.audio.WAVEAudio.html">WAVEAudio</a></li>
</ul>
</li>
Expand Down Expand Up @@ -242,9 +239,9 @@ <h1>Source code for minim.itunes</h1><div class="highlight"><pre>
<span class="sd">endpoints.</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">requests</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Union</span>

<span class="kn">import</span> <span class="nn">requests</span>
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;SearchAPI&quot;</span><span class="p">]</span>

<div class="viewcode-block" id="SearchAPI">
<a class="viewcode-back" href="../../api/minim.itunes.SearchAPI.html#minim.itunes.SearchAPI">[docs]</a>
Expand Down
Loading

0 comments on commit f2c4983

Please sign in to comment.