mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
Moved util module into main package
This commit is contained in:
parent
05a459e1bd
commit
e35ef206d5
@ -3,4 +3,5 @@ v1.42, June 19, 2014 -- Removed dependency on simplejson
|
|||||||
v1.43, June 27, 2014 -- Fixed JSON handling issue
|
v1.43, June 27, 2014 -- Fixed JSON handling issue
|
||||||
v1.44, July 3, 2014 -- Added show_tracks.py exampole
|
v1.44, July 3, 2014 -- Added show_tracks.py exampole
|
||||||
v1.45, July 7, 2014 -- Support for related artists endpoint. Don't used cache auth codes when scope changes
|
v1.45, July 7, 2014 -- Support for related artists endpoint. Don't used cache auth codes when scope changes
|
||||||
|
v1.50, August 14, 2014 -- Refactored util out of examples and into the main package
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import sys
|
|||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
import util
|
import spotipy.util as util
|
||||||
|
|
||||||
scope = 'user-library-modify'
|
scope = 'user-library-modify'
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import sys
|
|||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
import util
|
import spotipy.util as util
|
||||||
|
|
||||||
if len(sys.argv) > 3:
|
if len(sys.argv) > 3:
|
||||||
username = sys.argv[1]
|
username = sys.argv[1]
|
||||||
|
@ -7,8 +7,8 @@ import subprocess
|
|||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
|
|
||||||
import util
|
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
|
import spotipy.util as util
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) > 2:
|
if len(sys.argv) > 2:
|
||||||
|
@ -5,7 +5,7 @@ import sys
|
|||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
import util
|
import spotipy.util as util
|
||||||
|
|
||||||
scope = 'user-library-modify'
|
scope = 'user-library-modify'
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import sys
|
|||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
import util
|
import spotipy.util as util
|
||||||
|
|
||||||
scope = 'user-library-read'
|
scope = 'user-library-read'
|
||||||
|
|
||||||
|
@ -7,9 +7,8 @@ import subprocess
|
|||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
|
|
||||||
import util
|
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
|
import spotipy.util as util
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
|
@ -6,9 +6,8 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import spotipy
|
import spotipy
|
||||||
|
|
||||||
import util
|
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
|
import spotipy.util as util
|
||||||
|
|
||||||
|
|
||||||
def show_tracks(results):
|
def show_tracks(results):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import spotipy
|
import spotipy
|
||||||
import util
|
import spotipy.util as util
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
|
|
||||||
|
|
||||||
|
4
setup.py
4
setup.py
@ -3,11 +3,11 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='SpotipyWebApi',
|
name='SpotipyWebApi',
|
||||||
version='1.49',
|
version='1.50',
|
||||||
description='simple client for the Spotify Web API',
|
description='simple client for the Spotify Web API',
|
||||||
author="@plamere",
|
author="@plamere",
|
||||||
author_email="paul@echonest.com",
|
author_email="paul@echonest.com",
|
||||||
url='http://github.com/plamere/spotipy',
|
url='http://github.com/plamere/spotipy',
|
||||||
install_requires=['requests>=1.0'],
|
install_requires=['requests>=1.0'],
|
||||||
license='LICENSE.txt',
|
license='LICENSE.txt',
|
||||||
py_modules=['spotipy', 'spotipy.oauth2'],)
|
py_modules=['spotipy', 'spotipy.oauth2', 'spotipy.util'],)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import spotipy.oauth2 as oauth2
|
import oauth2
|
||||||
|
|
||||||
def prompt_for_user_token(username, scope=None):
|
def prompt_for_user_token(username, scope=None):
|
||||||
''' prompts the user to login if necessary and returns
|
''' prompts the user to login if necessary and returns
|
Loading…
Reference in New Issue
Block a user