We have created a Series and Movies Library to manage and view information about films and series. This library allows users to organize their collections of movies and series, making it easier to search, analyze ratings, and categorize by genre.
Project description
Movie and Series Library Management Project
This project provides a Python-based library management system for handling movie and TV series data. It includes modules to store, search, and filter essential information such as title, genre, release date, rating, director, cast, country, budget, box office revenue, and runtime, all accessible through a unified interface. The system enables efficient access to detailed records for both movies and series.
Project Structure
The project is organized into the following directories and modules:
Directory Overview
- data/: Contains CSV files (
pelis.csvfor movies andseries.csvfor series) with sample data. - library/: Houses the core module for managing both movies and series.
- examples/: Includes sample data examples for movies and series, illustrating the type of information stored in the system.
Modules Overview
Peliculas Module
The Peliculas module handles series data operations
Class Peliculas
-
Constructor Parameters:
csv_file: Path to the movies CSV file (default is pelis.csv).
-
Key Methods:
-
add_movie(title, genre, rating):Adds a new movie to the DataFrame and optionally to the CSV file. -
search_by_title(title):Searches for a movie by title. Returns a DataFrame of movies that match the title. -
filter_by_genre(genre):Filters movies by a specified genre (e.g., 'Action', 'Drama'). -
show_top_rating(top_n=10):Displays the top-rated movies based on ratings.
from peliculas.Peliculas import Peliculas
movies = Movies()
# Add a new movie
movies.add_movie("Inception", "Sci-Fi", 8.8)
# Search for a specific title in movies
movies.search_by_title("Inception")
# Display the top 3 rated movies
movies.**mostrar_top_rating**(3)
Class Series
-
Constructor Parameters:
-
csv_file:Path to the series CSV file (default is series.csv). -
Key Methods:
-
add_series(title, category, rating):Adds a new series to the DataFrame and optionally to the CSV file. -
search_by_title(title):Searches for a series by title. Returns a DataFrame of series that match the title. -
filter_by_category(category):Filters series by a specified category (e.g., 'Drama', 'Comedy'). -
show_top_rating(top_n=10):Displays the top-rated series based on ratings.
Example Usage
from series.Series import Series
series = Series()
# Add a new series
series.agregar_serie("New Series", "Comedy", 8.5)
# Search for a specific title in series
series.buscar_por_titulo("Breaking Bad")
# Display the top 3 rated series
series.mostrar_top_rating(3)
Library Module
The Library module serves as the central interface for managing movie and series data, providing search and filtering functionality across both datasets.
Class Library
-
Constructor Parameters:
peliculas_csv: Path to the movies CSV file (default ispelis.csv).series_csv: Path to the series CSV file (default isseries.csv).
-
Key Methods:
search_by_title(title): Searches for movie and series titles. Returns a dictionary with separate lists for movie and series results.show_top_rating(top_n=10): Displays the top-rated movies and series based on ratings.
Example Usage
from library.Library import Library
library = Library()
# Search for a title in both movies and series
library.search_by_title("Inception")
# Display the top 3 rated titles
library.show_top_rating(3)
Requirements
To install the required dependencies, run:
pip install -r requirements.txt
Usage
- Load the CSV files (pelis.csv and series.csv) in the data/ directory with your movie and series data.
- Use the Library class from the library/ module to search for titles and display the top-rated movies and series.
- Refer to Examples_Films.py and Examples_Series.py in the examples/ directory to see examples of how to structure movie and series dat
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Movies_and_Series-0.1.2.tar.gz.
File metadata
- Download URL: Movies_and_Series-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1516d2e831bb6531a1af350c74d9151b2febb7de57b19acff62d0cb4bc1532fb
|
|
| MD5 |
75a83ab4173291a2c755aabfcd4ac2ab
|
|
| BLAKE2b-256 |
7edaee245c2be02e4af31c9f7e2fcebc6399b23dcc740478e07919438763b940
|
File details
Details for the file Movies_and_Series-0.1.2-py3-none-any.whl.
File metadata
- Download URL: Movies_and_Series-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a733651e18898058aaf601c1fdb3b3a7f794dc81e1c15518d88ff651a654daf
|
|
| MD5 |
c56c435cd3b4cd60f795cfe0f3387e1d
|
|
| BLAKE2b-256 |
6787a605699da409470566df54cda5b9754cefedc0ba336767afe1dcf59fc4a2
|