Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bl33h/spotifysimulation
A program that prints the playlist data from a csv file in a music player, it also identifies the longest song.
https://github.com/bl33h/spotifysimulation
csv python simulation spotify
Last synced: 7 days ago
JSON representation
A program that prints the playlist data from a csv file in a music player, it also identifies the longest song.
- Host: GitHub
- URL: https://github.com/bl33h/spotifysimulation
- Owner: bl33h
- Created: 2022-07-20T13:24:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T07:20:48.000Z (over 1 year ago)
- Last Synced: 2024-11-20T20:35:34.305Z (2 months ago)
- Topics: csv, python, simulation, spotify
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spotifySimulation
A program that allows users to manage and perform operations on a collection of song records. The code reads song records from a CSV file, stores them in a dictionary, and provides various options to interact with the records.
Files •
Features •
How To Use## Files
- src: the code that implements the solution.
- csv: file that has the characteristics of each song placed in the playlist.## Features
The main features of the application include:
- Reading and Parsing CSV File: The program reads song records from a CSV file and parses the data to extract relevant information such as song name, date, genre, duration, etc.
- Displaying Records: The program provides a function, "Exhibir_tabla()", to display the song records in a tabular format. It shows details such as song name, date, genre, duration, author, daily plays, and playlist.
- Modifying Records: The program allows users to modify the details of a specific song. Users can enter the name of the song they want to modify and provide new information such as the song name, date, genre, duration, author, daily plays, and playlist.
- Adding New Records: Users can add new song records to the collection. The program prompts users to enter details such as the song name, date, genre, duration, author, daily plays, and playlist for the new song.
- Generating a Report: The program can generate a report that includes information about the longest song in the collection. It identifies the song with the longest duration and displays its details.
- Saving Modified Records: Before closing the program, it saves the modified song records back to a CSV file named "Registros_canciones.csv". The updated records are written in the same format as the input file.
- User Interface: The program provides a user-friendly interface with a menu that allows users to select various options for interacting with the song records. Users can input the corresponding number to execute a specific action.
- Error Handling: The program includes error handling to validate user inputs and ensure that correct options are selected. It provides error messages for invalid inputs and prompts users to enter valid options.## How To Use
To clone and run this application, you'll need [Git](https://git-scm.com) and [Python](https://www.python.org/downloads/) installed on your computer. From your command line:...
```bash
# Clone this repository
$ git clone https://github.com/bl33h/spotifySimulation# Open the folder
$ cd src# Run the app
$ python spotifySimulation.py```