Skip to content

Commit

Permalink
rename src to spotify_py_sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya2001-an committed Jan 3, 2024
1 parent 8c4a6cc commit 566641b
Show file tree
Hide file tree
Showing 94 changed files with 1,690 additions and 1,690 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
with:
python-version: "3.9"
- name: Install pypa/build
run: |
python3 -m pip install build --user
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build src
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/modules.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/spotify_py_sdk.auth.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/_build/doctrees/src.auth.doctree
Binary file not shown.
40 changes: 20 additions & 20 deletions docs/_build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../modules.html">src</a></li>
<li class="toctree-l1"><a class="reference internal" href="../modules.html">spotify_py_sdk</a></li>
</ul>

</div>
Expand All @@ -70,25 +70,25 @@
<div itemprop="articleBody">

<h1>All modules for which code is available</h1>
<ul><li><a href="src/auth/access_token_manager.html">src.auth.access_token_manager</a></li>
<li><a href="src/endpoints/albums.html">src.endpoints.albums</a></li>
<li><a href="src/endpoints/artists.html">src.endpoints.artists</a></li>
<li><a href="src/endpoints/audiobooks.html">src.endpoints.audiobooks</a></li>
<li><a href="src/endpoints/browse.html">src.endpoints.browse</a></li>
<li><a href="src/endpoints/chapters.html">src.endpoints.chapters</a></li>
<li><a href="src/endpoints/current_user.html">src.endpoints.current_user</a></li>
<li><a href="src/endpoints/endpoints_base.html">src.endpoints.endpoints_base</a></li>
<li><a href="src/endpoints/episodes.html">src.endpoints.episodes</a></li>
<li><a href="src/endpoints/markets.html">src.endpoints.markets</a></li>
<li><a href="src/endpoints/player.html">src.endpoints.player</a></li>
<li><a href="src/endpoints/playlists.html">src.endpoints.playlists</a></li>
<li><a href="src/endpoints/recommendations.html">src.endpoints.recommendations</a></li>
<li><a href="src/endpoints/search.html">src.endpoints.search</a></li>
<li><a href="src/endpoints/shows.html">src.endpoints.shows</a></li>
<li><a href="src/endpoints/tracks.html">src.endpoints.tracks</a></li>
<li><a href="src/endpoints/users.html">src.endpoints.users</a></li>
<li><a href="src/spotify_api.html">src.spotify_api</a></li>
<li><a href="src/types.html">src.types</a></li>
<ul><li><a href="spotify_py_sdk/auth/access_token_manager.html">spotify_py_sdk.auth.access_token_manager</a></li>
<li><a href="spotify_py_sdk/endpoints/albums.html">spotify_py_sdk.endpoints.albums</a></li>
<li><a href="spotify_py_sdk/endpoints/artists.html">spotify_py_sdk.endpoints.artists</a></li>
<li><a href="spotify_py_sdk/endpoints/audiobooks.html">spotify_py_sdk.endpoints.audiobooks</a></li>
<li><a href="spotify_py_sdk/endpoints/browse.html">spotify_py_sdk.endpoints.browse</a></li>
<li><a href="spotify_py_sdk/endpoints/chapters.html">spotify_py_sdk.endpoints.chapters</a></li>
<li><a href="spotify_py_sdk/endpoints/current_user.html">spotify_py_sdk.endpoints.current_user</a></li>
<li><a href="spotify_py_sdk/endpoints/endpoints_base.html">spotify_py_sdk.endpoints.endpoints_base</a></li>
<li><a href="spotify_py_sdk/endpoints/episodes.html">spotify_py_sdk.endpoints.episodes</a></li>
<li><a href="spotify_py_sdk/endpoints/markets.html">spotify_py_sdk.endpoints.markets</a></li>
<li><a href="spotify_py_sdk/endpoints/player.html">spotify_py_sdk.endpoints.player</a></li>
<li><a href="spotify_py_sdk/endpoints/playlists.html">spotify_py_sdk.endpoints.playlists</a></li>
<li><a href="spotify_py_sdk/endpoints/recommendations.html">spotify_py_sdk.endpoints.recommendations</a></li>
<li><a href="spotify_py_sdk/endpoints/search.html">spotify_py_sdk.endpoints.search</a></li>
<li><a href="spotify_py_sdk/endpoints/shows.html">spotify_py_sdk.endpoints.shows</a></li>
<li><a href="spotify_py_sdk/endpoints/tracks.html">spotify_py_sdk.endpoints.tracks</a></li>
<li><a href="spotify_py_sdk/endpoints/users.html">spotify_py_sdk.endpoints.users</a></li>
<li><a href="spotify_py_sdk/spotify_api.html">spotify_py_sdk.spotify_api</a></li>
<li><a href="spotify_py_sdk/types.html">spotify_py_sdk.types</a></li>
</ul>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>src.auth.access_token_manager &mdash; spotify-py-sdk 0.1.0 documentation</title>
<title>spotify_py_sdk.auth.access_token_manager &mdash; spotify-py-sdk 0.1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -43,7 +43,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">src</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">spotify_py_sdk</a></li>
</ul>

