Tekore

Tekore is a Python client for the Spotify Web API with async support and authentication.

What it is

Tekore provides a comprehensive Python library for interacting with the Spotify Web API. The documentation covers installation, authentication flows, and usage examples for developers who want to integrate Spotify data into their applications. It includes guides for both synchronous and asynchronous programming patterns.

The library implements every available endpoint and authentication method, offering features such as automatic token refreshing, parsed response models with JSON serialization, and configurable request senders that support retries and caching. Additional utilities handle conversions between Spotify IDs, URIs, and URLs, as well as reading configuration from files and environment variables.

Python developers building music applications, data analysis tools, or automation scripts will find Tekore useful. The quickstart example demonstrates how to obtain a user token and start playback with just a few lines of code. The project is hosted on PyPI and maintains an active community on Discord and GitHub for support and discussion.

Getting started involves installing the package via pip, registering a Spotify application to obtain credentials, and using the provided helper functions to authorize users. The documentation includes an authorization guide, advanced usage patterns, and a full reference of all available classes and methods.

Notable aspects include the self-refreshing access token, explicit model attributes for readability, and a sender abstraction that enables session persistence and response caching. The project is open source under a permissive license and receives regular updates aligned with Spotify API changes.

This description was generated by AI from the site's public content and may contain errors.

What you can do there

  • Read comprehensive API documentation
  • View code examples for common tasks
  • Learn authentication and authorization flows
  • Access the full reference of classes and methods
  • Join the community for support and discussion

Who it's for

Python developers building Spotify integrations and music applications

Frequently asked questions about tekore.readthedocs.io

›What is Tekore?

Tekore is a Python client library for the Spotify Web API that supports all endpoints, authentication methods, and asynchronous programming.

›How do I install Tekore?

Install Tekore from PyPI using pip install tekore, then import it in your Python project.

›Does Tekore support async and await?

Yes, Tekore provides full asynchronous support using Python async and await syntax.

›How does authentication work with Tekore?

Tekore offers helpers for user authorization, including prompt_for_user_token, and handles automatic token refreshing for long-lived sessions.

›Where can I find example scripts?

The documentation includes an Examples section with scripts demonstrating common tasks such as playback control and data retrieval.

›Is Tekore actively maintained?

The project is actively developed with regular releases and a community on Discord and GitHub for issues and contributions.

›Can I use Tekore for commercial projects?

Tekore is open source and can be used in commercial applications under its license terms.