Skip to main content

Create your playlist with us!

Project description

playlist-creator

Overview

Our API is was created as part of the course "Introduction to Optimization" with Ariel Rosenfeld at Bar-Ilan University.

You should run the following with the flags below: python {PATH TO SITE-PACKAGES}/playlist-creator/run.py

You are able to run our API by providing the following as args:

-h, --help show this help message and exit
-s SONGS_PATH, --songs_path SONGS_PATH Path to songs in a directory
-r ARTISTS_LIST, --artists_list ARTISTS_LIST Path to artists file list
-l ALBUMS_LIST, --albums_list ALBUMS_LIST Path to albums file list
-g GENRES_LIST, --genres_list GENRES_LIST Path to genres file list
-d DOWN, --down DOWN Minimum time for playlist
-u UP, --up UP Maximum time for playlist
-m MINIMUM_SONGS, --minimum_songs MINIMUM_SONGS Minimum songs required from input
-c COUNTRY, --country COUNTRY Country name to base playlist on

SONGS_PATH

Should be a path to songs in the following format: "ARTIST NAME - SONG NAME"

ARTISTS_LIST

txt file like follows:

Elton John
David Bowie
Queen
Pink Floyd
Rod Stewart
Eric Clapton
Prince
John Lennon
Bob Dylan
Led Zeppelin

ALBUMS_LIST

txt file like follows:

After Hours,The Weeknd
Evolve,Imagine Dragons

GENRES_LIST

json file like follows:

{
"pop": 2,
"rock": 1,
"metal": 2
}

The numbers are the number of songs you want from each genre.

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

playlist-creator-0.0.9.tar.gz (17.6 kB view details)

Uploaded Source

File details

Details for the file playlist-creator-0.0.9.tar.gz.

File metadata

  • Download URL: playlist-creator-0.0.9.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for playlist-creator-0.0.9.tar.gz
Algorithm Hash digest
SHA256 015875e86203a8e4b83ce02ac3edcfc568b260f09f4bbec15aa31fb409618d61
MD5 63487e60e04ad4a662759c128ac750b2
BLAKE2b-256 eda07635d403faade59a1d4235e5665ce8e5ed872950b762fbbccfe418259f2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page