</div>
Expand All @@ -61,7 +61,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">src.auth.access_token_manager</li>
<li class="breadcrumb-item active">spotify_py_sdk.auth.access_token_manager</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -70,15 +70,15 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for src.auth.access_token_manager</h1><div class="highlight"><pre>
<h1>Source code for spotify_py_sdk.auth.access_token_manager</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">json</span>
<span class="kn">import</span> <span class="nn">base64</span>
<span class="kn">import</span> <span class="nn">requests</span>
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span><span class="p">,</span> <span class="n">timedelta</span>


<div class="viewcode-block" id="AccessTokenManager">
<a class="viewcode-back" href="../../../src.auth.html#src.auth.access_token_manager.AccessTokenManager">[docs]</a>
<a class="viewcode-back" href="../../../spotify_py_sdk.auth.html#spotify_py_sdk.auth.access_token_manager.AccessTokenManager">[docs]</a>
<span class="k">class</span> <span class="nc">AccessTokenManager</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Manage access token generated by authenticating user using Client Credentials Flow.</span>

Expand All @@ -96,7 +96,7 @@ <h1>Source code for src.auth.access_token_manager</h1><div class="highlight"><pr
<span class="bp">self</span><span class="o">.</span><span class="n">access_token</span> <span class="o">=</span> <span class="kc">None</span>

<div class="viewcode-block" id="AccessTokenManager.get_access_token">
<a class="viewcode-back" href="../../../src.auth.html#src.auth.access_token_manager.AccessTokenManager.get_access_token">[docs]</a>
<a class="viewcode-back" href="../../../spotify_py_sdk.auth.html#spotify_py_sdk.auth.access_token_manager.AccessTokenManager.get_access_token">[docs]</a>
<span class="k">def</span> <span class="nf">get_access_token</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Retrieve the access token</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>src.endpoints.albums &mdash; spotify-py-sdk 0.1.0 documentation</title>
<title>spotify_py_sdk.endpoints.albums &mdash; spotify-py-sdk 0.1.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />

Expand Down Expand Up @@ -43,7 +43,7 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">src</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">spotify_py_sdk</a></li>
</ul>

</div>
Expand All @@ -61,7 +61,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">src.endpoints.albums</li>
<li class="breadcrumb-item active">spotify_py_sdk.endpoints.albums</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -70,14 +70,14 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for src.endpoints.albums</h1><div class="highlight"><pre>
<h1>Source code for spotify_py_sdk.endpoints.albums</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">.endpoints_base</span> <span class="kn">import</span> <span class="n">EndpointsBase</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>
<span class="kn">from</span> <span class="nn">src.types</span> <span class="kn">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">spotify_py_sdk.types</span> <span class="kn">import</span> <span class="o">*</span>


<div class="viewcode-block" id="Albums">
<a class="viewcode-back" href="../../../src.endpoints.html#src.endpoints.albums.Albums">[docs]</a>
<a class="viewcode-back" href="../../../spotify_py_sdk.endpoints.html#spotify_py_sdk.endpoints.albums.Albums">[docs]</a>
<span class="k">class</span> <span class="nc">Albums</span><span class="p">(</span><span class="n">EndpointsBase</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Make calls to the Albums api endpoint</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand All @@ -88,7 +88,7 @@ <h1>Source code for src.endpoints.albums</h1><div class="highlight"><pre>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">api</span><span class="p">)</span>

<div class="viewcode-block" id="Albums.get">
<a class="viewcode-back" href="../../../src.endpoints.html#src.endpoints.albums.Albums.get">[docs]</a>
<a class="viewcode-back" href="../../../spotify_py_sdk.endpoints.html#spotify_py_sdk.endpoints.albums.Albums.get">[docs]</a>
<span class="k">def</span> <span class="nf">get</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">id_or_ids</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">list</span><span class="p">[</span><span class="nb">str</span><span class="p">]],</span> <span class="n">market</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">MARKET</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Get albums by providing album id</span>

Expand All @@ -105,7 +105,7 @@ <h1>Source code for src.endpoints.albums</h1><div class="highlight"><pre>


<div class="viewcode-block" id="Albums.tracks">
<a class="viewcode-back" href="../../../src.endpoints.html#src.endpoints.albums.Albums.tracks">[docs]</a>
<a class="viewcode-back" href="../../../spotify_py_sdk.endpoints.html#spotify_py_sdk.endpoints.albums.Albums.tracks">[docs]</a>
<span class="k">def</span> <span class="nf">tracks</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">album_id</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">market</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">MARKET</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">limit</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="n">offset</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Get tracks for the given Album</span>
Expand Down
Loading

0 comments on commit 566641b

Please sign in to comment.