Skip to content

Commit

Permalink
Resolves #8
Browse files Browse the repository at this point in the history
  • Loading branch information
bbye98 committed Feb 14, 2024
1 parent 69d7f32 commit c8e623e
Show file tree
Hide file tree
Showing 50 changed files with 583 additions and 60 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 6ee58d5d4fc21093f1e34404c8a79093
config: 0ca0ad8ef53eb4a89c9c473989a753c6
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified docs/.doctrees/api/minim.discogs.API.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.itunes.SearchAPI.doctree
Binary file not shown.
Binary file modified docs/.doctrees/api/minim.qobuz.PrivateAPI.doctree
Binary file not shown.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ <h1>All modules for which code is available</h1>
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2023, Benjamin Ye
Copyright &#169; 2023–2024 Benjamin Ye
</div>
Made with <a href="https://www.sphinx-doc.org/">Sphinx</a> and <a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s

Expand Down
5 changes: 3 additions & 2 deletions docs/_modules/minim/audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<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 @@ -1807,7 +1808,7 @@ <h1>Source code for minim.audio</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OggAudio">
<a class="viewcode-back" href="../../api/minim.audio.OGGAudio.html#minim.audio.OggAudio">[docs]</a>
<a class="viewcode-back" href="../../api/minim.audio.OggAudio.html#minim.audio.OggAudio">[docs]</a>
<span class="k">class</span> <span class="nc">OggAudio</span><span class="p">(</span><span class="n">Audio</span><span class="p">,</span> <span class="n">_VorbisComment</span><span class="p">):</span>

<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -2004,7 +2005,7 @@ <h1>Source code for minim.audio</h1><div class="highlight"><pre>
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2023, Benjamin Ye
Copyright &#169; 2023–2024 Benjamin Ye
</div>
Made with <a href="https://www.sphinx-doc.org/">Sphinx</a> and <a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s

Expand Down
77 changes: 75 additions & 2 deletions docs/_modules/minim/discogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<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 @@ -1991,12 +1992,84 @@ <h1>Source code for minim.discogs</h1><div class="highlight"><pre>

<span class="c1">### MARKETPLACE ###########################################################</span>

<div class="viewcode-block" id="API.get_inventory">
<a class="viewcode-back" href="../../api/minim.discogs.API.html#minim.discogs.API.get_inventory">[docs]</a>
<span class="k">def</span> <span class="nf">get_inventory</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span> <span class="n">username</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">status</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="n">page</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">per_page</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="n">sort</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="n">sort_order</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Any</span><span class="p">]:</span>

<span class="k">pass</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> `Marketplace &gt; Inventory &lt;https://www.discogs.com/developers</span>
<span class="sd"> /#page:marketplace,header:marketplace-inventory-get&gt;`_:</span>
<span class="sd"> Get a seller&#39;s inventory.</span>

<span class="sd"> .. admonition:: Authentication</span>
<span class="sd"> :class: dropdown warning</span>

<span class="sd"> If you are authenticated as the inventory owner, additional</span>
<span class="sd"> fields will be returned in the response, such as </span>
<span class="sd"> :code:`&quot;weight&quot;`, :code:`&quot;format_quantity&quot;`, </span>
<span class="sd"> :code:`&quot;external_id&quot;`, :code:`&quot;location&quot;`, and </span>
<span class="sd"> :code:`&quot;quantity&quot;`.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> username : `str`</span>
<span class="sd"> The username of the inventory owner.</span>

<span class="sd"> **Example**: :code:`&quot;360vinyl&quot;`.</span>

<span class="sd"> status : `str`, keyword-only, optional</span>
<span class="sd"> The status of the listings to return.</span>

<span class="sd"> **Valid values**: :code:`&quot;For Sale&quot;`, :code:`&quot;Draft&quot;`, </span>
<span class="sd"> :code:`&quot;Expired&quot;`, :code:`&quot;Sold&quot;`, and :code:`&quot;Deleted&quot;`.</span>

<span class="sd"> page : `str`, keyword-only, optional</span>
<span class="sd"> The page you want to request.</span>

<span class="sd"> **Example**: :code:`3`.</span>

<span class="sd"> per_page : `str`, keyword-only, optional</span>
<span class="sd"> The number of items per page.</span>

<span class="sd"> **Example**: :code:`25`.</span>

<span class="sd"> sort : `str`, keyword-only, optional</span>
<span class="sd"> Sort items by this field.</span>

<span class="sd"> **Valid values**: :code:`&quot;listed&quot;`, :code:`&quot;price&quot;`, </span>
<span class="sd"> :code:`&quot;item&quot;`, :code:`&quot;artist&quot;`, :code:`&quot;label&quot;`, </span>
<span class="sd"> :code:`&quot;catno&quot;`, :code:`&quot;audio&quot;`, :code:`&quot;status&quot;`, and</span>
<span class="sd"> :code:`&quot;location&quot;`.</span>

<span class="sd"> sort_order : `str`, keyword-only, optional</span>
<span class="sd"> Sort items in a particular order.</span>

<span class="sd"> **Valid values**: :code:`&quot;asc&quot;` and :code:`&quot;desc&quot;`.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> inventory : `dict`</span>
<span class="sd"> The seller&#39;s inventory.</span>

