Metadata-Version: 2.1
Name: spotipy2
Version: 0.5.1
Summary: The next generation Spotify Web API wrapper for Python
Home-page: https://spotipy2.org/
Author: CyanBook
License: LGPLv3+
Download-URL: https://github.com/CyanBook/spotipy2/releases/latest
Project-URL: Tracker, https://github.com/CyanBook/spotipy2/issues
Project-URL: Community, https://github.com/CyanBook/spotipy2/discussions
Project-URL: Source, https://github.com/CyanBook/spotipy2
Keywords: spotify spotipy spotipy2 api wrapper client library oauth
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: ~=3.7
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Provides-Extra: cache
Requires-Dist: pymongo ; extra == 'cache'

<p align="center">
    <a href="https://github.com/cyanbook/spotipy2">
        <img src="https://svgshare.com/i/STC.svg" alt="Spotipy2">
    </a>
    <br>
    <b>The next generation Spotify Web API wrapper for Python</b>
    <br>
    <a href="https://spotipy2.org">
        Documentation
    </a>
    •
    <a href="https://github.com/cyanbook/spotipy2/releases">
        Releases
    </a>
    •
    <a href="https://github.com/CyanBook/spotipy2/discussions">
        Community
    </a>
</p>

### Quick example
```python
import asyncio
from spotipy2 import Spotify
from spotipy2.auth import ClientCredentialsFlow

client = Spotify(
    ClientCredentialsFlow(
        client_id="client_id",
        client_secret="client_secret"
    )
)

async def get_track_name(track_id):
    async with client as s:
        track = await s.get_track(track_id)
        print(f"The name of the track is {track.name}")

asyncio.run(get_track_name(input("Insert the track ID: ")))
```

### Features
Well, Spotipy2 has some big advantages over Spotipy.
- **Easy**: You can install spotipy2 with pip and start in minutes to build your code.
- **Fast**: Thanks to [`aiohttp`](https://github.com/aio-libs/aiohttp) speed, spotipy2 is incredibly fast
- **Documented**: API methods, types and public interfaces are all well documented
- **Asynchronous**: You can use this library in an async project without having to 
- **Type-hinted**: All the methods and types are type-hinted, enabling excellent IDE support
- **Types for each [Spotify Object](https://developer.spotify.com/documentation/web-api/reference/#objects-index)**: Each object has its own Type (Class), allowing for simpler development

### Requirements
- Python 3.7 or higher
- A Spotify client ID and secret.

### Installation
```bash
pip install spotipy2
```

## Copyright & License
- Copyright (C) 2020-2022 CyanBook <https://github.com/cyanbook>
- Licensed under the terms of the [GNU Lesser General Public License v3 or later (LGPLv3+)](LICENSE)


