mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Re-order imports and specify UTF-8 encoding header in all base modules and package initialiser (ref. https://www.python.org/dev/peps/pep-0008/#imports, https://www.python.org/dev/peps/pep-0008/#source-file-encoding) + add __all__ attribute
This commit is contained in:
parent
1d7051c5b0
commit
e1ba4a9bbb
@ -1,2 +1,3 @@
|
|||||||
VERSION='2.0.1'
|
VERSION='2.0.1'
|
||||||
from .client import Spotify, SpotifyException
|
|
||||||
|
from .client import *
|
||||||
|
|||||||
@ -1,16 +1,21 @@
|
|||||||
# coding: utf-8
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
""" A simple and thin Python library for the Spotify Web API """
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import sys
|
|
||||||
import requests
|
__all__ = [
|
||||||
|
'Spotify',
|
||||||
|
'SpotifyException'
|
||||||
|
]
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import requests
|
||||||
import six
|
import six
|
||||||
|
|
||||||
""" A simple and thin Python library for the Spotify Web API
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class SpotifyException(Exception):
|
class SpotifyException(Exception):
|
||||||
|
|||||||
@ -1,11 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'is_token_expired',
|
||||||
|
'SpotifyClientCredentials',
|
||||||
|
'SpotifyOAuth',
|
||||||
|
'SpotifyOauthError'
|
||||||
|
]
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import requests
|
|
||||||
import os
|
|
||||||
import json
|
import json
|
||||||
import time
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
# Workaround to support both python 2 & 3
|
# Workaround to support both python 2 & 3
|
||||||
import six
|
import six
|
||||||
|
|||||||
@ -1,9 +1,17 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# shows a user's playlists (need to be authenticated via oauth)
|
""" Shows a user's playlists (need to be authenticated via oauth) """
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
'prompt_for_user_token9'
|
||||||
|
]
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from . import oauth2
|
from . import oauth2
|
||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
|
|
||||||
def prompt_for_user_token(username, scope=None, client_id = None,
|
def prompt_for_user_token(username, scope=None, client_id = None,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user