<span class="sd"> .. admonition:: Sample</span>
<span class="sd"> :class: dropdown</span>

<span class="sd"> .. code::</span>

<span class="sd"> {</span>
<span class="sd"> </span>
<span class="sd"> }</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_json</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">API_URL</span><span class="si">}</span><span class="s2">/users/</span><span class="si">{</span><span class="n">username</span><span class="si">}</span><span class="s2">/inventory&quot;</span><span class="p">,</span>
<span class="n">params</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;status&quot;</span><span class="p">:</span> <span class="n">status</span><span class="p">,</span> <span class="s2">&quot;page&quot;</span><span class="p">:</span> <span class="n">page</span><span class="p">,</span> <span class="s2">&quot;per_page&quot;</span><span class="p">:</span> <span class="n">per_page</span><span class="p">,</span>
<span class="s2">&quot;sort&quot;</span><span class="p">:</span> <span class="n">sort</span><span class="p">,</span> <span class="s2">&quot;sort_order&quot;</span><span class="p">:</span> <span class="n">sort_order</span><span class="p">}</span>
<span class="p">)</span></div>


<span class="k">def</span> <span class="nf">get_listing</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span> <span class="n">listing_id</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">str</span><span class="p">],</span> <span class="o">*</span><span class="p">,</span> <span class="n">curr_abbr</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="kc">None</span>
Expand Down Expand Up @@ -2644,7 +2717,7 @@ <h1>Source code for minim.discogs</h1><div class="highlight"><pre>
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2023, Benjamin Ye
Copyright &#169; 2023–2024 Benjamin Ye
</div>
Made with <a href="https://www.sphinx-doc.org/">Sphinx</a> and <a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s

Expand Down
101 changes: 97 additions & 4 deletions docs/_modules/minim/itunes.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<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 @@ -472,7 +473,53 @@ <h1>Source code for minim.itunes</h1><div class="highlight"><pre>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> results : `dict`</span>
<span class="sd"> The search results in JSON format.</span>
<span class="sd"> The search results.</span>

<span class="sd"> .. admonition:: Sample response</span>
<span class="sd"> :class: dropdown</span>

<span class="sd"> .. code::</span>

<span class="sd"> {</span>
<span class="sd"> &quot;resultCount&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;results&quot;: [</span>
<span class="sd"> {</span>
<span class="sd"> &quot;wrapperType&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;kind&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artistId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;collectionId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;artistName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionCensoredName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackCensoredName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionArtistId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;collectionArtistName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artistViewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionViewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackViewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;previewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artworkUrl30&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artworkUrl60&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artworkUrl100&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionPrice&quot;: &lt;float&gt;,</span>
<span class="sd"> &quot;trackPrice&quot;: &lt;float&gt;,</span>
<span class="sd"> &quot;releaseDate&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionExplicitness&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackExplicitness&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;discCount&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;discNumber&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackCount&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackNumber&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackTimeMillis&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;country&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;currency&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;primaryGenreName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;isStreamable&quot;: &lt;bool&gt;</span>
<span class="sd"> }</span>
<span class="sd"> ]</span>
<span class="sd"> }</span>

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
Expand Down Expand Up @@ -592,8 +639,54 @@ <h1>Source code for minim.itunes</h1><div class="highlight"><pre>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> results : `dict`</span>
<span class="sd"> The lookup results in JSON format.</span>

<span class="sd"> The lookup results.</span>

<span class="sd"> .. admonition:: Sample response</span>
<span class="sd"> :class: dropdown</span>

<span class="sd"> .. code::</span>

<span class="sd"> {</span>
<span class="sd"> &quot;resultCount&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;results&quot;: [</span>
<span class="sd"> {</span>
<span class="sd"> &quot;wrapperType&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;kind&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artistId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;collectionId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;artistName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionCensoredName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackCensoredName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionArtistId&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;collectionArtistName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artistViewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionViewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackViewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;previewUrl&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artworkUrl30&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artworkUrl60&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;artworkUrl100&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionPrice&quot;: &lt;float&gt;,</span>
<span class="sd"> &quot;trackPrice&quot;: &lt;float&gt;,</span>
<span class="sd"> &quot;releaseDate&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;collectionExplicitness&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;trackExplicitness&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;discCount&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;discNumber&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackCount&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackNumber&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;trackTimeMillis&quot;: &lt;int&gt;,</span>
<span class="sd"> &quot;country&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;currency&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;primaryGenreName&quot;: &lt;str&gt;,</span>
<span class="sd"> &quot;isStreamable&quot;: &lt;bool&gt;</span>
<span class="sd"> }</span>
<span class="sd"> ]</span>
<span class="sd"> }</span>
<span class="sd"> </span>
<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> Look up Jack Johnson by iTunes artist ID:</span>
Expand Down Expand Up @@ -711,7 +804,7 @@ <h1>Source code for minim.itunes</h1><div class="highlight"><pre>
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2023, Benjamin Ye
Copyright &#169; 2023–2024 Benjamin Ye
</div>
Made with <a href="https://www.sphinx-doc.org/">Sphinx</a> and <a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s

Expand Down
Loading

0 comments on commit c8e623e

Please sign in to comment.