A Python port of @TooTallNate/spotify-uri for parsing and formatting Spotify URIs and URLs. Current version 1.0.3, actively maintained with low release cadence.
pip install spotify-uriNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse Spotify URIs and URLs to extract type and ID.
Check uri.type first, or use hasattr before accessing type-specific attributes.
Use from spotify_uri import SpotifyUri or from spotify_uri import parse.
if uri.type == 'track': print(uri.id) else: handle other types.
Use 'from spotify_uri import SpotifyUri' or 'from spotify_uri import parse'.
No dependency data recorded yet.