Skip to main content

spotify-to-sqlite

PyPI Changelog License

Convert a Spotify export zip to a SQLite database

Installation

Install this library using pip:

$ pip install spotify-to-sqlite

Usage

Convert a Spotify export zip to a SQLite database

spotify-to-sqlite convert my_spotify_data.zip spotify.db

You can use Spotify's Web API to retrieve audio features tracks in your streaming_history and your_library_tracks tables. You will need a CLIENT_ID and a CLIENT_SECRET which you can get when you register an application the Spotify Developer's site. You can export those as SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET (notice it's SPOTIPY not SPOTIFY). You can also save those on a .env file on your working directory as such:

# .env example
SPOTIPY_CLIENT_ID=adfgahjklsdf73932bcdlavsd7892dgfasd
SPOTIPY_CLIENT_SECRET=dabjgsd77507davsd12344dhgvafsdl
# when your converting export
spotify-to-sqlite --audio-features my_spotify_data.zip spotify.db

# if you already had converted your export you can pass a "-"
spotify-to-sqlite --audio-features - spotify.db

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd spotify-to-sqlite
python -m venv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for spotify-to-sqlite 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spotify-to-sqlite 0.2.1
File Size Uploaded Provenance
spotify-to-sqlite-0.2.1.tar.gz 10.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for spotify-to-sqlite 0.2.1
File Interpreter ABI Platform
spotify_to_sqlite-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / spotify-to-sqlite-0.2.1.tar.gz

Download URL spotify-to-sqlite-0.2.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9790d779710693fa7f0d4d753beb00f936ba3a9ed04453134fe09c6d90c0ba1a
BLAKE2b-256 checksum
How to use checksums
7542e7d989dc4b2e1e0c474c6647fa7bf986dc0d288d59f4efff0ecefd657469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / spotify_to_sqlite-0.2.1-py3-none-any.whl

Download URL spotify_to_sqlite-0.2.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e74b0f5db0597b6ccce099c09c33cb16143cdab6ea3c8691cbac0ca25e94f7ad
BLAKE2b-256 checksum
How to use checksums
bf81b61f4ccce133bea9b379974259e8f8d879c65a7ee51ac03a3799cd928382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Security for spotify-to-sqlite 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page