Get all the artists and/or all styles of the world
Project description
Description
MusicTour generates a JSON or returns all the styles and/or artists in the world.
It is based on the website https://everynoise.com/
Quick start
import musicTour
musicTour.getAll() # Generates a JSON with all styles and artists in the world
Warning
Generating all the styles and/or artists can take several dozens of minutes.
Parameters
The function musicTour.getAll() can take 3 arguments. By default, they are all set to True.
musicTour.getAll(styles, artists, output)
All three arguments are booleans.
To generate a JSON, you have to set the third argument to True.
Examples:
musicTour.getAll(True, True, True) # generates a JSON of all styles and artists.
musicTour.getAll(False, True, True) # generates a JSON of all artists.
musicTour.getAll(True, False, True) # generates a JSON of all styles.
When you just want to return the value in a variable, you can set the third argument to False:
Examples:
allArtistsStyles = musicTour.getAll(True, True, False)
print(allArtistsStyles) # Prints all styles and artists
musicTour.getAll(False, True, False)# returns all artists.
musicTour.getAll(True, False, False)# returns all styles.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file musicTour-1.5.0.tar.gz
.
File metadata
- Download URL: musicTour-1.5.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1388b27eae21154ef83486bfe21b0921f9f2f97048e12573de42f91924afb4ba |
|
MD5 | 52f2ddaf4ec929843c15a0bf896fec38 |
|
BLAKE2b-256 | fd1f1f340ebe200ca7997031bec183cdfd6c57bc06f17ed27535abbaf9d9e72a |
File details
Details for the file musicTour-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: musicTour-1.5.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e9c3f85c1e60e566ddad4327e2c7972274a4e03ba0319c22842e7cf1dd0740 |
|
MD5 | 9514684493e19ea2c8db513c416d0863 |
|
BLAKE2b-256 | 73e6b89b63474f880bfe905031773d4719db46e0bbee0df98e8c9eff5e5f40a8 |