-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from shazamio/dev-sq
Dev sq
- Loading branch information
Showing
26 changed files
with
1,503 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import asyncio | ||
from shazamio import Shazam, Serialize | ||
|
||
|
||
async def main(): | ||
shazam = Shazam() | ||
artist_id = 1202214602 | ||
albums = await shazam.artist_albums(artist_id=artist_id) | ||
serialized = Serialize.artist_albums(data=albums) | ||
|
||
for i in serialized.data: | ||
print(f"{i.attributes.name} - {i.attributes.track_count} {i.attributes.release_date}") | ||
|
||
|
||
loop = asyncio.get_event_loop_policy().get_event_loop() | ||
loop.run_until_complete(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from .serializers import Serialize | ||
from .api import Shazam | ||
from .converter import Geo | ||
from .converter import GeoService | ||
from .enums import GenreMusic | ||
|
||
__all__ = ("Serialize", "Shazam", "Geo", "GenreMusic") | ||
__all__ = ("Serialize", "Shazam", "GeoService", "GenreMusic") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.